Manage remote systems
This commit is contained in:
parent
c93bae39fa
commit
f211bd408b
8 changed files with 239 additions and 0 deletions
62
machines/urithiru/hardware.nix
Normal file
62
machines/urithiru/hardware.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
kernelModules = [ ];
|
||||
postDeviceCommands = lib.mkAfter ''
|
||||
zfs rollback -r zroot/local/root@blank
|
||||
'';
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "zroot/local/root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
"/nix" = {
|
||||
device = "zroot/local/nix";
|
||||
fsType = "zfs";
|
||||
};
|
||||
"/nix/store" = {
|
||||
device = "zroot/local/nix-store";
|
||||
fsType = "zfs";
|
||||
};
|
||||
"/data" = {
|
||||
device = "zroot/safe/data";
|
||||
fsType = "zfs";
|
||||
};
|
||||
"/cache" = {
|
||||
device = "zroot/safe/cache";
|
||||
fsType = "zfs";
|
||||
};
|
||||
"/srv/data" = {
|
||||
device = "zdata/data";
|
||||
fsType = "zfs";
|
||||
};
|
||||
"/boot/ESP0" = {
|
||||
device = "/dev/disk/by-uuid/6ED1-0638";
|
||||
fsType = "vfat";
|
||||
};
|
||||
"/boot/ESP1" = {
|
||||
device = "/dev/disk/by-uuid/6F25-C8B8";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{ device = "/dev/disk/by-uuid/2b90207f-2d08-49aa-8a05-2c98c59224c1"; }
|
||||
{ device = "/dev/disk/by-uuid/e0c10fec-cef8-43ac-8a41-905c9d50609f"; }
|
||||
{ device = "/dev/disk/by-uuid/860a9a86-7882-479c-8be8-f51a5edbf7f7"; }
|
||||
{ device = "/dev/disk/by-uuid/088f30de-c76d-4843-ac62-8442852b372d"; }
|
||||
];
|
||||
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue