WIP sops for Lilim -> enable pure eval.
This commit is contained in:
parent
b37af57fd5
commit
908b709439
6 changed files with 67 additions and 7 deletions
|
@ -14,7 +14,8 @@ in {
|
|||
trusted-substituters = [
|
||||
"https://cache.nixos.org"
|
||||
] ++ cfg.binaryCaches;
|
||||
trusted-public-keys = [ (lib.fileContents "${cfg.secretPath}/hydra_cache.pub") ];
|
||||
# TODO: integrate into sops
|
||||
# trusted-public-keys = [ (lib.fileContents "${cfg.secretPath}/hydra_cache.pub") ];
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
] ++ cfg.binaryCaches;
|
||||
|
|
|
@ -7,7 +7,7 @@ let
|
|||
name = user.name;
|
||||
value = let
|
||||
cfg = config.services;
|
||||
passPath = "${config.machine.secretPath}/${user.name}";
|
||||
passPath = config.sops.secrets."users/${user.name}/password".path;
|
||||
in {
|
||||
isNormalUser = true;
|
||||
name = user.name;
|
||||
|
@ -22,9 +22,10 @@ let
|
|||
++ (optional config.virtualisation.docker.enable "docker");
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
passwordFile = passPath;
|
||||
openssh.authorizedKeys.keyFiles = optional
|
||||
(cfg.openssh.enable && (builtins.pathExists "${passPath}.pub"))
|
||||
"${passPath}.pub";
|
||||
# TODO: Fix for sops
|
||||
# openssh.authorizedKeys.keyFiles = optional
|
||||
# (cfg.openssh.enable && (builtins.pathExists "${passPath}.pub"))
|
||||
# "${passPath}.pub";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -36,7 +37,6 @@ let
|
|||
members = [ user.name ];
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue