| ... | ... | @@ -2,380 +2,46 @@ |
| 2 | 2 | inputs, |
| 3 | 3 | config, |
| 4 | 4 | pkgs, |
| 5 | lib, |
| 5 | 6 | zls, |
| 6 | 7 | nix-options-search, |
| 7 | 8 | ... |
| 8 | | }: { |
| 9 | | # wayland.windowManager.hyprland = { |
| 10 | | # enable = true; |
| 11 | | # # ... |
| 12 | | # plugins = [ |
| 13 | | # inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars |
| 14 | | # # ... |
| 15 | | # ]; |
| 16 | | # }; |
| 17 | | |
| 18 | | # Home Manager needs a bit of information about you and the paths it should |
| 19 | | # manage. |
| 20 | | home.username = "nmarks"; |
| 21 | | home.homeDirectory = "/home/nmarks"; |
| 22 | | |
| 23 | | # This value determines the Home Manager release that your configuration is |
| 24 | | # compatible with. This helps avoid breakage when a new Home Manager release |
| 25 | | # introduces backwards incompatible changes. |
| 26 | | # |
| 27 | | # You should not change this value, even if you update Home Manager. If you do |
| 28 | | # want to update the value, then make sure to first check the Home Manager |
| 29 | | # release notes. |
| 30 | | home.stateVersion = "23.05"; # Please read the comment before changing. |
| 31 | | |
| 32 | | # imports = [ |
| 33 | | # ./zed-editor.nix |
| 34 | | # ]; |
| 35 | | |
| 36 | | # imports = [discord/default.nix]; |
| 37 | | # sys.discord.enable = true; |
| 38 | | |
| 39 | | # The home.packages option allows you to install Nix packages into your |
| 40 | | # environment. |
| 41 | | |
| 42 | | home.packages = with pkgs; |
| 43 | | [ |
| 44 | | glance |
| 45 | | rust-bin.stable.latest.default |
| 46 | | just |
| 47 | | libxkbcommon |
| 48 | | imagemagick |
| 49 | | lua51Packages.lua |
| 50 | | lua51Packages.luarocks-nix |
| 51 | | legcord |
| 52 | | calibre |
| 53 | | pyright |
| 54 | | ruff |
| 55 | | python312Packages.jedi-language-server |
| 56 | | wofi |
| 57 | | bottles |
| 58 | | kdePackages.dolphin |
| 59 | | path-of-building |
| 60 | | tor |
| 61 | | spotify |
| 62 | | stremio |
| 63 | | codespell |
| 64 | | fzf |
| 65 | | pavucontrol |
| 66 | | efibootmgr |
| 67 | | zigpkgs.master |
| 68 | | ghostty |
| 69 | | stylua |
| 70 | | webcord |
| 71 | | cachix |
| 72 | | (btop.override {cudaSupport = true;}) |
| 73 | | neofetch |
| 74 | | direnv |
| 75 | | R |
| 76 | | typst |
| 77 | | typst-live |
| 78 | | tmux |
| 79 | | zellij |
| 80 | | distrobox |
| 81 | | podman |
| 82 | | qemu |
| 83 | | vimgolf |
| 84 | | lazygit |
| 85 | | file |
| 86 | | vesktop |
| 87 | | (discord.override { |
| 88 | | withMoonlight = true; |
| 89 | | }) |
| 90 | | # itch : THIS IS BROKEN FOR SOME REASON, need to pin it?? |
| 91 | | qbittorrent |
| 92 | | deno |
| 93 | | imagemagick |
| 94 | | pkg-config |
| 95 | | mpv |
| 96 | | comma |
| 97 | | openconnect |
| 98 | | gnumake |
| 99 | | signal-desktop |
| 100 | | zed-editor |
| 101 | | #getting foundry to work! |
| 102 | | #nodejs_21 |
| 103 | | caddy |
| 104 | | cloudflared |
| 105 | | pm2 |
| 106 | | #productivty |
| 107 | | #Gaming |
| 108 | | lutris |
| 109 | | wineWowPackages.stable |
| 110 | | winetricks |
| 111 | | dxvk_2 |
| 112 | | mangohud |
| 113 | | vulkan-tools |
| 114 | | prismlauncher |
| 115 | | # for cmpm17 |
| 116 | | exiftool |
| 117 | | #for fun |
| 118 | | cowsay |
| 119 | | cmatrix |
| 120 | | hyfetch |
| 121 | | bat |
| 122 | | eza |
| 123 | | ollama |
| 124 | | sl |
| 125 | | fallout-ce |
| 126 | | fallout2-ce |
| 127 | | #LSP + formatters/linters |
| 128 | | lua-language-server |
| 129 | | nil |
| 130 | | alejandra |
| 131 | | statix |
| 132 | | texlab |
| 133 | | clang-tools |
| 134 | | # rust-analyzer |
| 135 | | #clippy |
| 136 | | # rustfmt |
| 137 | | #runpod |
| 138 | | docker |
| 139 | | nh |
| 140 | | fastfetch |
| 141 | | ] |
| 142 | | ++ [zls.packages.x86_64-linux.zls]; |
| 143 | | |
| 144 | | programs.atuin = { |
| 145 | | enable = true; |
| 146 | | enableBashIntegration = true; |
| 147 | | enableFishIntegration = true; |
| 148 | | daemon.enable = true; |
| 149 | | }; |
| 150 | | |
| 151 | | programs.direnv = { |
| 152 | | enable = true; |
| 153 | | #enableFishIntegration = true; |
| 154 | | nix-direnv.enable = true; |
| 155 | | }; |
| 156 | | |
| 157 | | programs.neovim = { |
| 158 | | viAlias = true; |
| 159 | | vimAlias = true; |
| 160 | | extraLuaPackages = ps: [ps.magick]; |
| 161 | | extraPackages = [pkgs.imagemagick]; |
| 162 | | }; |
| 163 | | #Link neovim config into nix |
| 164 | | #xdg.configFile.nvim.source = ./nvim; |
| 165 | | xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop"; |
| 166 | | # xdg.mimeApps.defaultApplications = {"inode/directory" = "org.kde.dolphin.desktop";}; |
| 167 | | |
| 168 | | programs.kitty = { |
| 169 | | enable = true; |
| 170 | | themeFile = "Catppuccin-Mocha"; |
| 171 | | extraConfig = "font_family Iosevka NF |
| 172 | | italic_font auto |
| 173 | | bold_italic_font auto |
| 174 | | bold_font auto"; |
| 175 | | }; |
| 176 | | |
| 177 | | programs.mangohud.enable = true; |
| 178 | | |
| 179 | | programs.fish = { |
| 180 | | enable = true; |
| 181 | | |
| 182 | | plugins = [ |
| 183 | | { |
| 184 | | name = "tide"; |
| 185 | | src = pkgs.fishPlugins.tide.src; |
| 186 | | } |
| 187 | | ]; |
| 188 | | shellAliases = { |
| 189 | | # hm-update = "git add home.nix ; git commit -m 'updated home-manager config'; git push origin main; home-manager switch --flake ~/.dotfiles/#nmarks"; |
| 190 | | # sys-update = "git add configuration.nix ; git commit -m 'updated system config'; git push origin main; sudo nixos-rebuild switch --flake ~/.dotfiles/#nmarks"; |
| 191 | | # full-update = "sys-update; hm-update"; |
| 192 | | reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now"; |
| 193 | | }; |
| 194 | | }; |
| 195 | | |
| 196 | | programs.hyfetch = { |
| 197 | | enable = true; |
| 198 | | settings = { |
| 199 | | backend = "fastfetch"; |
| 200 | | preset = "bisexual"; |
| 201 | | mode = "rgb"; |
| 202 | | light_dark = "dark"; |
| 203 | | lightness = { |
| 204 | | }; |
| 205 | | color_align = { |
| 206 | | mode = "horizontal"; |
| 207 | | # custom_colors = []; |
| 208 | | # fore_back = null; |
| 209 | | }; |
| 210 | | distro = null; |
| 211 | | pride_month_shown = [ |
| 9 | }: let |
| 10 | shared-programs = import ../shared/home-programs.nix {inherit config pkgs lib;}; |
| 11 | in { |
| 12 | home = { |
| 13 | username = "nmarks"; |
| 14 | homeDirectory = "/home/nmarks"; |
| 15 | |
| 16 | # This value determines the Home Manager release that your configuration is |
| 17 | # compatible with. This helps avoid breakage when a new Home Manager release |
| 18 | # introduces backwards incompatible changes. |
| 19 | # |
| 20 | # You should not change this value, even if you update Home Manager. If you do |
| 21 | # want to update the value, then make sure to first check the Home Manager |
| 22 | # release notes. |
| 23 | stateVersion = "23.05"; # Please read the comment before changing. |
| 24 | |
| 25 | packages = with pkgs; let |
| 26 | shared-packages = import ../shared/packages.nix {inherit pkgs;}; |
| 27 | in |
| 28 | shared-packages |
| 29 | ++ [ |
| 30 | zls.packages.x86_64-linux.zls |
| 31 | rust-bin.stable.latest.default |
| 212 | 32 | ]; |
| 213 | | pride_month_disable = false; |
| 214 | | }; |
| 215 | | }; |
| 33 | # programs.mangohud.enable = true; |
| 216 | 34 | |
| 217 | | services.glance = { |
| 218 | | enable = true; |
| 219 | | settings = { |
| 220 | | pages = [ |
| 221 | | { |
| 222 | | name = "Home"; |
| 223 | | columns = [ |
| 224 | | { |
| 225 | | size = "small"; |
| 226 | | widgets = [ |
| 227 | | { |
| 228 | | type = "calendar"; |
| 229 | | first-day-of-week = "monday"; |
| 230 | | } |
| 231 | | { |
| 232 | | type = "rss"; |
| 233 | | limit = 10; |
| 234 | | collapse-after = 3; |
| 235 | | cache = "12h"; |
| 236 | | feeds = [ |
| 237 | | { |
| 238 | | url = "https://selfh.st/rss/"; |
| 239 | | title = "selfh.st"; |
| 240 | | limit = 4; |
| 241 | | } |
| 242 | | {url = "https://ciechanow.ski/atom.xml";} |
| 243 | | { |
| 244 | | url = "https://www.joshwcomeau.com/rss.xml"; |
| 245 | | title = "Josh Comeau"; |
| 246 | | } |
| 247 | | {url = "https://samwho.dev/rss.xml";} |
| 248 | | { |
| 249 | | url = "https://ishadeed.com/feed.xml"; |
| 250 | | title = "Ahmad Shadeed"; |
| 251 | | } |
| 252 | | ]; |
| 253 | | } |
| 254 | | ]; |
| 255 | | } |
| 256 | | { |
| 257 | | size = "full"; |
| 258 | | widgets = [ |
| 259 | | { |
| 260 | | type = "group"; |
| 261 | | widgets = [{type = "hacker-news";} {type = "lobsters";}]; |
| 262 | | } |
| 263 | | { |
| 264 | | type = "videos"; |
| 265 | | channels = ["UCXuqSBlHAE6Xw-yeJA0Tunw" "UCR-DXc1voovS8nhAvccRZhg" "UCsBjURrPoezykLs9EqgamOA" "UCBJycsmduvYEL83R_U4JriQ" "UCHnyfMqiRRG1u-2MsSQLbXA"]; |
| 266 | | } |
| 267 | | { |
| 268 | | type = "group"; |
| 269 | | widgets = [ |
| 270 | | { |
| 271 | | type = "reddit"; |
| 272 | | subreddit = "technology"; |
| 273 | | show-thumbnails = true; |
| 274 | | } |
| 275 | | { |
| 276 | | type = "reddit"; |
| 277 | | subreddit = "selfhosted"; |
| 278 | | show-thumbnails = true; |
| 279 | | } |
| 280 | | ]; |
| 281 | | } |
| 282 | | ]; |
| 283 | | } |
| 284 | | { |
| 285 | | size = "small"; |
| 286 | | widgets = [ |
| 287 | | { |
| 288 | | type = "weather"; |
| 289 | | location = "London, United Kingdom"; |
| 290 | | units = "metric"; |
| 291 | | hour-format = "12h"; |
| 292 | | } |
| 293 | | { |
| 294 | | type = "markets"; |
| 295 | | symbol-link-template = "https://www.tradingview.com/symbols/{SYMBOL}/news"; |
| 296 | | markets = [ |
| 297 | | { |
| 298 | | symbol = "SPY"; |
| 299 | | name = "S&P 500"; |
| 300 | | } |
| 301 | | { |
| 302 | | symbol = "BTC-USD"; |
| 303 | | name = "Bitcoin"; |
| 304 | | } |
| 305 | | { |
| 306 | | symbol = "NVDA"; |
| 307 | | name = "NVIDIA"; |
| 308 | | } |
| 309 | | { |
| 310 | | symbol = "AAPL"; |
| 311 | | name = "Apple"; |
| 312 | | } |
| 313 | | { |
| 314 | | symbol = "MSFT"; |
| 315 | | name = "Microsoft"; |
| 316 | | } |
| 317 | | ]; |
| 318 | | } |
| 319 | | { |
| 320 | | type = "releases"; |
| 321 | | cache = "1d"; |
| 322 | | repositories = ["glanceapp/glance" "go-gitea/gitea" "immich-app/immich" "syncthing/syncthing"]; |
| 323 | | } |
| 324 | | ]; |
| 325 | | } |
| 326 | | ]; |
| 327 | | } |
| 328 | | ]; |
| 35 | sessionVariables = { |
| 36 | EDITOR = "nvim"; |
| 37 | VISUAL = "nvim"; |
| 38 | TERMINAL = "ghostty"; |
| 39 | BROWSER = "firefox"; |
| 329 | 40 | }; |
| 330 | 41 | }; |
| 331 | | /* |
| 332 | | programs.zsh = { |
| 333 | | oh-my-zsh = { |
| 334 | | enable = true; |
| 335 | | plugins = [ "git" "extract"]; |
| 336 | | }; |
| 337 | | enableAutosuggestions = true; |
| 338 | | enableCompletion = true; |
| 339 | | syntaxHighlighting.enable = true; |
| 340 | | |
| 341 | | plugins = [ |
| 342 | | {name = "powerlevel10k";src = pkgs.zsh-powerlevel10k;file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";} |
| 343 | | ]; |
| 344 | | }; |
| 345 | | */ |
| 346 | 42 | |
| 347 | | # Home Manager is pretty good at managing dotfiles. The primary way to manage |
| 348 | | # plain files is through 'home.file'. |
| 349 | | home.file = { |
| 350 | | # # Building this configuration will create a copy of 'dotfiles/screenrc' in |
| 351 | | # # the Nix store. Activating the configuration will then make '~/.screenrc' a |
| 352 | | # # symlink to the Nix store copy. |
| 353 | | # ".screenrc".source = dotfiles/screenrc; |
| 43 | programs = shared-programs; |
| 354 | 44 | |
| 355 | | # # You can also set the file content immediately. |
| 356 | | # ".gradle/gradle.properties".text = '' |
| 357 | | # org.gradle.console=verbose |
| 358 | | # org.gradle.daemon.idletimeout=3600000 |
| 359 | | # ''; |
| 360 | | }; |
| 361 | | |
| 362 | | # You can also manage environment variables but you will have to manually |
| 363 | | # source |
| 364 | | # |
| 365 | | # ~/.nix-profile/etc/profile.d/hm-session-vars.sh |
| 366 | | # |
| 367 | | # or |
| 368 | | # |
| 369 | | # /etc/profiles/per-user/nmarks/etc/profile.d/hm-session-vars.sh |
| 370 | | # |
| 371 | | # if you don't want to manage your shell through Home Manager. |
| 372 | | home.sessionVariables = { |
| 373 | | EDITOR = "nvim"; |
| 374 | | VISUAL = "nvim"; |
| 375 | | TERMINAL = "ghostty"; |
| 376 | | BROWSER = "firefox"; |
| 377 | | }; |
| 45 | xdg.mimeApps.defaultApplications."inode/directory" = "dolphin.desktop"; |
| 378 | 46 | |
| 379 | | # Let Home Manager install and manage itself. |
| 380 | | programs.home-manager.enable = true; |
| 381 | 47 | } |