mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
project-wide: Refactored profile system
This commit is contained in:
parent
dac56f7394
commit
219efa52ba
46 changed files with 52 additions and 107 deletions
|
|
@ -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 = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue