Refactor some modules

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-22 23:46:19 +00:00
parent e0602dd1a0
commit 3360e7f8c3
18 changed files with 74 additions and 39 deletions

View File

@@ -2,26 +2,16 @@
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{
config,
lib,
pkgs,
...
}:
{ ... }:
{
environment.persistence."/persist"."${home}/.ssh/known_hosts" = { };
home-manager.users.${user} = {
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
userKnownHostsFile = "${home}/.ssh/known_hosts/default";
};
services.ssh-agent.enable = true;
systemd.user.tmpfiles.rules = [
"d ${home}/.ssh/known_hosts 0755 ${user} users"
];
systemd.user.tmpfiles.rules = [ "d ${home}/.ssh/known_hosts 0755 ${user} users" ];
};
}