Fold more logic into the tagging system
This commit is contained in:
parent
3398c611b7
commit
7999794410
14 changed files with 60 additions and 25 deletions
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
options.home = with lib; {
|
||||
desktop.enable = mkEnableOption "Desktop programs and services";
|
||||
chat.enable = mkEnableOption "Chat applications";
|
||||
gaming.enable = mkEnableOption "Gaming apps and programs";
|
||||
production.enable = mkEnableOption "Apps for visual productivity";
|
||||
school.enable = mkEnableOption "Apps for school and college";
|
||||
|
|
16
modules/home/programs/misc/chat/default.nix
Normal file
16
modules/home/programs/misc/chat/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
home = lib.mkIf config.home.chat.enable {
|
||||
packages = with pkgs; [
|
||||
element-desktop
|
||||
vesktop
|
||||
wasistlos
|
||||
];
|
||||
persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories =
|
||||
with lib; with config.home; with config.xdg; [
|
||||
"data/${removePrefix "${homeDirectory}/" configHome}/Element"
|
||||
"data/${removePrefix "${homeDirectory}/" configHome}/vesktop"
|
||||
"data/${removePrefix "${homeDirectory}/" cacheHome}/wasistlos"
|
||||
];
|
||||
};
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
{
|
||||
imports = [
|
||||
./avtools
|
||||
./chat
|
||||
./gaming
|
||||
./general
|
||||
./headless
|
||||
|
|
|
@ -4,12 +4,10 @@
|
|||
packages = with pkgs; [
|
||||
libreoffice
|
||||
qbittorrent
|
||||
vesktop
|
||||
];
|
||||
persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}".directories =
|
||||
with lib; with config.home; with config.xdg; [
|
||||
"data/${removePrefix "${homeDirectory}/" configHome}/qBittorrent"
|
||||
"data/${removePrefix "${homeDirectory}/" configHome}/vesktop"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
#jack.enable = true;
|
||||
jack.enable = builtins.elem "production" config.system.nixos.tags;
|
||||
wireplumber.extraConfig."wireplumber.settings"."bluetooth.autoswitch-to-headset-profile" = false;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
networking.wireless = {
|
||||
enable = true;
|
||||
enable = !config.networking.networkmanager.enable;
|
||||
userControlled.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
programs.gamemode = {
|
||||
enable = builtins.elem "pc" config.system.nixos.tags;
|
||||
enable = builtins.elem "gaming" config.system.nixos.tags;
|
||||
settings = {
|
||||
general.renice = 10;
|
||||
gpu = {
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
imports = [ ../../../home ];
|
||||
home = {
|
||||
desktop.enable = builtins.elem "pc" config.system.nixos.tags;
|
||||
chat.enable = builtins.elem "chat" config.system.nixos.tags;
|
||||
gaming.enable = builtins.elem "gaming" config.system.nixos.tags;
|
||||
production.enable = builtins.elem "production" config.system.nixos.tags;
|
||||
school.enable = builtins.elem "school" config.system.nixos.tags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue