dotfiles/home/default.nix

86 lines
1.7 KiB
Nix
Raw Normal View History

2023-02-10 07:46:37 +01:00
{
config,
2023-03-10 09:33:11 +01:00
flakePath,
2023-02-10 07:46:37 +01:00
lib,
pkgs,
machine,
...
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
2023-02-19 01:58:53 +01:00
secretsAvailable = builtins.pathExists ./secrets/default.nix;
2023-02-10 07:46:37 +01:00
in {
imports =
[
2023-02-23 12:50:08 +01:00
./apps/browsers.nix
2023-05-13 07:04:20 +02:00
./apps/fonts.nix
2023-02-19 00:18:25 +01:00
./apps/git.nix
./apps/gpg.nix
./apps/i3.nix
./apps/kubernetes.nix
./apps/macos.nix
2023-02-19 00:18:25 +01:00
./apps/mail.nix
./apps/music.nix
./apps/neovim.nix
./apps/newsboat.nix
./apps/rice.nix
./apps/vscode.nix
2023-03-08 08:52:23 +01:00
./apps/wayland.nix
2023-05-13 07:04:20 +02:00
./apps/wezterm.nix
2023-02-19 00:18:25 +01:00
./apps/zsh.nix
./secrets/sops.nix
./xdg.nix
2023-02-10 07:46:37 +01:00
]
2023-02-19 01:58:53 +01:00
++ (
if secretsAvailable
then [./secrets]
else [./secrets/fallback.nix]
);
home = {
packages = with pkgs; ([
2023-02-10 07:46:37 +01:00
fd
ffmpeg
file
imagemagick
just
2023-02-10 07:46:37 +01:00
mdcat
ranger
ripgrep
git-secret
2023-02-10 09:02:50 +01:00
gh
2023-03-20 23:27:46 +01:00
mosh
2023-04-27 09:30:26 +02:00
podman
podman-compose
qemu
2023-02-10 07:46:37 +01:00
]
++ lib.optionals isLinux [
_1password-gui
2023-04-21 05:59:56 +02:00
#insomnia
#mattermost-desktop
neovide
2023-05-13 07:04:20 +02:00
kooha
2023-04-27 09:30:26 +02:00
#jetbrains.webstorm
2023-05-13 07:04:20 +02:00
gnome.gnome-boxes
2023-02-10 07:46:37 +01:00
]);
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;
2023-03-30 04:28:43 +02:00
mpv.enable = isLinux;
taskwarrior.enable = true;
2023-03-16 13:02:58 +01:00
mangohud = {
2023-03-17 04:51:19 +01:00
enable = isLinux && machine.personal;
2023-04-27 09:30:26 +02:00
package = pkgs.mangohud;
2023-03-16 13:02:58 +01:00
};
2023-03-28 12:59:48 +02:00
zathura.enable = true;
};
2023-03-10 09:33:11 +01:00
xdg.configFile."ideavim/ideavimrc".source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/ideavim/ideavimrc";
}