nixdots/hosts/herugrim/default.nix

61 lines
1.4 KiB
Nix
Raw Normal View History

2024-04-07 12:38:24 +00:00
{ 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";
2024-04-07 16:28:15 +00:00
2024-04-07 22:36:02 +00:00
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";
};
2024-04-07 16:28:15 +00:00
# Configure automatic root subvolume wiping on boot from initrd
2024-04-07 22:36:02 +00:00
autoWipeBtrfs = {
enable = true;
devices."/dev/disk/by-label/NIXROOT".subvolumes = [ "root" ];
2024-04-07 16:28:15 +00:00
};
};
2024-04-07 12:38:24 +00:00
};
2024-04-07 16:28:15 +00:00
2024-04-07 12:38:24 +00:00
device = {
virtual-machine = false;
cpu.type = "intel";
};
2024-04-07 16:28:15 +00:00
2024-04-07 12:38:24 +00:00
home-manager = {
2024-04-07 14:54:36 +00:00
enable = true;
2024-04-07 12:38:24 +00:00
stateVersion = "23.11";
git = {
userName = "ItsDrike";
userEmail = "itsdrike@protonmail.com";
signing = {
enabled = true;
key = "FA2745890B7048C0";
};
};
};
};
}