split manwe config (WARNING split is done opposite to main branch)

This commit is contained in:
Chris Kruining 2025-07-28 14:33:04 +02:00
parent 7ae7ae6b47
commit a99300a295
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
7 changed files with 89 additions and 14 deletions

View file

@ -0,0 +1,3 @@
# Description
Living room Steambox.

View file

@ -0,0 +1,26 @@
{ ... }:
let
in
{
imports = [
./disks.nix
./hardware.nix
];
sneeuwvlok = {
hardware.has = {
gpu.nvidia = true;
bluetooth = true;
audio = true;
};
boot = {
quiet = true;
animated = true;
};
desktop.use = "gamescope";
};
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,33 @@
{ config, lib, pkgs, modulesPath, ... }:
let
inherit (lib.modules) mkDefault;
in
{
# TODO :: Implement disko at some point
swapDevices = [ { device = "/dev/disk/by-uuid/0ddf001a-5679-482e-b254-04a1b9094794"; } ];
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/8c4eaf57-fdb2-4c4c-bcc0-74e85a1c7985";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/C842-316A";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
"/home/chris/games" = {
device = "/dev/disk/by-label/games";
fsType = "ext4";
};
# TODO :: Reformat the disk to ext4
"/home/chris/data" = {
device = "/dev/disk/by-label/Data";
fsType = "ntfs-3g";
options = [ "rw" "uid=chris" ];
};
};
}

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, modulesPath, system, ... }:
let
inherit (lib.modules) mkDefault;
in
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
kernelParams = [];
extraModulePackages = [ ];
};
nixpkgs.hostPlatform = mkDefault system;
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -22,21 +22,14 @@ in
options = [ "fmask=0022" "dmask=0022" ];
};
"/home/chris/games" = {
device = "/dev/disk/by-label/games";
fsType = "ext4";
};
# TODO :: Reformat the disk to ext4
"/home/chris/data" = {
device = "/dev/disk/by-label/Data";
fsType = "ntfs-3g";
options = [ "rw" "uid=chris" ];
};
"/home/chris/media" = {
device = "ulmo:/";
fsType = "nfs";
};
"/home/chris/mandos" = {
device = "mandos:/";
fsType = "nfs";
};
};
}

View file

@ -8,11 +8,11 @@ in
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
kernelModules = [ "kvm-amd" ];
kernelParams = [];
extraModulePackages = [ ];
};
nixpkgs.hostPlatform = mkDefault system;
hardware.cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
}