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
|
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
|
2023-04-08 12:59:06 +02:00
|
|
|
./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
|
|
|
|
./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
|
2023-03-07 23:53:05 +01:00
|
|
|
./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]
|
|
|
|
);
|
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
|
2023-02-10 09:02:50 +01:00
|
|
|
gh
|
2023-03-20 23:27:46 +01:00
|
|
|
mosh
|
2023-01-31 09:38:11 +01:00
|
|
|
|
2023-02-13 00:54:29 +01:00
|
|
|
nur.repos.nekowinston.org-stats
|
2023-03-07 12:35:17 +01:00
|
|
|
(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
|
2023-03-06 11:27:11 +01:00
|
|
|
xkcd-font
|
2023-04-07 20:12:48 +02:00
|
|
|
nur.repos.nekowinston.wezterm-nightly
|
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-03-17 03:47:27 +01:00
|
|
|
gnome.gnome-boxes
|
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-03-07 23:53:05 +01:00
|
|
|
sessionVariables = lib.mkIf isDarwin {
|
|
|
|
SSH_AUTH_SOCK = "${config.programs.gpg.homedir}/S.gpg-agent.ssh";
|
|
|
|
};
|
2023-01-31 09:38:11 +01:00
|
|
|
|
|
|
|
stateVersion = "22.11";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
man.enable = true;
|
2023-03-30 04:28:43 +02:00
|
|
|
mpv.enable = isLinux;
|
2023-01-31 09:38:11 +01:00
|
|
|
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-03-16 13:02:58 +01:00
|
|
|
package = pkgs.unstable.mangohud;
|
|
|
|
};
|
2023-03-28 12:59:48 +02:00
|
|
|
zathura.enable = true;
|
2023-01-31 09:38:11 +01:00
|
|
|
};
|
2023-03-10 09:33:11 +01:00
|
|
|
|
|
|
|
xdg.configFile."ideavim/ideavimrc".source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/ideavim/ideavimrc";
|
2023-01-31 09:38:11 +01:00
|
|
|
}
|