hosts/Infini-SERVER: update configuration

This commit is contained in:
Infinidoge 2021-12-13 20:50:22 -05:00
parent 2a6651fd67
commit 48d9bc352a
2 changed files with 96 additions and 1 deletions

View file

@ -1,6 +1,8 @@
{ suites, profiles, pkgs, lib, ... }: {
imports = lib.flatten [
(with suites; [ base ])
./hardware-configuration.nix
];
modules = {
@ -9,8 +11,35 @@
timeout = 1;
};
hardware = {
gpu.nvidia = true;
# gpu.nvidia = true;
form.server = true;
};
filesystems = {
enable = true;
btrfs.enable = true;
};
};
environment.persistence."/persist" = {
directories = [
"/home"
"/etc/nixos"
# /var directories
"/var/log"
"/var/lib/systemd/coredump"
];
files = [
"/etc/machine-id"
"/etc/ssh/ssh_host_rsa_key"
"/etc/ssh/ssh_host_rsa_key.pub"
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
"/root/.local/share/nix/trusted-settings.json"
"/root/.ssh/known_hosts"
];
};
}