mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
added wm checks to the gui modules
This commit is contained in:
parent
a6a14542fd
commit
2dd06de8ab
5 changed files with 30 additions and 6 deletions
|
|
@ -3,10 +3,15 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.user.gui.browsers;
|
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
|
in
|
||||||
{ options.modules.user.gui.browsers = { enable = mkEnableOption "user.gui.browsers"; };
|
{ options.modules.user.gui.browsers = { enable = mkEnableOption "user.gui.browsers"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf (cfg.enable && wm.enable) {
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,20 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.user.gui.corn;
|
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
|
in
|
||||||
{ options.modules.user.gui.corn = { enable = mkEnableOption "user.gui.corn"; };
|
{ options.modules.user.gui.corn = { enable = mkEnableOption "user.gui.corn"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf (cfg.enable && wm.enable) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
trezor-suite
|
trezor-suite
|
||||||
trezorctl
|
trezorctl
|
||||||
trezord
|
trezord
|
||||||
|
|
||||||
electrum
|
|
||||||
bisq-desktop
|
bisq-desktop
|
||||||
|
|
||||||
sparrow
|
sparrow
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,15 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.user.gui.fun;
|
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
|
in
|
||||||
{ options.modules.user.gui.fun = { enable = mkEnableOption "user.gui.fun"; };
|
{ options.modules.user.gui.fun = { enable = mkEnableOption "user.gui.fun"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf (cfg.enable && wm.enable) {
|
||||||
programs.obs-studio = {
|
programs.obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs.obs-studio-plugins; [
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,15 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.user.gui.utils;
|
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
|
in
|
||||||
{ options.modules.user.gui.utils = { enable = mkEnableOption "user.gui.utils"; };
|
{ options.modules.user.gui.utils = { enable = mkEnableOption "user.gui.utils"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf (cfg.enable && wm.enable) {
|
||||||
programs.btop.enable = true;
|
programs.btop.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gimp
|
gimp
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,15 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.user.gui.writing;
|
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
|
in
|
||||||
{ options.modules.user.gui.writing = { enable = mkEnableOption "user.gui.writing"; };
|
{ options.modules.user.gui.writing = { enable = mkEnableOption "user.gui.writing"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf (cfg.enable && wm.enable) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
mdbook
|
mdbook
|
||||||
texlive.combined.scheme-tetex
|
texlive.combined.scheme-tetex
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue