Created standard local user hm config for VMs
This commit is contained in:
parent
affa333969
commit
3285b483e2
@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.stateVersion = "24.11";
|
|
||||||
|
|
||||||
modules.profiles.base.enable = true;
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.stateVersion = "24.11";
|
|
||||||
|
|
||||||
modules.profiles.base.enable = true;
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.stateVersion = "24.11";
|
|
||||||
|
|
||||||
modules.profiles.base.enable = true;
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.stateVersion = "24.11";
|
|
||||||
|
|
||||||
modules.profiles.base.enable = true;
|
|
||||||
}
|
|
@ -55,6 +55,7 @@ in
|
|||||||
${pkgs.adcli}/bin/adcli join -D ${domain} \
|
${pkgs.adcli}/bin/adcli join -D ${domain} \
|
||||||
-U $ADCLI_JOIN_USER \
|
-U $ADCLI_JOIN_USER \
|
||||||
-O $ADCLI_JOIN_OU \
|
-O $ADCLI_JOIN_OU \
|
||||||
|
--dont-expire-password=true \
|
||||||
--stdin-password < ${cfg.join.passwordFile}
|
--stdin-password < ${cfg.join.passwordFile}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -52,12 +52,21 @@ in
|
|||||||
modules.secrets.secrets."passwords/local-hashed".neededForUsers = true;
|
modules.secrets.secrets."passwords/local-hashed".neededForUsers = true;
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.local = {
|
users.users.local = {
|
||||||
|
isNormalUser = true;
|
||||||
|
group = "local";
|
||||||
hashedPasswordFile = config.sops.secrets."passwords/local-hashed".path;
|
hashedPasswordFile = config.sops.secrets."passwords/local-hashed".path;
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq Admin"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq Admin"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
users.groups.local = { };
|
||||||
|
home-manager.users.local =
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
home.stateVersion = "24.11";
|
||||||
|
modules.profiles.base.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# System packages
|
# System packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user