dotfiles/home/default.nix

87 lines
1.8 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-02-19 00:18:25 +01:00
./apps/git.nix
./apps/gpg.nix
./apps/i3.nix
./apps/kubernetes.nix
./apps/mail.nix
./apps/music.nix
./apps/neovim.nix
./apps/newsboat.nix
./apps/rice.nix
2023-02-24 22:02:18 +01:00
./apps/sketchybar.nix
2023-02-19 00:18:25 +01:00
./apps/vscode.nix
./apps/wezterm.nix
2023-03-08 08:52:23 +01:00
./apps/wayland.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
zsh
fd
ffmpeg
file
imagemagick
mdcat
ranger
ripgrep
git-secret
2023-02-10 09:02:50 +01:00
gh
nur.repos.nekowinston.org-stats
(unstable.nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
2023-02-24 22:02:18 +01:00
victor-mono
2023-03-05 14:53:36 +01:00
ibm-plex
xkcd-font
nur.repos.nekowinston.wezterm-nightly
2023-02-10 07:46:37 +01:00
]
++ lib.optionals isLinux [
_1password-gui
insomnia
mattermost-desktop
neovide
2023-03-01 21:03:45 +01:00
unstable.jetbrains.webstorm
2023-02-10 07:46:37 +01:00
]
++ lib.optionals (isLinux && machine.personal) [
nur.repos.nekowinston.discover-overlay
2023-02-12 08:05:51 +01:00
(unstable.discord.override {withOpenASAR = true;})
2023-02-26 22:47:31 +01:00
unstable.lutris
unstable.heroic
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;
taskwarrior.enable = true;
};
2023-03-10 09:33:11 +01:00
xdg.configFile."ideavim/ideavimrc".source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/ideavim/ideavimrc";
}