From 4d140208b334cda8f71cb9e5b52dc4e67554e256 Mon Sep 17 00:00:00 2001 From: tomoron Date: Wed, 16 Apr 2025 15:02:19 +0200 Subject: [PATCH] change name for chromium apps on iso --- homeConfigs/hosts/iso.nix | 2 +- homeConfigs/modules/discord.nix | 16 ---------------- homeConfigs/modules/nonChromium.nix | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 17 deletions(-) delete mode 100644 homeConfigs/modules/discord.nix create mode 100644 homeConfigs/modules/nonChromium.nix diff --git a/homeConfigs/hosts/iso.nix b/homeConfigs/hosts/iso.nix index 3b07af0..f055981 100644 --- a/homeConfigs/hosts/iso.nix +++ b/homeConfigs/hosts/iso.nix @@ -1,5 +1,5 @@ { lib, pkgs, ... }: { - mods.discord.enable = false; + mods.nonChromium.enable = false; } diff --git a/homeConfigs/modules/discord.nix b/homeConfigs/modules/discord.nix deleted file mode 100644 index 53edf44..0000000 --- a/homeConfigs/modules/discord.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ 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 - google-chrome - ]; - }; -} diff --git a/homeConfigs/modules/nonChromium.nix b/homeConfigs/modules/nonChromium.nix new file mode 100644 index 0000000..bd83476 --- /dev/null +++ b/homeConfigs/modules/nonChromium.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: + +{ + options.mods.nonChromium.enable = lib.mkOption { + type = lib.types.bool; + default = true; + description = "all chromium/electron based application can't be built by act-runner, so they can't be in the iso"; + }; + + config = lib.mkIf config.mods.nonChromium.enable { + home.packages = with pkgs;[ + discord + google-chrome + ]; + }; +}