From e5c52b4bc5b7b02aa388c8b495cb2d5edd6975d8 Mon Sep 17 00:00:00 2001 From: tomoron Date: Tue, 15 Apr 2025 15:54:01 +0200 Subject: [PATCH] remove discord from iso build --- .gitea/workflows/default.yaml | 2 +- homeConfigs/hosts/iso.nix | 5 +++++ homeConfigs/modules/discord.nix | 15 +++++++++++++++ homeConfigs/packages.nix | 3 +-- osConfigs/hosts/iso.nix | 5 ++++- 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 homeConfigs/hosts/iso.nix create mode 100644 homeConfigs/modules/discord.nix diff --git a/.gitea/workflows/default.yaml b/.gitea/workflows/default.yaml index 37c72af..5d87c17 100644 --- a/.gitea/workflows/default.yaml +++ b/.gitea/workflows/default.yaml @@ -9,7 +9,7 @@ jobs: - name: get repo uses: actions/checkout@v4.2.2 - - name: create iso image + - name: install nix uses: https://github.com/cachix/install-nix-action@v31 - name: build iso diff --git a/homeConfigs/hosts/iso.nix b/homeConfigs/hosts/iso.nix new file mode 100644 index 0000000..3b07af0 --- /dev/null +++ b/homeConfigs/hosts/iso.nix @@ -0,0 +1,5 @@ +{ lib, pkgs, ... }: + +{ + mods.discord.enable = false; +} diff --git a/homeConfigs/modules/discord.nix b/homeConfigs/modules/discord.nix new file mode 100644 index 0000000..d65533c --- /dev/null +++ b/homeConfigs/modules/discord.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: + +{ + options.mods.discord.enable = lib.mkOption { + type = lib.types.bool; + default = true; + description = "install discord"; + }; + + config = lib.mkIf config.mods.discord.enable { + home.packages = with pkgs;[ + discord + ]; + }; +} diff --git a/homeConfigs/packages.nix b/homeConfigs/packages.nix index 4650b38..e4d0ae2 100644 --- a/homeConfigs/packages.nix +++ b/homeConfigs/packages.nix @@ -6,7 +6,7 @@ # By: tomoron +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/02/09 22:01:56 by tomoron #+# #+# # -# Updated: 2025/03/27 18:53:17 by tomoron ### ########.fr # +# Updated: 2025/04/15 15:34:14 by tomoron ### ########.fr # # # # **************************************************************************** # @@ -18,7 +18,6 @@ activate-linux unison - discord google-chrome brightnessctl playerctl diff --git a/osConfigs/hosts/iso.nix b/osConfigs/hosts/iso.nix index de9dbbc..634f0b5 100644 --- a/osConfigs/hosts/iso.nix +++ b/osConfigs/hosts/iso.nix @@ -17,6 +17,9 @@ home-manager.extraSpecialArgs = { inherit inputs; inherit pkgs; isOs = true;}; home-manager.users.tom = { - imports = [ ../../homeConfigs/home.nix ]; + imports = [ + ../../homeConfigs/home.nix + ../../homeConfigs/hosts/iso.nix + ]; }; }