mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
test password
This commit is contained in:
parent
e6aaead5d5
commit
832cd6de4c
3 changed files with 9 additions and 1 deletions
|
|
@ -19,11 +19,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.mutableUsers = false;
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
${config.user.name} = {
|
"${config.user.name}" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = config.user.groups;
|
extraGroups = config.user.groups;
|
||||||
openssh.authorizedKeys.keys = [ "${config.user.keys.ssh.primary}" ];
|
openssh.authorizedKeys.keys = [ "${config.user.keys.ssh.primary}" ];
|
||||||
|
password = "123";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,5 +88,7 @@ in
|
||||||
"network.target"
|
"network.target"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 9735 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ in
|
||||||
users = {
|
users = {
|
||||||
"${config.services.forgejo.user}" = {
|
"${config.services.forgejo.user}" = {
|
||||||
description = "Git server system user";
|
description = "Git server system user";
|
||||||
|
home = config.services.forgejo.stateDir;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = "${config.services.forgejo.user}";
|
group = "${config.services.forgejo.user}";
|
||||||
extraGroups = mkIf nginx.enable [
|
extraGroups = mkIf nginx.enable [
|
||||||
|
|
@ -54,5 +55,7 @@ in
|
||||||
createDatabase = true;
|
createDatabase = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 8333 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue