dotfiles/home/default.nix

67 lines
1.3 KiB
Nix

{
config,
flakePath,
lib,
pkgs,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
in {
imports = [
./apps/browsers.nix
./apps/fonts.nix
./apps/git.nix
./apps/gpg.nix
./apps/i3.nix
./apps/kubernetes.nix
./apps/macos.nix
./apps/mail.nix
./apps/music.nix
./apps/neovim.nix
./apps/newsboat.nix
./apps/rice.nix
./apps/vscode.nix
./apps/wayland.nix
./apps/wezterm.nix
./apps/zsh.nix
./secrets/sops.nix
./xdg.nix
];
home = {
packages = with pkgs; ([
fd
ffmpeg
file
imagemagick
just
mdcat
ranger
ripgrep
git-secret
gh
mosh
podman
podman-compose
qemu
]
++ lib.optionals isLinux [
_1password-gui
kooha
jetbrains.goland
jetbrains.webstorm
]);
sessionVariables = lib.mkIf isDarwin {
SSH_AUTH_SOCK = "${config.programs.gpg.homedir}/S.gpg-agent.ssh";
};
stateVersion = "22.11";
};
programs = {
home-manager.enable = true;
man.enable = true;
taskwarrior.enable = true;
};
xdg.configFile."ideavim/ideavimrc".source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/ideavim/ideavimrc";
}