secrets: encrypt hashed password with sops-nix
This commit is contained in:
parent
66fe5fc189
commit
923893ac82
2 changed files with 6 additions and 7 deletions
|
@ -5,8 +5,7 @@
|
|||
isNormalUser = true;
|
||||
description = "Guanran Wang";
|
||||
extraGroups = [ "wheel" "networkmanager" "tss" ]; # tss = access to tpm devices
|
||||
#passwordFile = config.sops.secrets."user-password-guanranwang".path;
|
||||
hashedPassword = "$y$j9T$D7kBBBGwxw1XmPApAHIsx/$hcB64v3/kvPB7nIM9wXFiaSSBfhSp9k/JQ4R9G3guk6";
|
||||
hashedPasswordFile = config.sops.secrets."hashed-passwd".path;
|
||||
shell = pkgs.fish;
|
||||
packages = [];
|
||||
};
|
||||
|
@ -26,7 +25,7 @@
|
|||
restartUnits = [ "clash-meta.service" ];
|
||||
path = "/etc/clash-meta/config.yaml";
|
||||
};
|
||||
"user-password-guanranwang".neededForUsers = true;
|
||||
"hashed-passwd".neededForUsers = true;
|
||||
};
|
||||
};
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue