use modules
This commit is contained in:
parent
69ab407977
commit
7a0bf61d06
11 changed files with 18 additions and 22 deletions
25
modules/nix-settings.nix
Normal file
25
modules/nix-settings.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true; # TODO: replace this with allowUnfreePredicate
|
||||
|
||||
# enable nix flakes
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
nix.settings.trusted-users = ["root" "osbm"];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
nix.nixPath = ["nixpkgs=${pkgs.path}"];
|
||||
|
||||
# disable the database error TODO add nix-index search
|
||||
programs.command-not-found.enable = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue