removed remote user
This commit is contained in:
parent
91fe8cc1b4
commit
dfb59a6444
|
@ -1,6 +1,6 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [ ./leyla ./ester ./eve ./remote ];
|
imports = [ ./leyla ./ester ./eve ];
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
{ lib, config, ... }:
|
|
||||||
let
|
|
||||||
cfg = config.users.remote;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.users.remote = {
|
|
||||||
isNormalUser = lib.mkEnableOption "remote";
|
|
||||||
};
|
|
||||||
|
|
||||||
config.users = {
|
|
||||||
groups.remote = {};
|
|
||||||
|
|
||||||
users.remote = lib.mkMerge [
|
|
||||||
{
|
|
||||||
uid = 2000;
|
|
||||||
group = "remote";
|
|
||||||
}
|
|
||||||
|
|
||||||
(
|
|
||||||
if cfg.isNormalUser then {
|
|
||||||
# extraGroups = [ "wheel" ];
|
|
||||||
|
|
||||||
hashedPasswordFile = config.sops.secrets."passwords/remote".path;
|
|
||||||
|
|
||||||
isNormalUser = true;
|
|
||||||
openssh.authorizedKeys.keys = [];
|
|
||||||
} else {
|
|
||||||
isSystemUser = true;
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue