35 lines
883 B
Nix
35 lines
883 B
Nix
|
{
|
||
|
flake,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
{
|
||
|
boot.loader.systemd-boot.enable = true;
|
||
|
boot.supportedFilesystems = [ "zfs" ];
|
||
|
|
||
|
boot.kernelParams = [
|
||
|
"boot.shell_on_fail=1"
|
||
|
"ip=dhcp"
|
||
|
];
|
||
|
|
||
|
boot.initrd.availableKernelModules = [ "igb" ];
|
||
|
|
||
|
# https://nixos.wiki/wiki/ZFS#declarative_mounting_of_ZFS_datasets
|
||
|
systemd.services.zfs-mount.enable = false;
|
||
|
|
||
|
# Declarative SSH private key
|
||
|
#age.secrets."metronom-root-ssh-key" = {
|
||
|
# file = "${flake.self}/secrets/metronom-root-ssh-key.age";
|
||
|
# path = "/root/.ssh/id_ed25519";
|
||
|
# mode = "400";
|
||
|
# owner = "root";
|
||
|
#};
|
||
|
|
||
|
# This value determines the NixOS release with which your system is to be
|
||
|
# compatible, in order to avoid breaking some software such as database
|
||
|
# servers. You should change this only after NixOS release notes say you
|
||
|
# should.
|
||
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||
|
}
|