2024-05-22 19:49:34 +00:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
|
2024-06-23 13:16:04 +00:00
|
|
|
services.zfs.autoScrub = {
|
|
|
|
enable = true;
|
|
|
|
pools = [ "root_pool" ];
|
|
|
|
};
|
|
|
|
|
2024-08-25 01:45:53 +00:00
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
|
2024-05-22 19:49:34 +00:00
|
|
|
# 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?
|
|
|
|
}
|