diff options
Diffstat (limited to 'nixos/alpha/configuration.nix')
-rw-r--r-- | nixos/alpha/configuration.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index c42fef6..4151ef0 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -12,10 +12,16 @@ boot.kernelPackages = pkgs.linuxPackages_xanmod; boot.kernelParams = [ + "nohibernate" "nmi_watchdog=0" "systemd.watchdog-device/dev/watchdog" ]; + boot.initrd.supportedFilesystems = [ "zfs" ]; + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.devNodes = "/dev/"; + boot.zfs.enableUnstable = true; + # GRUB bootloader boot.loader.efi.canTouchEfiVariables = true; boot.loader.grub = { @@ -26,6 +32,7 @@ configurationLimit = 10; device = "nodev"; useOSProber = true; + copyKernels = true; extraEntries = '' menuentry "Reboot" { reboot @@ -37,6 +44,8 @@ }; networking.hostName = "alpha"; + networking.hostId = "641a7b10"; + networking.networkmanager.enable = true; networking.useDHCP = false; networking.firewall.enable = true; @@ -68,6 +77,10 @@ environment.systemPackages = with pkgs; [ gcc ]; + services.zfs.trim.enable = true; + services.zfs.autoScrub.enable = true; + services.zfs.autoScrub.pools = [ "rpool" ]; + services.openssh.enable = true; services.openssh.passwordAuthentication = false; |