From 602cc45c0946a306846b3eaa4cf53649d686e96e Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 21 Aug 2025 21:36:18 -0700 Subject: [PATCH] nixos/gateone: remove The package is literally gone, this could never work. --- .../manual/release-notes/rl-2511.section.md | 2 + nixos/modules/misc/ids.nix | 4 +- nixos/modules/module-list.nix | 1 - nixos/modules/rename.nix | 3 + nixos/modules/services/networking/gateone.nix | 73 ------------------- 5 files changed, 7 insertions(+), 76 deletions(-) delete mode 100644 nixos/modules/services/networking/gateone.nix diff --git a/nixos/doc/manual/release-notes/rl-2511.section.md b/nixos/doc/manual/release-notes/rl-2511.section.md index 51a9cfb49686..774d0edbe659 100644 --- a/nixos/doc/manual/release-notes/rl-2511.section.md +++ b/nixos/doc/manual/release-notes/rl-2511.section.md @@ -136,6 +136,8 @@ - `netbox-manage` script created by the `netbox` module no longer uses `sudo -u netbox` internally. It can be run as root and will change it's user to `netbox` using `runuser` +- `services.gateone` has been removed as the package was removed such that it does not work. + - `services.dwm-status.extraConfig` was replaced by [RFC0042](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md)-compliant [](#opt-services.dwm-status.settings), which is used to generate the config file. `services.dwm-status.order` is now moved to [](#opt-services.dwm-status.settings.order), as it's a part of the config file. - `gitversion` was updated to 6.3.0, which includes a number of breaking changes, old configurations may need updating or they will cause the tool to fail to run. diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index b50d7c7a50c8..8813cb8f3d9f 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -246,7 +246,7 @@ in subsonic = 204; # riak = 205; # unused, remove 2022-07-22 #shout = 206; # dynamically allocated as of 2021-09-18, module removed 2024-10-19 - gateone = 207; + #gateone = 207; # removed 2025-08-21 namecoin = 208; #lxd = 210; # unused #kibana = 211;# dynamically allocated as of 2021-09-03 @@ -582,7 +582,7 @@ in subsonic = 204; # riak = 205;#unused, removed 2022-06-22 #shout = 206; #unused - gateone = 207; + #gateone = 207; #removed 2025-08-21 namecoin = 208; #lxd = 210; # unused #kibana = 211; diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 9415089e180e..23e93f20e0cd 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1154,7 +1154,6 @@ ./services/networking/frp.nix ./services/networking/frr.nix ./services/networking/g3proxy.nix - ./services/networking/gateone.nix ./services/networking/gdomap.nix ./services/networking/ghostunnel.nix ./services/networking/git-daemon.nix diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index d2c016861133..ef212ef7f4b6 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -367,6 +367,9 @@ in (mkRemovedOptionModule [ "services" "private-gpt" ] '' The private-gpt package and the corresponding module have been removed due to being broken and unmaintained. '') + (mkRemovedOptionModule [ "services" "gateone" ] '' + The gateone module was removed since the package was removed alongside much other obsolete python 2. + '') # Do NOT add any option renames here, see top of the file ]; } diff --git a/nixos/modules/services/networking/gateone.nix b/nixos/modules/services/networking/gateone.nix deleted file mode 100644 index 51817124cb1d..000000000000 --- a/nixos/modules/services/networking/gateone.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -let - cfg = config.services.gateone; -in -{ - options = { - services.gateone = { - enable = lib.mkEnableOption "GateOne server"; - pidDir = lib.mkOption { - default = "/run/gateone"; - type = lib.types.path; - description = "Path of pid files for GateOne."; - }; - settingsDir = lib.mkOption { - default = "/var/lib/gateone"; - type = lib.types.path; - description = "Path of configuration files for GateOne."; - }; - }; - }; - config = lib.mkIf cfg.enable { - environment.systemPackages = with pkgs.pythonPackages; [ - gateone - pkgs.openssh - pkgs.procps - pkgs.coreutils - pkgs.cacert - ]; - - users.users.gateone = { - description = "GateOne privilege separation user"; - uid = config.ids.uids.gateone; - home = cfg.settingsDir; - }; - users.groups.gateone.gid = config.ids.gids.gateone; - - systemd.services.gateone = with pkgs; { - description = "GateOne web-based terminal"; - path = [ - pythonPackages.gateone - nix - openssh - procps - coreutils - ]; - preStart = '' - if [ ! -d ${cfg.settingsDir} ] ; then - mkdir -m 0750 -p ${cfg.settingsDir} - chown -R gateone:gateone ${cfg.settingsDir} - fi - if [ ! -d ${cfg.pidDir} ] ; then - mkdir -m 0750 -p ${cfg.pidDir} - chown -R gateone:gateone ${cfg.pidDir} - fi - ''; - #unitConfig.RequiresMountsFor = "${cfg.settingsDir}"; - serviceConfig = { - ExecStart = ''${pythonPackages.gateone}/bin/gateone --settings_dir=${cfg.settingsDir} --pid_file=${cfg.pidDir}/gateone.pid --gid=${toString config.ids.gids.gateone} --uid=${toString config.ids.uids.gateone}''; - User = "gateone"; - Group = "gateone"; - WorkingDirectory = cfg.settingsDir; - }; - - wantedBy = [ "multi-user.target" ]; - requires = [ "network.target" ]; - }; - }; -}