blob: 478413af9017b8ae9d38678844e51bcb5424fd1a [file] [log] [blame]
Skyler Turnerf0e4f3e2022-01-09 13:46:00 +00001{ config, pkgs, nixpkgs, ... }:
Skyler Turner84ec77c2022-01-14 09:05:57 +00002let
3 username = "minion";
4 homedir = "/home/${username}";
Skyler Turner4ecd5812022-02-06 00:18:09 +00005
6 comma = import ( pkgs.fetchFromGitHub {
7 owner = "nix-community";
8 repo = "comma";
9 rev = "02e3e5545b0c62595a77f3d5de1223c536af0614";
Skyler Turnerf7995c52022-02-06 00:23:24 +000010 sha256 = "sha256-WBIQmwlkb/GMoOq+Dnyrk8YmgiM/wJnc5HYZP8Uw72E=";
Skyler Turner4ecd5812022-02-06 00:18:09 +000011 }) {};
12
Skyler Turner84ec77c2022-01-14 09:05:57 +000013in {
Skyler Turner205aff12021-12-20 11:22:57 +000014 # Home Manager needs a bit of information about you and the
15 # paths it should manage.
Skyler Turner84ec77c2022-01-14 09:05:57 +000016 home.username = username;
17 home.homeDirectory = homedir;
Skyler Turner205aff12021-12-20 11:22:57 +000018
19 programs.vscode.enable = true;
20 programs.vscode.package = pkgs.vscode-fhs;
21
22 programs.go.enable = true;
23
24 # programs.steam.enable = true;
25
26 programs.gpg.enable = true;
27 services.gpg-agent = {
28 enable = true;
29 pinentryFlavor = "qt";
30 };
31
Skyler Turner2a7e5742022-01-26 15:09:20 +000032 nixpkgs.overlays = [
33 (import ./overlays/anytype.nix)
34 (import ./overlays/nur.nix)
35 ];
Skyler Turnerf0e4f3e2022-01-09 13:46:00 +000036
Skyler Turner205aff12021-12-20 11:22:57 +000037 home.packages = with pkgs; [
38 steam-tui steam-run
39 minecraft
40 git-crypt gnupg pinentry_qt
Skyler Turner32dbfb42021-12-24 15:50:22 +000041 spotify
42 keepassxc
43 grim slurp
Skyler Turner2267c882022-01-12 10:02:54 +000044 neovim helix
Skyler Turner9bf37402021-12-29 15:51:21 +000045 qemu
Skyler Turner7c0c1812022-01-01 18:19:07 +000046 bind
Skyler Turnerf0e4f3e2022-01-09 13:46:00 +000047 file
48 nur.repos.kira-bruneau.rofi-wayland
49 rofimoji
Skyler Turner4870c2a2022-01-26 15:16:56 +000050 anytype-latest
Skyler Turner4f5f11b2022-01-14 23:36:39 +000051 htop
Skyler Turnera6cfb632022-01-16 23:03:43 +000052 hue-cli
Skyler Turner041c1f72022-02-06 00:10:28 +000053 thefuck
Skyler Turner97060bc2022-02-06 00:18:33 +000054 comma
Skyler Turner205aff12021-12-20 11:22:57 +000055 ];
56
Skyler Turnerb93743f2022-02-06 00:02:21 +000057 programs.zsh = {
58 enable = true;
59 oh-my-zsh = {
60 enable = true;
Skyler Turner041c1f72022-02-06 00:10:28 +000061 plugins = [ "git" "thefuck" ];
Skyler Turnerb93743f2022-02-06 00:02:21 +000062 theme = "crunch";
63 };
64 history = {
65 size = 10000;
66 path = "${config.xdg.dataHome}/zsh/history";
67 expireDuplicatesFirst = true;
68 extended = true;
69 };
70 initExtra = ''
71 bindkey "\'\'$\{key[Up]}" up-line-or-search
Skyler Turnerf7995c52022-02-06 00:23:24 +000072
Skyler Turnera6e30e12022-02-06 00:24:34 +000073 command_not_found_handler ()
Skyler Turnerf7995c52022-02-06 00:23:24 +000074 {
75 local p='/nix/store/ycclzpk99snlrk8sg9n4j8pm1927gavw-command-not-found/bin/command-not-found';
76 if [ -x "$p" ] && [ -f '/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' ]; then
Skyler Turner90f24a32022-02-06 00:30:56 +000077 , "$@";
78 # "$p" "$@";
79 # if [ $? = 126 ]; then
80 # "$@";
81 # else
82 # return 127;
83 # fi;
Skyler Turnerf7995c52022-02-06 00:23:24 +000084 else
85 echo "$1: command not found" 1>&2;
86 return 127;
87 fi
88 }
Skyler Turnerb93743f2022-02-06 00:02:21 +000089 '';
90 enableSyntaxHighlighting = true;
Skyler Turner041c1f72022-02-06 00:10:28 +000091 enableAutosuggestions = true;
Skyler Turnerb93743f2022-02-06 00:02:21 +000092 autocd = true;
Skyler Turner06d5d1c2022-02-06 00:05:04 +000093 dotDir = ".local/share/zsh";
Skyler Turnerb93743f2022-02-06 00:02:21 +000094 };
95
Skyler Turner205aff12021-12-20 11:22:57 +000096 programs.git = {
97 enable = true;
98
99 userName = "Skyler Turner";
100 userEmail = "skyler@clicksminuteper.net";
101
102 signing = {
103 key = "24D31D3B1B986F33";
104 signByDefault = true;
105 gpgPath = "gpg2";
106 };
107
108 lfs.enable = true;
109 delta.enable = true;
110
111 extraConfig = {
112 init.defaultBranch = "development";
113 color.ui = "auto";
114 core.autocrlf = "input";
115 };
116 };
117
118 # This value determines the Home Manager release that your
119 # configuration is compatible with. This helps avoid breakage
120 # when a new Home Manager release introduces backwards
121 # incompatible changes.
122 #
123 # You can update Home Manager without changing this value. See
124 # the Home Manager release notes for a list of state version
125 # changes in each release.
126 home.stateVersion = "21.11";
127
128 # Let Home Manager install and manage itself.
129 programs.home-manager.enable = true;
130}