{ lib, pkgs, ... }: { imports = [ ./hardware-configuration.nix ]; boot.supportedFilesystems = [ "btrfs" ]; nix.settings = { max-jobs = 6; cores = 6; }; # NixOS release from which this machine was first installed. # (for stateful data, like file locations and db versions) # Leave this alone! system.stateVersion = lib.mkForce "23.11"; services.openssh.settings.PasswordAuthentication = lib.mkForce true; myOptions = { system = { hostname = "herugrim"; username = "itsdrike"; impermanence.root = { enable = true; # Some people use /nix/persist/system for this, leaving persistent files in /nix subvolume # I much prefer using a standalone subvolume for this though. persistentMountPoint = "/persist"; # Configure automatic root subvolume wiping on boot from initrd autoBtrfsWipe = { devicePath = "/dev/disk/by-label/NIXROOT"; subvolumePath = "root"; cleanSnapshotPath = "root-blank"; }; }; }; device = { virtual-machine = false; cpu.type = "intel"; }; home-manager = { enable = true; stateVersion = "23.11"; git = { userName = "ItsDrike"; userEmail = "itsdrike@protonmail.com"; signing = { enabled = true; key = "FA2745890B7048C0"; }; }; }; }; }