hosts/dunamis/sops.nix: add hostname workaround
hosts/eldrid/sops.nix: add hostname workaround hosts/sarien/sops.nix: add hostname workaround Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -4,8 +4,10 @@
|
||||
...
|
||||
}: let
|
||||
inherit (inputs) mysecrets;
|
||||
# TODO: stop relying on networking.hostName
|
||||
inherit (config.networking) hostName;
|
||||
hostName =
|
||||
if (config.networking.hostName == "vylxae")
|
||||
then "sarien"
|
||||
else config.networking.hostName;
|
||||
sopsFile = mysecrets + "/hosts/${hostName}.yaml";
|
||||
dotSsh = name: "/home/user/.ssh/" + name;
|
||||
sshKey = {
|
||||
@ -27,8 +29,9 @@ in {
|
||||
secrets = {
|
||||
"user-password-hashed".neededForUsers = true;
|
||||
"ssh-config" = {
|
||||
inherit (sshKey) mode owner;
|
||||
path = dotSsh "config";
|
||||
mode = "0400";
|
||||
owner = "user";
|
||||
};
|
||||
"ssh-${hostName}-user" = {
|
||||
inherit sopsFile;
|
||||
|
Reference in New Issue
Block a user