home: prefer modules for some packages

This commit is contained in:
Oystein Kristoffer Tveit 2024-09-26 09:56:38 +02:00
parent 7d7d0868ce
commit ea541f2f2b
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
6 changed files with 34 additions and 6 deletions

View File

@ -10,17 +10,21 @@ in {
./programs/aria2.nix ./programs/aria2.nix
./programs/atuin.nix ./programs/atuin.nix
./programs/beets.nix
./programs/comma.nix ./programs/comma.nix
./programs/direnv ./programs/direnv
./programs/gdb.nix ./programs/gdb.nix
./programs/gh.nix ./programs/gh.nix
./programs/gh-dash.nix
./programs/git ./programs/git
./programs/gpg ./programs/gpg
./programs/jq.nix
./programs/less.nix ./programs/less.nix
./programs/neovim ./programs/neovim
./programs/nix-index ./programs/nix-index
./programs/ssh ./programs/ssh
./programs/tealdeer ./programs/tealdeer
./programs/thunderbird.nix
./programs/tmux.nix ./programs/tmux.nix
./programs/zsh ./programs/zsh

View File

@ -1,7 +1,6 @@
{ pkgs, config, machineVars, ... }: { pkgs, config, machineVars, ... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
beets
binutils binutils
cloc cloc
cyme cyme
@ -12,7 +11,6 @@
duff duff
ffmpeg ffmpeg
file file
gh-dash
glances glances
gpg-tui gpg-tui
gping gping
@ -20,7 +18,6 @@
hexyl hexyl
httpie httpie
imagemagick imagemagick
jq
kepubify kepubify
# keybase # keybase
keymapviz keymapviz
@ -35,7 +32,6 @@
mtr mtr
neofetch neofetch
nix-diff nix-diff
nix-index
nix-output-monitor nix-output-monitor
nix-tree nix-tree
nix-update nix-update
@ -85,7 +81,6 @@
alsa-utils alsa-utils
anki anki
ark ark
birdtray
calibre calibre
cool-retro-term cool-retro-term
darktable darktable
@ -128,7 +123,6 @@
tagainijisho tagainijisho
tenacity tenacity
thunderbird
# transcribe # transcribe
wireshark wireshark
xcalib xcalib

4
home/programs/beets.nix Normal file
View File

@ -0,0 +1,4 @@
{ ... }:
{
programs.beets.enable = true;
}

View File

@ -0,0 +1,4 @@
{ ... }:
{
programs.gh-dash.enable = true;
}

4
home/programs/jq.nix Normal file
View File

@ -0,0 +1,4 @@
{ ... }:
{
programs.jq.enable = true;
}

View File

@ -0,0 +1,18 @@
{ config, pkgs, lib, machineVars, ... }:
let
cfg = config.programs.thunderbird;
in
{
programs.thunderbird = {
enable = !machineVars.headless;
profiles.h7x4 = {
isDefault = true;
withExternalGnupg = true;
};
};
home.packages = lib.mkIf cfg.enable (with pkgs; [
birdtray
]);
}