dotfiles/home/default.nix

79 lines
1.6 KiB
Nix
Raw Normal View History

2023-02-10 07:46:37 +01:00
{
config,
lib,
2024-09-20 08:57:36 +02:00
osConfig,
2023-02-10 07:46:37 +01:00
pkgs,
...
2024-05-07 18:20:52 +02:00
}:
let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
2024-05-07 18:20:52 +02:00
in
{
imports = [
./apps
2024-08-26 01:00:17 +02:00
./langs
2024-05-07 18:20:52 +02:00
./secrets
./xdg.nix
];
home = {
2024-05-07 18:20:52 +02:00
packages =
with pkgs;
(
[
_1password
age
age-plugin-yubikey
2024-08-24 04:15:54 +02:00
attic-client
2024-05-07 18:20:52 +02:00
fd
ffmpeg
file
gh
git-crypt
gocryptfs
imagemagick
just
mdcat
2024-08-24 04:15:54 +02:00
minio-client
2024-05-07 18:20:52 +02:00
nix-output-monitor
nur.repos.nekowinston.icat
nvd
ranger
ripgrep
2024-07-13 00:23:39 +02:00
sd
2024-05-07 18:20:52 +02:00
watchexec
]
++ lib.optionals (config.isGraphical && isLinux) [
2024-09-20 08:57:36 +02:00
(_1password-gui.override { polkitPolicyOwners = [ osConfig.dotfiles.username ]; })
2024-05-07 18:20:52 +02:00
neovide
2024-09-20 08:57:36 +02:00
nextcloud-client
uhk-agent
2024-05-07 18:20:52 +02:00
]
);
2024-08-24 04:15:54 +02:00
sessionVariables.SSH_AUTH_SOCK = lib.optionalString isDarwin "${config.programs.gpg.homedir}/S.gpg-agent.ssh";
stateVersion = "23.05";
2024-07-13 00:23:39 +02:00
# respected by `fd` & `rg`, makes it so that iCloud files are ignored by those utils
# this speeds up the search processes and files aren't downloaded while searching $HOME
file."Library/.ignore" = {
enable = isDarwin;
2024-08-24 04:15:54 +02:00
text = ''
Mobile Documents/
'';
};
};
2024-07-28 15:01:01 +02:00
xdg.configFile = lib.mkIf isDarwin { sketchybar.source = ./apps/sketchybar; };
programs = {
home-manager.enable = true;
man.enable = true;
2024-08-24 04:15:54 +02:00
taskwarrior = {
enable = true;
package = pkgs.taskwarrior3;
};
};
2023-03-10 09:33:11 +01:00
age.secrets."wakatime.cfg".path = "${config.home.sessionVariables.WAKATIME_HOME}/.wakatime.cfg";
}