nixos/hosts/physiques/cephiroth/default.nix

45 lines
806 B
Nix

{ pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
./networking.nix
./ceph.nix
];
networking.hostId = "bbdd1133";
networking.hostName = "cephiroth";
boot.loader.grub = {
enable = true;
efiSupport = true;
zfsSupport = true;
device = "nodev";
mirroredBoots = [
# {
# devices = ["/dev/sdi"];
# path = "/boot";
# }
# {
# devices = [ "/dev/sdj" ];
# path = "/boot-fallback";
# }
{
devices = [ "nodev" ];
path = "/boot-fallback";
}
];
};
boot.tmp = {
useTmpfs = true;
cleanOnBoot = true;
};
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.extraPools = [ "head" ];
boot.loader.efi.canTouchEfiVariables = true;
system.stateVersion = "24.05";
}