Compare commits

..

2 Commits

Author SHA1 Message Date
Moritz Böhme e3b7c63f20 feat(nix): add registry entry to self 2023-05-12 15:14:08 +02:00
Moritz Böhme f875fb90c5 fix(nix): nix command not set 2023-05-12 15:13:52 +02:00
2 changed files with 5 additions and 1 deletions

View File

@ -142,7 +142,7 @@
lib.nixosSystem { lib.nixosSystem {
inherit pkgs system lib; inherit pkgs system lib;
specialArgs = { specialArgs = {
inherit inputs; inherit inputs self;
}; };
modules = defaultModules ++ [ path ]; modules = defaultModules ++ [ path ];
}) })

View File

@ -1,6 +1,7 @@
{ config { config
, lib , lib
, inputs , inputs
, self
, ... , ...
}: }:
@ -22,6 +23,8 @@ in
}; };
config.nix = { config.nix = {
extraOptions = "experimental-features = nix-command flakes";
gc = { gc = {
automatic = cfg.gc.enable; automatic = cfg.gc.enable;
options = "--max-freed ${cfg.gc.minimumFreedGB} --delete-older-than 14d"; options = "--max-freed ${cfg.gc.minimumFreedGB} --delete-older-than 14d";
@ -42,6 +45,7 @@ in
master.flake = inputs.master; master.flake = inputs.master;
nixpkgs.flake = inputs.nixpkgs; nixpkgs.flake = inputs.nixpkgs;
stable.flake = inputs.stable; stable.flake = inputs.stable;
dotfiles.flake = self;
}; };
settings = { settings = {