0xda157's home-manager and nixos config
at main 103 lines 2.0 kB view raw
1{ 2 lib, 3 pkgs, 4 config, 5 inputs, 6 _class, 7 ... 8}: 9{ 10 ${if _class == "homeManager" then "home" else "fonts"}.packages = lib.mkIf config.stylix.enable ( 11 with pkgs; 12 [ 13 # keep-sorted start 14 googlesans-code 15 maple-mono.NF-CN 16 nerd-fonts.fira-mono 17 noto-fonts 18 roboto 19 roboto-flex 20 roboto-mono 21 roboto-slab 22 # keep-sorted end 23 ] 24 ); 25 26 stylix = { 27 enable = lib.mkDefault true; 28 29 polarity = "dark"; 30 base16Scheme = { 31 name = "Catppuccin Mocha"; 32 base00 = "#1e1e2e"; 33 base01 = "#181825"; 34 base02 = "#313244"; 35 base03 = "#45475a"; 36 base04 = "#585b70"; 37 base05 = "#cdd6f4"; 38 base06 = "#f5e0dc"; 39 base07 = "#b4befe"; 40 base08 = "#f38ba8"; 41 base09 = "#fab387"; 42 base0A = "#f9e2af"; 43 base0B = "#a6e3a1"; 44 base0C = "#94e2d5"; 45 base0D = "#89b4fa"; 46 base0E = "#cba6f7"; 47 base0F = "#f2cdcd"; 48 }; 49 50 image = lib.mkOverride 1100 inputs.wallpapers.pink-blossom; 51 52 opacity = lib.mkIf config.l.prefs.blur { 53 desktop = 0.9; 54 popups = 0.6; 55 terminal = 0.9; 56 applications = 0.9; 57 }; 58 59 cursor = { 60 package = pkgs.bibata-cursors; 61 name = "Bibata-Modern-Classic"; 62 size = 24; 63 }; 64 65 icons = { 66 enable = true; 67 package = pkgs.papirus-icon-theme; 68 light = "Papirus-Light"; 69 dark = "Papirus-Dark"; 70 }; 71 72 fonts = { 73 serif = { 74 package = pkgs.inter; 75 name = "Inter"; 76 }; 77 78 sansSerif = config.stylix.fonts.serif; 79 80 monospace = { 81 package = pkgs.nerd-fonts.inconsolata; 82 name = "Inconsolata"; 83 }; 84 85 emoji = { 86 package = pkgs.noto-fonts-color-emoji; 87 name = "Noto Color Emoji"; 88 }; 89 90 sizes = { 91 desktop = 9; 92 popups = 12; 93 applications = 12; 94 terminal = 10; 95 }; 96 }; 97 98 targets = { 99 nixvim.enable = false; 100 gtksourceview.enable = false; 101 }; 102 }; 103}