Infini-OPTIPLEX: init
This commit is contained in:
parent
422c1cadc2
commit
4890a4538e
11 changed files with 480 additions and 0 deletions
44
hosts/Infini-OPTIPLEX/default.nix
Normal file
44
hosts/Infini-OPTIPLEX/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ config, pkgs, lib, private, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./filesystems.nix
|
||||
];
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
modules = {
|
||||
boot = {
|
||||
grub.enable = true;
|
||||
timeout = 1;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
form.server = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
directories = [
|
||||
"/home"
|
||||
"/etc/nixos"
|
||||
"/etc/nixos-private"
|
||||
|
||||
# /var directories
|
||||
"/var/log"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/tailscale"
|
||||
|
||||
"/srv"
|
||||
];
|
||||
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
|
||||
"/root/.local/share/nix/trusted-settings.json"
|
||||
"/root/.ssh/known_hosts"
|
||||
"/root/.ssh/id_ed25519"
|
||||
"/root/.ssh/id_ed25519.pub"
|
||||
"/root/.ssh/immutable_files.txt"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue