mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Cursed refactor.
This commit is contained in:
parent
20b4bafa85
commit
5845debc95
83 changed files with 1000 additions and 804 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, options, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
|
@ -35,11 +35,18 @@ in {
|
|||
type = with types; listOf str;
|
||||
default = [ ];
|
||||
};
|
||||
groups = mkOption {
|
||||
type = with types; listOf str;
|
||||
default = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
deploy.profiles = [ "all" ];
|
||||
deploy.profile = mkMerge (map (prof: {
|
||||
${if options ? deploy.profile.${prof} then prof else null} = true;
|
||||
}) config.deploy.profiles);
|
||||
deploy.groups = [ "all" ];
|
||||
|
||||
system.build.deployScript =
|
||||
pkgs.writeScript "deploy-${config.networking.hostName}" ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue