mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 04:14:08 +02:00
This commit is contained in:
parent
cd83b793bc
commit
ae6da0c4e3
30
flake.nix
30
flake.nix
@ -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
24
hosts/server/default.nix
Normal 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;
|
||||||
|
}];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user