dotfiles/home.nix

113 lines
2.6 KiB
Nix
Raw Normal View History

2023-02-10 07:46:37 +01:00
{
config,
lib,
pkgs,
sops,
machine,
2023-02-12 08:05:51 +01:00
hyprland,
2023-02-10 07:46:37 +01:00
...
}: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
2023-02-10 07:46:37 +01:00
in {
imports =
[
2023-02-12 08:05:51 +01:00
hyprland
2023-02-10 07:46:37 +01:00
sops
./catppuccin
./modules/firefox.nix
./modules/git.nix
./modules/gpg.nix
./modules/i3.nix
./modules/kubernetes.nix
./modules/mail.nix
./modules/music.nix
./modules/neovim.nix
./modules/newsboat.nix
2023-02-12 08:05:51 +01:00
./modules/rice.nix
2023-02-10 07:46:37 +01:00
./modules/sops.nix
./modules/vscode.nix
2023-02-12 21:46:07 +01:00
./modules/wayland.nix
2023-02-10 07:46:37 +01:00
./modules/wezterm.nix
./modules/zsh.nix
]
2023-02-12 08:05:51 +01:00
++ lib.optionals (builtins.pathExists ./modules/secrets.nix) [./modules/secrets.nix];
catppuccin = {
2023-02-12 08:05:51 +01:00
defaultTheme = "mocha";
bat.enable = true;
btop.enable = true;
dircolors.enable = true;
k9s.enable = true;
};
manual.manpages.enable = false;
home = {
packages = with pkgs; ([
2023-02-10 07:46:37 +01:00
zsh
fd
ffmpeg
file
imagemagick
mdcat
ranger
ripgrep
git-secret
cargo
unstable.deno
rustc
2023-02-10 09:02:50 +01:00
gh
nur.repos.nekowinston.org-stats
2023-02-10 07:46:37 +01:00
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
wezterm
2023-02-10 07:46:37 +01:00
]
++ lib.optionals isDarwin [
iina
]
++ lib.optionals isLinux [
_1password-gui
insomnia
mattermost-desktop
]
++ 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-10 07:46:37 +01:00
lutris
]);
2023-02-10 07:46:37 +01:00
sessionVariables =
{
CARGO_HOME = "${config.xdg.dataHome}/cargo";
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
PATH = "$PATH:${config.xdg.dataHome}/krew/bin:$GOPATH/bin";
}
// lib.mkIf isDarwin {
# https://github.com/NixOS/nix/issues/2033
NIX_PATH = "$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels\${NIX_PATH:+:$NIX_PATH}";
SSH_AUTH_SOCK = "${config.xdg.configHome}/gnupg/S.gpg-agent.ssh";
};
stateVersion = "22.11";
};
programs = {
home-manager.enable = true;
go = {
enable = true;
2023-02-17 17:26:53 +01:00
goPath = "${config.xdg.dataHome}/go";
};
man.enable = true;
taskwarrior.enable = true;
};
xdg = {
enable = true;
userDirs.enable = isLinux;
2023-02-10 06:34:05 +01:00
cacheHome = "${config.home.homeDirectory}/.cache";
configHome = "${config.home.homeDirectory}/.config";
dataHome = "${config.home.homeDirectory}/.local/share";
};
}