{ pkgs, config, lib, ... }: { boot = { enableContainers = false; initrd.systemd.enable = true; kernelParams = [ "console=ttyS0" # "quiet" ]; loader.efi.canTouchEfiVariables = true; loader.grub.enable = false; loader.systemd-boot.enable = true; uki.name = "patos"; }; # Temporary files boot.tmp.useTmpfs = true; systemd.services.nix-daemon = { environment.TMPDIR = "/var/tmp"; }; system.switch = { enable = false; enableNg = true; }; services.fstrim.enable = true; system.nixos = { codeName = "Finn"; distroId = "patos"; distroName = "PatOS"; release = "2024-09"; }; system.image.version = "0.0.1"; # FIXME: Use epoch version. # Make the current system version visible in the prompt. programs.bash.promptInit = '' export PS1="\u@\h (version ${config.system.image.version}) $ " ''; # Not compatible with system.etc.overlay.enable yet. # users.mutableUsers = false; services.getty.autologinUser = "root"; # Don't accumulate crap. boot.tmp.cleanOnBoot = true; services.journald.extraConfig = '' SystemMaxUse=10M ''; # Debugging environment.systemPackages = with pkgs; [ parted (runCommand "systemd-sysupdate" { } '' mkdir -p $out/bin ln -s ${config.systemd.package}/lib/systemd/systemd-sysupdate $out/bin '') ]; system.stateVersion = "24.11"; }