refactor: config/hosts => hosts
This commit is contained in:
17
hosts/imxyy-nix-server/nixos.nix
Normal file
17
hosts/imxyy-nix-server/nixos.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
username,
|
||||
secrets,
|
||||
...
|
||||
}:
|
||||
{
|
||||
sops.secrets.imxyy-nix-server-hashed-password = {
|
||||
sopsFile = secrets.imxyy-nix-server-hashed-password;
|
||||
format = "binary";
|
||||
neededForUsers = true;
|
||||
};
|
||||
users.users.${username}.hashedPasswordFile =
|
||||
lib.mkForce config.sops.secrets.imxyy-nix-server-hashed-password.path;
|
||||
users.users.root.hashedPasswordFile = lib.mkForce config.sops.secrets.imxyy-nix-server-hashed-password.path;
|
||||
}
|
||||
Reference in New Issue
Block a user