nix: configure nix-init defaults
Alan Pearce alan@alanpearce.eu
Thu, 18 Apr 2024 14:33:26 +0200
1 files changed, 9 insertions(+), 1 deletions(-)
jump to
M user/settings/nix.nix → user/settings/nix.nix
@@ -1,7 +1,11 @@ { config , pkgs , ... -}: { +}: +let + toml = pkgs.formats.toml { }; +in +{ imports = [ ../../pin.nix ]; @@ -12,6 +16,10 @@ nix-prefetch-scripts nix-init nixpkgs-fmt ]; + xdg.configFile."nix-init/config.toml".source = toml.generate "config.toml" { + maintainers = [ "alanpearce" ]; + nixpkgs = "builtins.getFlake \"nixpkgs\""; + }; nixpkgs.overlays = [ (import ../overlays/extra-packages.nix) ];