mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix install script
This commit is contained in:
parent
4750f4ea9d
commit
0b2342ff13
5 changed files with 121 additions and 69 deletions
|
|
@ -1,21 +1,28 @@
|
|||
{ pkgs, lib, config, inputs, system, ... }:
|
||||
let cfg = config.mods;
|
||||
in with lib; {
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
sops = {
|
||||
age.keyFile = "/persist/var/lib/sops-nix/key.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
secrets.muon-password.neededForUsers = true;
|
||||
secrets.zipline-secret = mkIf cfg.server.share.enable {
|
||||
owner = "zipline";
|
||||
group = "zipline";
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
system,
|
||||
...
|
||||
}: let
|
||||
cfg = config.mods;
|
||||
in
|
||||
with lib; {
|
||||
imports = [inputs.sops-nix.nixosModules.sops];
|
||||
sops = {
|
||||
age.keyFile = "/persist/var/lib/sops-nix/key.txt";
|
||||
defaultSopsFile = ./secrets.yaml;
|
||||
secrets.muon-password.neededForUsers = true;
|
||||
secrets.zipline-secret = mkIf cfg.server.share.enable {
|
||||
owner = "zipline";
|
||||
group = "zipline";
|
||||
};
|
||||
secrets.htpasswd = mkIf cfg.server.cal.enable {
|
||||
owner = "radicale";
|
||||
group = "radicale";
|
||||
};
|
||||
secrets.lemmy-password = mkIf cfg.server.lemmy.enable {};
|
||||
secrets.sops-key = {};
|
||||
};
|
||||
secrets.htpasswd = mkIf cfg.server.cal.enable {
|
||||
owner = "radicale";
|
||||
group = "radicale";
|
||||
};
|
||||
secrets.lemmy-password = mkIf cfg.server.lemmy.enable {
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue