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/atuin.nix
./programs/beets.nix
./programs/comma.nix
./programs/direnv
./programs/gdb.nix
./programs/gh.nix
./programs/gh-dash.nix
./programs/git
./programs/gpg
./programs/jq.nix
./programs/less.nix
./programs/neovim
./programs/nix-index
./programs/ssh
./programs/tealdeer
./programs/thunderbird.nix
./programs/tmux.nix
./programs/zsh

View File

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