feat(extern): ssh home module

This commit is contained in:
arcnmx 2024-04-16 14:04:59 -07:00
parent 66d60c7977
commit b3ecadf461
7 changed files with 276 additions and 2 deletions

View file

@ -2,11 +2,12 @@
extern'test'inputs,
...
}: let
inherit (extern'test'inputs.self) nixosModules;
inherit (extern'test'inputs.self) nixosModules homeModules;
in {
imports = [
nixosModules.default
extern'test'inputs.sops-nix.nixosModules.sops
extern'test'inputs.home-manager.nixosModules.default
];
config = {
@ -42,5 +43,27 @@ in {
sops = {
age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
};
users.users = {
me = {
isNormalUser = true;
};
};
home-manager = {
sharedModules = [
homeModules.default
];
users.me = { config, ... }: {
config = {
home.stateVersion = "23.11";
gensokyo-zone = {
ssh = {
enable = true;
};
};
programs.ssh.enable = true;
};
};
};
};
}