Compare commits

..

2 Commits

Author SHA1 Message Date
Zynh Ludwig 86647131fb move brave + filetypes 2024-06-27 22:31:33 -07:00
Zynh Ludwig d913205cdc system specific stuff 2024-06-27 21:58:48 -07:00
3 changed files with 36 additions and 2 deletions

View File

@ -110,7 +110,6 @@
nix-output-monitor nix-output-monitor
brave
gparted gparted
arandr arandr
flameshot flameshot

View File

@ -20,7 +20,7 @@
programs.chromium = { programs.chromium = {
enable = true; enable = true;
package = "google-chrome"; package = pkgs.google-chrome;
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -34,6 +34,7 @@
feh feh
imagemagick imagemagick
brave
]; ];
home.file = { }; home.file = { };
@ -42,6 +43,8 @@
"${config.home.homeDirectory}/.cargo/bin" "${config.home.homeDirectory}/.cargo/bin"
]; ];
nixpkgs.config.allowUnfree = true;
# wayland.windowManager.hyprland = { # wayland.windowManager.hyprland = {
# enable = true; # enable = true;
# package = pkgs.hyprland; # package = pkgs.hyprland;

View File

@ -0,0 +1,32 @@
{ config, lib, pkgs, ... }:
let cfg = config.snowhawk.defaultPrograms;
in {
options.snowhawk.defaultPrograms = {
enable = lib.mkEnableOption "default programs";
};
config = cfg.enable {
xdg.mimeApps = {
enable = true;
defaultApplications = {
# Firefox
"application/pdf" = "brave-browser.desktop";
"application/x-extension-htm" = "brave-browser.desktop";
"application/x-extension-html" = "brave-browser.desktop";
"application/x-extension-shtml" = "brave-browser.desktop";
"application/x-extension-xht" = "brave-browser.desktop";
"application/x-extension-xhtml" = "brave-browser.desktop";
"application/xhtml+xml" = "brave-browser.desktop";
"text/html" = "brave-browser.desktop";
"x-scheme-handler/about" = "brave-browser.desktop";
"x-scheme-handler/chrome" = "brave-browser.desktop";
"x-scheme-handler/http" = "brave-browser.desktop";
"x-scheme-handler/https" = "brave-browser.desktop";
};
};
home.sessionVariables = {
DEFAULT_BROWSER = "${pkgs.brave}/bin/brave";
};
};
}