diff --git a/modules/module-list.nix b/modules/module-list.nix index 81d88a8bc..5df5ba60f 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -14,7 +14,6 @@ ./profiles/applications.nix ./profiles/debug.nix ./profiles/graphics.nix - ./profiles/installer.nix ./profiles/release.nix ./security/tpm2.nix ./users/accounts.nix diff --git a/modules/profiles/installer.nix b/modules/profiles/installer.nix deleted file mode 100644 index 310027967..000000000 --- a/modules/profiles/installer.nix +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors -# SPDX-License-Identifier: Apache-2.0 -# -{ - config, - lib, - ... -}: let - cfg = config.ghaf.profiles.installer; -in - with lib; { - options.ghaf.profiles.installer.enable = mkEnableOption "installer profile"; - - config = mkIf cfg.enable { - # Use less privileged ghaf user - users.users.ghaf = { - isNormalUser = true; - extraGroups = ["wheel" "networkmanager" "video"]; - # Allow the graphical user to login without password - initialHashedPassword = ""; - }; - - # Allow the user to log in as root without a password. - users.users.root.initialHashedPassword = ""; - - # Allow passwordless sudo from ghaf user - security.sudo = { - enable = mkDefault true; - wheelNeedsPassword = mkImageMediaOverride false; - }; - - # Automatically log in at the virtual consoles. - services.getty.autologinUser = "ghaf"; - }; - }