mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-06 21:09:22 +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;
|
||||
}
|
38
systems/x86_64-linux/kami/default.nix
Normal file
38
systems/x86_64-linux/kami/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ pkgs, config, lib, channel, ... }:
|
||||
|
||||
with lib;
|
||||
#with lib.internal;
|
||||
{
|
||||
imports = [ ./hardware.nix ];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
custom.system.boot.uefi.enable = true;
|
||||
custom.system.xdg.enable = true;
|
||||
custom.system.fonts.enable = true;
|
||||
custom.system.locale.enable = true;
|
||||
custom.system.locale.layout = "de";
|
||||
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 = "kami";
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
boot.kernelParams = [ "module_blacklist=i915" ];
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
droidcam.enable = true;
|
||||
sysdig.enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
}
|
68
systems/x86_64-linux/kami/hardware.nix
Normal file
68
systems/x86_64-linux/kami/hardware.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
let
|
||||
inherit (inputs) nixos-hardware;
|
||||
in
|
||||
{
|
||||
imports = with nixos-hardware.nixosModules; [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
common-cpu-intel
|
||||
common-gpu-nvidia
|
||||
common-pc
|
||||
common-pc-ssd
|
||||
];
|
||||
|
||||
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 =
|
||||
[ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
|
||||
};
|
||||
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/99a47ace-7e69-4520-b914-d4fe5b31dc79";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot/efi" =
|
||||
{ device = "/dev/disk/by-uuid/1F26-8168";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/78d6db21-b823-4ca4-b495-7782d3e56ddc";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# @NOTE(jakehamilton): NetworkManager will handle DHCP.
|
||||
networking.interfaces.enp6s0.useDHCP = false;
|
||||
networking.interfaces.wlo1.useDHCP = false;
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# high-resolution display
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
35
systems/x86_64-linux/oni/default.nix
Normal file
35
systems/x86_64-linux/oni/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, config, lib, channel, ... }:
|
||||
|
||||
with lib;
|
||||
#with lib.internal;
|
||||
{
|
||||
imports = [ ./hardware.nix ];
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
custom.system.boot.uefi.enable = true;
|
||||
custom.system.xdg.enable = true;
|
||||
custom.system.fonts.enable = true;
|
||||
custom.system.locale.enable = true;
|
||||
custom.system.locale.layout = "de";
|
||||
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 = "oni";
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
droidcam.enable = true;
|
||||
sysdig.enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
}
|
65
systems/x86_64-linux/oni/hardware.nix
Normal file
65
systems/x86_64-linux/oni/hardware.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
let
|
||||
inherit (inputs) nixos-hardware;
|
||||
in
|
||||
{
|
||||
imports = with nixos-hardware.nixosModules; [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
common-cpu-amd
|
||||
#common-gpu-nvidia
|
||||
common-pc
|
||||
#common-pc-ssd
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
offload.enable = false;
|
||||
sync.enable = false;
|
||||
|
||||
# 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 = [ "xhci_pci" "ahci" "ehci_pci" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
};
|
||||
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/c013c58e-540f-4547-b218-f7d34b07f7df";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/boot/efi" = {
|
||||
device = "/dev/disk/by-uuid/F1C3-4668";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [ {
|
||||
device = "/dev/disk/by-uuid/8a721407-d8bc-4d2d-970a-7ff462107dc3";
|
||||
} ];
|
||||
|
||||
|
||||
# @NOTE(jakehamilton): NetworkManager will handle DHCP.
|
||||
networking.interfaces.enp2s0.useDHCP = false;
|
||||
networking.interfaces.wlp3s0.useDHCP = false;
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# 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