From 1c7810a49eb270019eb3cd4f928a3d4aa4569ac6 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 5 Aug 2025 21:45:03 -0600 Subject: [PATCH] nixos: remove services, trash --- nixos/default.nix | 5 +--- nixos/services/default.nix | 8 ----- nixos/trash/default.nix | 10 ------- nixos/trash/steam/default.nix | 55 ----------------------------------- 4 files changed, 1 insertion(+), 77 deletions(-) delete mode 100644 nixos/services/default.nix delete mode 100644 nixos/trash/default.nix delete mode 100644 nixos/trash/steam/default.nix diff --git a/nixos/default.nix b/nixos/default.nix index e2637ac..5ce655e 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -4,8 +4,5 @@ pkgs, ... }: { - imports = [ - ./trash - ./services - ]; + imports = []; } diff --git a/nixos/services/default.nix b/nixos/services/default.nix deleted file mode 100644 index 5ce655e..0000000 --- a/nixos/services/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: { - imports = []; -} diff --git a/nixos/trash/default.nix b/nixos/trash/default.nix deleted file mode 100644 index a8c8785..0000000 --- a/nixos/trash/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: { - imports = [ - ./steam - ]; -} diff --git a/nixos/trash/steam/default.nix b/nixos/trash/steam/default.nix deleted file mode 100644 index 80a45e8..0000000 --- a/nixos/trash/steam/default.nix +++ /dev/null @@ -1,55 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -with lib; let - cfg = config.options.trivium.trash.steam; -in { - options.trivium.trash.steam = { - enable = mkEnableOption "steam settings"; - - compatibilityPackages = mkOption { - type = types.bool; - default = true; - description = "Enable additional compatibility packages (protontricks, protonup, etc.)"; - }; - - remotePlayOpenFirewall = mkOption { - type = types.bool; - default = false; - description = "Open firewall for Steam Remote Play"; - }; - - dedicatedServerOpenFirewall = mkOption { - type = types.bool; - default = false; - description = "Open firewall for Steam Dedicated Server"; - }; - - localNetworkGameTransfersOpenFirewall = mkOption { - type = types.bool; - default = false; - description = "Open firewall for Steam Local Network Game Transfers"; - }; - }; - - config = mkIf cfg.enable { - programs.steam = { - enable = true; - remotePlay.openFirewall = cfg.remotePlayOpenFirewall; - dedicatedServer.openFirewall = cfg.dedicatedServerOpenFirewall; - localNetworkGameTransfers.openFirewall = cfg.localNetworkGameTransfersOpenFirewall; - }; - - environment = mkIf cfg.compatibilityPackages { - systemPackages = with pkgs; [ - protontricks - protonup - protonup-ng - winetricks - ]; - }; - }; -}