mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Switch to snowfall flake configuration
This commit is contained in:
parent
bc0766220d
commit
d322a4f0a8
26 changed files with 1042 additions and 465 deletions
34
systems/aarch64-linux/yokai/default.nix
Normal file
34
systems/aarch64-linux/yokai/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ pkgs, config, lib, channel, ... }:
|
||||
|
||||
with lib;
|
||||
#with lib.internal;
|
||||
{
|
||||
imports = [ ./hardware.nix ];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
custom.system.boot.uboot.enable = true;
|
||||
custom.system.xdg.enable = true;
|
||||
custom.system.fonts.enable = true;
|
||||
custom.system.locale.enable = true;
|
||||
custom.system.locale.layout = "us";
|
||||
custom.nix.enable = true;
|
||||
custom.hardware.audio.enable = true;
|
||||
custom.hardware.printing.enable = true;
|
||||
custom.desktop.plasma.enable = true;
|
||||
|
||||
custom.user.jopejoe1.enable =true;
|
||||
custom.user.root.enable =true;
|
||||
|
||||
networking.hostName = "yokai";
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
droidcam.enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
}
|
54
systems/aarch64-linux/yokai/hardware.nix
Normal file
54
systems/aarch64-linux/yokai/hardware.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = with nixos-hardware.nixosModules; [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload.enable = false;
|
||||
sync.enable = true;
|
||||
|
||||
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
||||
intelBusId = "PCI:0:2:0";
|
||||
|
||||
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
|
||||
initrd = {
|
||||
# kernelModules = [ "amdgpu" ];
|
||||
availableKernelModules = [ "usbhid" ];
|
||||
};
|
||||
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-label/NIXROOT";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-label/NIXBOOT";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
|
||||
# @NOTE(jakehamilton): NetworkManager will handle DHCP.
|
||||
networking.interfaces.wlan0.useDHCP = false;
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
# high-resolution display
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue