experiment

This commit is contained in:
xenia 2024-12-17 02:30:25 -05:00
parent 7ba8c01ca7
commit 907f2b4f79
1 changed files with 22 additions and 0 deletions

View File

@ -138,6 +138,28 @@
config.nixpkgs.config = lib.mkIf config.dragnpkgs.possiblyCommitCrimes {
allowlistedLicenses = [ lib.licenses.fyptl ];
};
config.nix.registry.dragnpkgs-global-config.to =
let
possiblyCommitCrimes =
lib.boolToString config.dragnpkgs.possiblyCommitCrimes;
config-flake = pkgs.writeTextDir "source" (pkgs.writeTextFile {
name = "source";
destination = "/flake.nix";
text = ''
{
outputs = { self }: {
dragnpkgsConfig = {
possiblyCommitCrimes = ${possiblyCommitCrimes};
};
};
}
'';
});
in {
type = "path";
path = "${config-flake}";
};
})
(import ./module.nix)