home: split programs/services into their own modules

This commit is contained in:
2024-11-19 10:42:23 +01:00
parent b8bd8612bb
commit 4e1eb31336
16 changed files with 97 additions and 47 deletions
+11
View File
@@ -0,0 +1,11 @@
{ config, ... }:
{
programs.bash = {
enable = true;
historyFile = "${config.xdg.dataHome}/bash_history";
historySize = 100000;
bashrcExtra = ''
source "${config.xdg.configHome}/mutable_env.sh"
'';
};
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
programs.bat.enable = true;
}
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
programs.bottom = {
enable = true;
settings.flags.enable_gpu = true;
};
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
programs.eza.enable = true;
}
+4
View File
@@ -0,0 +1,4 @@
{ machineVars, ... }:
{
programs.feh.enable = !machineVars.headless;
}
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
programs.fzf = {
enable = true;
defaultCommand = "fd --type f";
};
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
programs.home-manager.enable = true;
}
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
programs.man = {
enable = true;
generateCaches = true;
};
}
+4
View File
@@ -0,0 +1,4 @@
{ machineVars, ... }:
{
programs.mpv.enable = !machineVars.headless;
}
+4
View File
@@ -0,0 +1,4 @@
{ machineVars, ... }:
{
programs.obs-studio.enable = !machineVars.headless;
}
+7 -1
View File
@@ -10,5 +10,11 @@
mode = "0444";
};
programs.ssh.includes = [ config.sops.secrets."ssh/secret-config".path ];
programs.ssh = {
enable = true;
includes = [
config.sops.secrets."ssh/secret-config".path
"mutable_config"
];
};
}
+7
View File
@@ -0,0 +1,7 @@
{ ... }:
{
programs.texlive = {
enable = true;
# packageSet = pkgs.texlive.combined.scheme-medium;
};
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
programs.zoxide.enable = true;
}