Files
nix/hosts/rusty/configuration.nix

59 lines
1.2 KiB
Nix

{
lib,
inputs,
...
}: {
imports = [
../../configuration.nix
inputs.disko.nixosModules.disko
];
# Network
networking = {
hostName = lib.mkForce "rusty";
#wireless.enable = lib.mkForce true;
};
disko.devices.disk.main = {
device = "/dev/sda"; # This will be overwritten by disko-install
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/efi";
mountOptions = ["dmask=0022" "fmask=0022" "nofail"];
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
}