nixos: remove services, trash

This commit is contained in:
Alejandro Soto 2025-08-05 21:45:03 -06:00
parent adc44af3a0
commit 1c7810a49e
No known key found for this signature in database
GPG key ID: A2C4C79764EE8F16
4 changed files with 1 additions and 77 deletions

View file

@ -4,8 +4,5 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [ imports = [];
./trash
./services
];
} }

View file

@ -1,8 +0,0 @@
{
config,
lib,
pkgs,
...
}: {
imports = [];
}

View file

@ -1,10 +0,0 @@
{
config,
lib,
pkgs,
...
}: {
imports = [
./steam
];
}

View file

@ -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
];
};
};
}