add server
Some checks are pending
Flake.lock / build (push) Waiting to run

This commit is contained in:
Mohamed Chrayed 2024-08-24 12:18:11 +02:00
parent cd83b793bc
commit ae6da0c4e3
2 changed files with 54 additions and 0 deletions

View File

@ -167,5 +167,35 @@
];
};
server =
let
user = "administrator";
hostName = "server";
in
lib.nixosSystem {
specialArgs = {
inherit systemModules;
inherit userModules;
inherit system;
inherit user;
inherit hostName;
};
system = system;
# Device specific NixOS Modules
modules = systemModules ++ [
./hosts/${hostName}
./modules/docker
./modules/system/syncthing
{
# Device specific Home Manager Modules
home-manager.users.${user}.imports = userModules ++ [
];
# Issue with Plasma Manager, has to be imported in a special way
home-manager.sharedModules = [];
}
];
};
};
}

24
hosts/server/default.nix Normal file
View File

@ -0,0 +1,24 @@
{ ... }:
{
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-partlabel/root";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-partlabel/EFI";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ {
device = "/var/lib/swapfile";
size = 16*1024;
}];
}