diff options
author | Alan Pearce | 2024-04-18 14:33:26 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-19 10:43:19 +0200 |
commit | 7ee6d308c9ca2eff383eb53c18f2c2d7325a52c2 (patch) | |
tree | d82a28e8fb435f6d0b7cabdd0775d3b625f5558e /user | |
parent | fa35d40cee2a386e9313021f4d0f31c7797a7e77 (diff) | |
download | nixfiles-7ee6d308c9ca2eff383eb53c18f2c2d7325a52c2.tar.lz nixfiles-7ee6d308c9ca2eff383eb53c18f2c2d7325a52c2.tar.zst nixfiles-7ee6d308c9ca2eff383eb53c18f2c2d7325a52c2.zip |
nix: configure nix-init defaults
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/nix.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/user/settings/nix.nix b/user/settings/nix.nix index ec69d51f..702e2ebd 100644 --- a/user/settings/nix.nix +++ b/user/settings/nix.nix @@ -1,7 +1,11 @@ { config , pkgs , ... -}: { +}: +let + toml = pkgs.formats.toml { }; +in +{ imports = [ ../../pin.nix ]; @@ -12,6 +16,10 @@ 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) ]; |