From f6992dc859063795ed21e82f85614f26aa5ef405 Mon Sep 17 00:00:00 2001 From: Laurent Gueret Date: Thu, 15 Oct 2026 19:27:43 +0200 Subject: [PATCH] Suppression de Stram et nettoyage --- hosts/darwin/home/users/alistreaza.nix | 1 + hosts/darwin/system/partials/system.nix | 2 ++ modules/system/darwin/homebrew.nix | 7 ++++-- modules/system/nixos/apps/games/proton.nix | 22 ---------------- modules/system/nixos/apps/games/steam.nix | 29 ---------------------- 5 files changed, 8 insertions(+), 53 deletions(-) delete mode 100644 modules/system/nixos/apps/games/proton.nix delete mode 100644 modules/system/nixos/apps/games/steam.nix diff --git a/hosts/darwin/home/users/alistreaza.nix b/hosts/darwin/home/users/alistreaza.nix index a6275f6..681f777 100644 --- a/hosts/darwin/home/users/alistreaza.nix +++ b/hosts/darwin/home/users/alistreaza.nix @@ -32,6 +32,7 @@ targets.darwin.linkApps.enable = false; targets.darwin.copyApps.enable = false; + # Activation script after all home.activation.widgets = lib.hm.dag.entryAfter ["writeBoundary"] '' run /usr/bin/defaults delete com.apple.notificationcenterui || true run /usr/bin/killall NotificationCenter || true diff --git a/hosts/darwin/system/partials/system.nix b/hosts/darwin/system/partials/system.nix index 904ab00..fe59710 100644 --- a/hosts/darwin/system/partials/system.nix +++ b/hosts/darwin/system/partials/system.nix @@ -43,4 +43,6 @@ controlcenter.BatteryShowPercentage = true; }; }; + + } diff --git a/modules/system/darwin/homebrew.nix b/modules/system/darwin/homebrew.nix index b046dec..d3f971a 100644 --- a/modules/system/darwin/homebrew.nix +++ b/modules/system/darwin/homebrew.nix @@ -36,8 +36,11 @@ in mutableTaps = false; }; - homebrew.enable = true; - homebrew.taps = builtins.attrNames config.nix-homebrew.taps; + homebrew = { + enable = true; + onActivation.cleanup = "zap"; + taps = builtins.attrNames config.nix-homebrew.taps; + }; }; } diff --git a/modules/system/nixos/apps/games/proton.nix b/modules/system/nixos/apps/games/proton.nix deleted file mode 100644 index bc47a9c..0000000 --- a/modules/system/nixos/apps/games/proton.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ - lib, - config, - pkgs, - ... -}: -with lib; -let - cfg = config.os.apps.games.protonge; -in -{ - options.os.apps.games.protonge = { - enable = mkEnableOption "System pipewire service"; - }; - config = mkIf cfg.enable { - - environment.systemPackages = with pkgs; [ - umu-launcher - ]; - - }; -} diff --git a/modules/system/nixos/apps/games/steam.nix b/modules/system/nixos/apps/games/steam.nix deleted file mode 100644 index 3cc31b7..0000000 --- a/modules/system/nixos/apps/games/steam.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - lib, - config, - pkgs, - ... -}: -with lib; -let - cfg = config.os.apps.games.steam; -in -{ - options.os.apps.games.steam = { - enable = mkEnableOption "System pipewire service"; - }; - config = mkIf cfg.enable { - - programs.steam = { - enable = true; - remotePlay.openFirewall = true; - dedicatedServer.openFirewall = true; - extraCompatPackages = with pkgs; [ - proton-ge-bin - ]; - }; - - programs.gamemode.enable = true; - - }; -}