initial commit
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
_: {
|
||||
# New host: copy this file to hosts/<name>.nix. Replace fileSystems/boot
|
||||
# below with the real hardware (see hosts/server-n0.nix for a bigger
|
||||
# example). Add a containers/<name>/ directory for its containers.
|
||||
|
||||
module =
|
||||
{ lib, hostInfo, ... }:
|
||||
{
|
||||
networking.hostName = hostInfo.hostname;
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/NIXOS_ROOT";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/persist" = {
|
||||
device = "/dev/disk/by-label/NIXOS_PERSIST";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/nix" = {
|
||||
device = "/dev/disk/by-label/NIXOS_NIX";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/var/log" = {
|
||||
device = "/dev/disk/by-label/NIXOS_VARLOG";
|
||||
fsType = "ext4";
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
boot.loader.grub.device = "nodev";
|
||||
boot.loader.grub.efiSupport = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user