task | add template for pi-server.nix
This commit is contained in:
parent
89480b8e75
commit
ff0627b327
1 changed files with 24 additions and 0 deletions
24
hosts/templates/pi-server.nix
Normal file
24
hosts/templates/pi-server.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ inputs, outputs, lib, config, pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
../server
|
||||
../systemd-primary.nix
|
||||
../common/boot.nix
|
||||
../common/networking.nix
|
||||
../common/tailscale.nix
|
||||
../../home/pi-server.nix
|
||||
../../modules/beszel-agent.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
# Common server setup
|
||||
nix.settings.trusted-users = ["root" "don"];
|
||||
|
||||
# Server-specific Nix settings
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue