Modularize nix config
This commit is contained in:
parent
f2e34e4c77
commit
d0b1495ede
4 changed files with 28 additions and 24 deletions
|
|
@ -8,6 +8,7 @@
|
|||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../common
|
||||
# Supporting
|
||||
./buckets.nix
|
||||
./nginx.nix
|
||||
|
|
@ -69,15 +70,6 @@
|
|||
|
||||
environment.variables.EDITOR = "vim";
|
||||
|
||||
# Nix configuration
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
# OpenSSH
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue