my system configurations ^-^
at main 1.0 kB view raw
1{ 2 lib, 3 inputs, 4 pkgs, 5 osConfig, 6 ... 7}: let 8 inherit (lib) optionals concatLists; 9 cfg = osConfig.settings.programs; 10in { 11 imports = [ 12 ./bat.nix 13 ./bun.nix 14 ./eza.nix 15 ./fzf.nix 16 ./git.nix 17 ./ripgrep.nix 18 ./starship.nix 19 ./zoxide.nix 20 ./zsh.nix 21 ]; 22 23 config = lib.mkIf cfg.cli.enable { 24 home.packages = with pkgs; 25 with inputs; 26 concatLists [ 27 (optionals cfg.categories.tools.enable [ 28 catppuccin.packages."${pkgs.system}".catwalk 29 catppuccin.packages."${pkgs.system}".whiskers 30 31 # archivebox 32 just 33 tldr 34 typst 35 ]) 36 (optionals cfg.categories.dev.enable [ 37 # node 38 nodePackages.npm 39 nodejs 40 pnpm 41 42 # nix 43 alejandra 44 deadnix 45 devenv 46 direnv 47 nix-inspect 48 statix 49 50 # rust 51 cargo 52 gcc # needed for rust-analyzer 53 rustc 54 55 # python 56 uv 57 ]) 58 ]; 59 }; 60}