diff --git a/users/default.nix b/users/default.nix index 97133d9..57effe3 100644 --- a/users/default.nix +++ b/users/default.nix @@ -1,6 +1,6 @@ { inputs, ... }: { - imports = [ ./leyla ./ester ./eve ./remote ]; + imports = [ ./leyla ./ester ./eve ]; users.mutableUsers = false; diff --git a/users/remote/default.nix b/users/remote/default.nix deleted file mode 100644 index 6792b74..0000000 --- a/users/remote/default.nix +++ /dev/null @@ -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; - } - ) - ]; - }; -} \ No newline at end of file