project-wide: Refactored profile system

This commit is contained in:
kat witch 2021-03-28 21:01:01 +01:00
parent dac56f7394
commit 219efa52ba
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
46 changed files with 52 additions and 107 deletions

View file

@ -38,10 +38,6 @@ in {
type = types.bool;
default = true;
};
profiles = mkOption {
type = with types; listOf str;
default = [ ];
};
groups = mkOption {
type = with types; listOf str;
default = [ ];
@ -50,9 +46,6 @@ in {
};
config = mkIf cfg.enable {
deploy.profile = mkMerge (map (prof: {
${if options ? deploy.profile.${prof} then prof else null} = true;
}) config.deploy.profiles);
deploy.groups = [ "all" ];
system.build.deployScript = ''