initial testlab config
This commit is contained in:
parent
554c5c89a8
commit
983391385c
3 changed files with 66 additions and 0 deletions
34
nixos/machines/nerf-nixos-testlab/hardware-configuration.nix
Normal file
34
nixos/machines/nerf-nixos-testlab/hardware-configuration.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{config, lib, pkgs, modulesPath, ...}: {
|
||||
imports = [ ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "root";
|
||||
fsType = "tmpfs";
|
||||
options = [ "size=1G" "mode=755" ];
|
||||
};
|
||||
fileSystems."/persistence" = {
|
||||
device = "/dev/disk/by-uuid/30962650-f1dd-44bc-bca3-da1cdaa6fe3d";
|
||||
fsType = "ext4";
|
||||
neededForBoot = true;
|
||||
};
|
||||
fileSystems."/persist" = {
|
||||
device = "/persistence/persist";
|
||||
options = [ "bind" ];
|
||||
|
||||
};
|
||||
fileSystems."/nix" = {
|
||||
device = "/persistence/nix";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
fileSystems."/boot" = {
|
||||
device = "/persistence/boot";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/30962650-f1dd-44bc-bca3-da1cdaa6fe3d"; }];
|
||||
|
||||
nix.settings.max-jobs = lib.mkDefault 4;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue