dotfiles/home/default.nix

64 lines
1.1 KiB
Nix
Raw Normal View History

2023-02-10 07:46:37 +01:00
{
config,
lib,
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
./secrets
./xdg.nix
];
home = {
2024-05-07 18:20:52 +02:00
packages =
with pkgs;
(
[
_1password
age
age-plugin-yubikey
deno
fd
ffmpeg
file
gh
git-crypt
gocryptfs
imagemagick
just
mdcat
nix-output-monitor
nur.repos.nekowinston.icat
nvd
ranger
ripgrep
watchexec
]
++ lib.optionals (config.isGraphical && isLinux) [
_1password-gui
uhk-agent
neovide
]
);
sessionVariables = lib.mkIf isDarwin {
SSH_AUTH_SOCK = "${config.programs.gpg.homedir}/S.gpg-agent.ssh";
};
stateVersion = "23.05";
};
home.mac-wallpaper = ./wallpapers/dhm_1610.png;
programs = {
home-manager.enable = true;
man.enable = true;
taskwarrior.enable = true;
};
2023-03-10 09:33:11 +01:00
age.secrets."wakatime.cfg".path = "${config.home.sessionVariables.WAKATIME_HOME}/.wakatime.cfg";
}