{ config, pkgs, lib, ... }: with lib; let psCfg = config.pub-solar; xdg = config.home-manager.users."${psCfg.user.name}".xdg; in { # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.kernelParams = [ "boot.shell_on_fail=1" "ip=128.140.109.213::172.31.1.1:255.255.255.255:frikandel-initrd.b12f.io::off" ]; boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_net" ]; boot.initrd.network = { enable = true; ssh = { enable = true; port = 2222; hostKeys = [ /boot/initrd-ssh-key ]; authorizedKeys = psCfg.user.publicKeys; shell = "/bin/cryptsetup-askpass"; }; }; boot.supportedFilesystems = [ "zfs" ]; # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix. # system.copySystemConfiguration = true; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It's perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.05"; # Did you read the comment? }