47 lines
835 B
Nix
47 lines
835 B
Nix
|
{
|
||
|
inputs,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
./nebula
|
||
|
|
||
|
./networking.nix
|
||
|
./programs.nix
|
||
|
];
|
||
|
|
||
|
# Immutable users
|
||
|
users.mutableUsers = false;
|
||
|
|
||
|
### Nix settings ###
|
||
|
nix = {
|
||
|
# Periodically optimise & collect garbage
|
||
|
gc = {
|
||
|
automatic = true;
|
||
|
dates = "weekly";
|
||
|
options = "--delete-older-than 30d";
|
||
|
};
|
||
|
optimise = {
|
||
|
automatic = true;
|
||
|
dates = ["weekly"];
|
||
|
};
|
||
|
|
||
|
# Make sure flakes are enabled
|
||
|
settings = {
|
||
|
experimental-features = ["nix-command" "flakes"];
|
||
|
flake-registry = "";
|
||
|
nix-path = config.nix.nixPath;
|
||
|
};
|
||
|
extraOptions = ''
|
||
|
keep-outputs = true
|
||
|
keep-derivations = true
|
||
|
'';
|
||
|
nixPath = ["nixpkgs=${pkgs.path}"];
|
||
|
registry = {
|
||
|
self.flake = inputs.self;
|
||
|
nixpkgs.flake = inputs.nixpkgs;
|
||
|
};
|
||
|
};
|
||
|
}
|