Modularize nix config
This commit is contained in:
parent
f2e34e4c77
commit
d0b1495ede
4 changed files with 28 additions and 24 deletions
8
hosts/common/default.nix
Normal file
8
hosts/common/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
|
||||
imports = [
|
||||
./nix.nix
|
||||
];
|
||||
|
||||
}
|
||||
18
hosts/common/nix.nix
Normal file
18
hosts/common/nix.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
||||
nix = {
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
trusted-users = [ "jhemono" ];
|
||||
};
|
||||
channel.enable = false;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue