this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove unneeded stuff, xdg mime

Ben C bc043bd8 7a87724d

+37 -52
+1 -1
homeModules/dev.nix
··· 68 68 69 69 programs.npm = lib.mkIf conf.web { 70 70 enable = true; 71 - # package = pkgs.nodejs_latest; TODO: Building node from source :( 71 + package = pkgs.nodejs_latest; 72 72 settings = { 73 73 fund = false; 74 74 };
+25 -20
homeModules/gdi.nix
··· 9 9 options.cow.gdi = { 10 10 enable = lib.mkEnableOption "Niri + Customizations"; 11 11 doIdle = lib.mkEnableOption "Turn off screen, sleep, etc. from inactivity"; 12 + extras = { 13 + office = lib.mkEnableOption "Office applications"; 14 + }; 12 15 }; 13 16 14 17 config = let 15 - iconTheme = { 16 - name = "Tela-green"; 17 - package = pkgs.tela-icon-theme; 18 - }; 19 18 cursorTheme = { 20 19 name = "catppuccin-mocha-dark-cursors"; 21 20 package = pkgs.catppuccin-cursors.mochaDark; ··· 27 26 28 27 home.packages = with pkgs; [ 29 28 alsa-utils 30 - 31 29 dconf 32 30 33 31 cursorTheme.package 34 - iconTheme.package 35 32 36 33 xdg-terminal-exec # For gtk-launch, etc to be able to open `Terminal` desktop entries 37 34 38 35 # Shell Components 39 36 hyprlock 40 - nautilus 41 37 42 - ## Waybar 43 - qt6.qttools # For component 38 + ## Waybar Deps 39 + qt6.qttools 44 40 41 + ## Audio Control 45 42 pavucontrol 46 43 44 + ## Image Viewer 45 + loupe 46 + 47 + ## Screen Recording Deps 47 48 wf-recorder 48 49 slurp 49 - grim 50 - xdg-utils 51 - swappy 50 + 51 + ## Notifications 52 52 libnotify 53 53 swaynotificationcenter 54 - wl-clipboard 55 54 56 - hunspell 57 - hunspellDicts.en_US-large 55 + ## Misc. 56 + wl-clipboard 57 + xdg-utils 58 58 ]; 59 59 60 60 xdg.userDirs.setSessionVariables = true; 61 - 62 61 xdg.mimeApps = { 63 62 enable = true; 64 63 defaultApplications = { 65 - "application/pdf" = lib.mkIf config.cow.firefox.enable "firefox-devedition.desktop"; 66 - "image/*" = lib.mkIf config.cow.firefox.enable "firefox-devedition.desktop"; 67 - "text/*" = lib.mkIf config.cow.neovim.enable "neovide.desktop"; 64 + "inode/directory" = lib.mkIf config.cow.yazi.enable "yazi.desktop"; 65 + "inode/mount-point" = lib.mkIf config.cow.yazi.enable "yazi.desktop"; 68 66 }; 67 + # As many as possible to override system stuff 68 + defaultApplicationPackages = 69 + [pkgs.loupe] 70 + ++ (lib.optional config.cow.keepassxc.enable pkgs.keepassxc) 71 + ++ (lib.optional config.cow.qmplay2.enable pkgs.qmplay2) 72 + ++ (lib.optional config.cow.firefox.enable config.programs.firefox.package) 73 + ++ (lib.optional config.cow.neovim.enable config.programs.nixvim.build.package) 74 + ++ (lib.optional config.cow.kitty.enable config.programs.kitty.package); 69 75 }; 70 76 71 77 fonts.fontconfig.enable = false; ··· 493 499 494 500 gtk = { 495 501 enable = true; 496 - iconTheme = lib.mkForce iconTheme; 497 502 gtk2.extraConfig = "gtk-application-prefer-dark-theme=true"; 498 503 gtk3.extraConfig.gtk-application-prefer-dark-theme = true; 499 504 gtk4.extraConfig.gtk-application-prefer-dark-theme = true;
+1 -1
homeModules/music.nix
··· 363 363 Name=Music Player 364 364 Terminal=true 365 365 Exec=rmpc 366 - Icon=playmymusic 366 + Icon=musique 367 367 ''; 368 368 }; 369 369
+1 -2
homeModules/news.nix
··· 46 46 cow.imperm.keep = [".local/share/newsboat"]; 47 47 48 48 home.packages = with pkgs; [ 49 - w3m 50 49 rdrview 51 50 ]; 52 51 ··· 61 60 62 61 programs.newsboat = { 63 62 enable = true; 64 - browser = ''"${../res/news-open.nu} %u"''; 63 + browser = ''"${../res/news-open.nu} %u ${lib.getExe pkgs.w3m}"''; 65 64 66 65 # notify-program ${../res/news-notify.nu} 67 66
-16
homeModules/user-bean.nix
··· 73 73 }; 74 74 }; 75 75 76 - home.packages = lib.mkIf config.cow.gdi.enable ( 77 - with pkgs; [ 78 - zoom-us 79 - tuxpaint 80 - ] 81 - ); 82 - 83 - home.sessionVariables = { 84 - "EDITOR" = "nvim"; 85 - }; 86 - 87 - xdg.mimeApps.defaultApplications = lib.mkIf config.cow.gdi.enable { 88 - "image/svg+xml" = "org.inkscape.Inkscape.desktop"; 89 - "image/*" = "org.gnome.Loupe.desktop"; 90 - }; 91 - 92 76 cow = { 93 77 kitty.enable = true; 94 78 libraries.enable = true;
-7
homeModules/utils.nix
··· 53 53 ] 54 54 ++ lib.optionals config.cow.gdi.enable [ 55 55 wev 56 - libreoffice-qt6 57 - obs-studio 58 - loupe 59 - gimp 60 - inkscape 61 - lorien 62 - pympress 63 56 ]; 64 57 65 58 home.shellAliases = lib.mkIf config.cow.utils.batAliases {
+4 -1
homeModules/yazi.nix
··· 22 22 [Desktop Entry] 23 23 Type=Application 24 24 Name=Yazi 25 + Comment=File Browser 25 26 Terminal=true 26 - Exec=yazi 27 + Exec=yazi %F 28 + Icon=nautilus 29 + MimeType=inode/directory;inode/mount-point 27 30 ''; 28 31 }; 29 32
+5 -4
res/news-open.nu
··· 7 7 $in | nvim -R -n $"+file ($name)" 8 8 } 9 9 10 - def fetch_clean_webpage [url: string] { 10 + def fetch_clean_webpage [url: string, w3m_path: string] { 11 11 try { 12 - rdrview -B "w3m -no-cookie -dump -cols 90" $url 12 + rdrview -B $"($w3m_path) -no-cookie -dump -cols 90" $url 13 13 } catch { 14 - w3m -no-cookie -dump -cols 90 $url 14 + run-external $w3m_path "-no-cookie" "-dump" "-cols" "90" $url 15 15 } 16 16 } 17 17 18 18 def main [ 19 19 url: string; 20 + w3m_path: string; 20 21 ] { 21 22 print $"Opening ($url)..."; 22 23 let type = try { ··· 39 40 # Try to use rdrview to get rid of unimportant parts of the webpage 40 41 # Then render its HTML to a nice format with w3m 41 42 # Finally display in neovim (I don't wanna change the w3m keybinds) 42 - fetch_clean_webpage $url | disp_text $url; 43 + fetch_clean_webpage $url $w3m_path | disp_text $url; 43 44 } else if ($type | str starts-with "text/") { 44 45 # Simply display text files in neovim, might just merge this 45 46 # with the HTML handler since it would work prolly?