summaryrefslogtreecommitdiff
path: root/modules/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/traits/secrets.nix12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/nixos/traits/secrets.nix b/modules/nixos/traits/secrets.nix
index bd685ef..9e0e025 100644
--- a/modules/nixos/traits/secrets.nix
+++ b/modules/nixos/traits/secrets.nix
@@ -12,8 +12,6 @@ in
options.traits.secrets = {
enable = lib.mkEnableOption "secrets management";
- rootUser = lib.mkEnableOption "manage secrets for root user";
-
hostUser = lib.mkEnableOption "manager secrets for host user (see `profiles.server.hostUser`)" // {
default = config.profiles.server.hostUser;
defaultText = "config.profiles.server.hostUser";
@@ -34,16 +32,6 @@ in
};
}
- (lib.mkIf cfg.rootUser {
- age.secrets = {
- rootPassword.file = secretsDir + "/rootPassword.age";
- };
-
- users.users.root = {
- hashedPasswordFile = config.age.secrets.rootPassword.path;
- };
- })
-
(lib.mkIf (config.profiles.server.enable && cfg.hostUser) {
age.secrets = {
userPassword.file = secretsDir + "/userPassword.age";