2023-02-10 07:46:37 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
machine,
|
|
|
|
...
|
|
|
|
}: let
|
2023-02-15 21:45:28 +01:00
|
|
|
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
|
|
|
|
./apps/zsh.nix
|
|
|
|
./secrets/sops.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]
|
|
|
|
);
|
2023-01-31 09:38:11 +01:00
|
|
|
|
|
|
|
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
|
2023-01-31 09:38:11 +01:00
|
|
|
|
2023-02-13 00:54:29 +01:00
|
|
|
nur.repos.nekowinston.org-stats
|
2023-02-10 07:46:37 +01:00
|
|
|
(nerdfonts.override {fonts = ["NerdFontsSymbolsOnly"];})
|
2023-02-24 22:02:18 +01:00
|
|
|
victor-mono
|
2023-02-22 03:24:38 +01:00
|
|
|
unstable.wezterm
|
2023-02-10 07:46:37 +01:00
|
|
|
]
|
|
|
|
++ lib.optionals isLinux [
|
|
|
|
_1password-gui
|
|
|
|
insomnia
|
|
|
|
mattermost-desktop
|
2023-02-20 20:57:05 +01:00
|
|
|
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) [
|
2023-02-13 00:54:29 +01:00
|
|
|
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
|
|
|
]);
|
2023-01-31 09:38:11 +01:00
|
|
|
|
2023-02-10 07:46:37 +01:00
|
|
|
sessionVariables =
|
|
|
|
{
|
|
|
|
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
2023-02-18 22:36:15 +01:00
|
|
|
CUDA_CACHE_PATH = "${config.xdg.dataHome}/nv";
|
|
|
|
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
|
2023-02-10 07:46:37 +01:00
|
|
|
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
|
|
|
PATH = "$PATH:${config.xdg.dataHome}/krew/bin:$GOPATH/bin";
|
2023-02-18 22:36:15 +01:00
|
|
|
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
|
|
|
XCOMPOSECACHE = "${config.xdg.cacheHome}/X11/xcompose";
|
2023-02-10 07:46:37 +01:00
|
|
|
}
|
2023-02-18 22:36:15 +01:00
|
|
|
// (
|
|
|
|
if isDarwin
|
|
|
|
then {
|
2023-02-28 04:57:10 +01:00
|
|
|
SSH_AUTH_SOCK = "${config.programs.gpg.homedir}/S.gpg-agent.ssh";
|
2023-02-18 22:36:15 +01:00
|
|
|
}
|
|
|
|
else {}
|
|
|
|
);
|
2023-01-31 09:38:11 +01:00
|
|
|
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
go = {
|
|
|
|
enable = true;
|
2023-02-17 17:26:53 +01:00
|
|
|
goPath = "${config.xdg.dataHome}/go";
|
2023-01-31 09:38:11 +01:00
|
|
|
};
|
|
|
|
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";
|
2023-01-31 09:38:11 +01:00
|
|
|
};
|
|
|
|
}
|