First test of all machines
This commit is contained in:
parent
b963380a0a
commit
1d0209fac3
16 changed files with 268 additions and 73 deletions
|
|
@ -1,5 +1,47 @@
|
|||
{inputs, ...}: {
|
||||
imports = [
|
||||
./horseman.nix
|
||||
];
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf mkOption types;
|
||||
cfg = config.horseman.users.default;
|
||||
homeCfg = config.horseman;
|
||||
in {
|
||||
options = {
|
||||
horseman.users.default = {
|
||||
enable = mkEnableOption "Default user";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
home-manager = {
|
||||
extraSpecialArgs = {inherit inputs outputs;};
|
||||
users.${homeCfg.username} = {
|
||||
home = {
|
||||
username = "${homeCfg.username}";
|
||||
homeDirectory = "/home/${homeCfg.username}";
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.users.horseman = {
|
||||
initialPassword = "1234";
|
||||
isNormalUser = true;
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../../config/ssh/authorized_keys
|
||||
];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"docker"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue