experiment
This commit is contained in:
parent
7ba8c01ca7
commit
907f2b4f79
22
flake.nix
22
flake.nix
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue