mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
removed individual wm check
This commit is contained in:
parent
181b4ce5b7
commit
ce2a9c5dd2
6 changed files with 12 additions and 45 deletions
|
|
@ -3,15 +3,10 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.alacritty;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.alacritty = { enable = mkEnableOption "user.gui.alacritty"; };
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
{ options.modules.user.gui.alacritty = { enable = mkEnableOption "Enable Alacritty terminal"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
settings = import ./config/alacritty.nix { inherit config; };
|
||||
|
|
|
|||
|
|
@ -3,15 +3,9 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.browsers;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.browsers = { enable = mkEnableOption "user.gui.browsers"; };
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
{ options.modules.user.gui.browsers = { enable = mkEnableOption "Enable browsers"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.firefox.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
|||
|
|
@ -3,15 +3,10 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.corn;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.corn = { enable = mkEnableOption "user.gui.corn"; };
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
{ options.modules.user.gui.corn = { enable = mkEnableOption "Enable Bitcoin client applications"; };
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
trezor-suite
|
||||
trezorctl
|
||||
|
|
|
|||
|
|
@ -3,15 +3,10 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.fun;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.fun = { enable = mkEnableOption "user.gui.fun"; };
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
{ options.modules.user.gui.fun = { enable = mkEnableOption "Enable entertainment apps"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
|
|
|
|||
|
|
@ -3,21 +3,14 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.utils;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.utils = { enable = mkEnableOption "user.gui.utils"; };
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
{ options.modules.user.gui.utils = { enable = mkEnableOption "Enable desktop utils"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.btop.enable = true;
|
||||
home.packages = with pkgs; [
|
||||
gimp
|
||||
libreoffice
|
||||
|
||||
teams-for-linux
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,15 +3,10 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.gui.writing;
|
||||
gui = config.modules.user.gui.wm;
|
||||
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
};
|
||||
|
||||
in
|
||||
{ options.modules.user.gui.writing = { enable = mkEnableOption "user.gui.writing"; };
|
||||
config = mkIf (cfg.enable && wm.enable) {
|
||||
{ options.modules.user.gui.writing = { enable = mkEnableOption "Enable writing tools"; };
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
mdbook
|
||||
texlive.combined.scheme-tetex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue