diff options
Diffstat (limited to 'nixos/features/global')
| -rw-r--r-- | nixos/features/global/agenix.nix | 7 | ||||
| -rw-r--r-- | nixos/features/global/nix.nix | 13 | ||||
| -rw-r--r-- | nixos/features/global/noxterm.nix | 3 |
3 files changed, 23 insertions, 0 deletions
diff --git a/nixos/features/global/agenix.nix b/nixos/features/global/agenix.nix new file mode 100644 index 0000000..f232886 --- /dev/null +++ b/nixos/features/global/agenix.nix @@ -0,0 +1,7 @@ +{ pkgs, inputs, ...}: { + imports = [ inputs.agenix.nixosModules.default ]; + environment.systemPackages = [ + inputs.agenix.packages.${pkgs.system}.default + ]; + age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; +} diff --git a/nixos/features/global/nix.nix b/nixos/features/global/nix.nix new file mode 100644 index 0000000..a0ece02 --- /dev/null +++ b/nixos/features/global/nix.nix @@ -0,0 +1,13 @@ +{ ... }: { + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + }; + gc = { + automatic = true; + dates = "daily"; + options = "-d 5"; + }; + }; +} diff --git a/nixos/features/global/noxterm.nix b/nixos/features/global/noxterm.nix new file mode 100644 index 0000000..44c0917 --- /dev/null +++ b/nixos/features/global/noxterm.nix @@ -0,0 +1,3 @@ +{ pkgs, ... }: { + services.xserver.excludePackages = [ pkgs.xterm ]; +} |
