all repos — nixfiles @ 7ee6d308c9ca2eff383eb53c18f2c2d7325a52c2

System and user configuration, managed by nix and home-manager

nix: configure nix-init defaults
Alan Pearce alan@alanpearce.eu
Thu, 18 Apr 2024 14:33:26 +0200
commit

7ee6d308c9ca2eff383eb53c18f2c2d7325a52c2

parent

fa35d40cee2a386e9313021f4d0f31c7797a7e77

1 files changed, 9 insertions(+), 1 deletions(-)

jump to
M user/settings/nix.nixuser/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)
   ];