Add media

This commit is contained in:
muon 2024-06-13 23:15:00 +00:00
parent 0828145d24
commit fb5c2b24e5
8 changed files with 54 additions and 6 deletions

View file

@ -1,9 +1,9 @@
{ pkgs, lib, config, osConfig, ... }: {
imports = [
./xdg.nix
./terminal
./desktop
./xdg.nix
];
# Let Home Manager install and manage itself

View file

@ -8,6 +8,7 @@ in {
./social.nix
./development.nix
./productivity.nix
./media.nix
];
mods.hyprland.enable = lib.mkIf cfg.wayland.enable true;

View file

@ -19,7 +19,7 @@
};
};
"tztime local".settings = {
format = "🗓 %Y-%m-%d %H:%M:%S ";
format = "🗓 %Y-%m-%d %a %H:%M:%S ";
};
ipv6.enable = false;
"wireless _first_".enable = false;

View file

@ -0,0 +1,12 @@
{ pkgs, lib, config, ... }: {
options.mods.desktop.media.enable =
lib.mkEnableOption "enables entertainment programs";
config = lib.mkIf config.mods.desktop.media.enable {
# home.packages = with pkgs; [
# # Movies/TV
# mpv
# ];
programs.mpv.enable = true;
};
}

View file

@ -3,7 +3,13 @@
lib.mkEnableOption "enables gui productivity tools";
config = lib.mkIf config.mods.desktop.productivity.enable {
# home.packages = with pkgs; [];
home.packages = with pkgs; [
# ISO downloader
qbittorrent
];
home.sessionVariables.BROWSER = "librewolf";
programs.zsh.sessionVariables.BROWSER = "librewolf";
programs.librewolf = {
enable = true;

View file

@ -1,10 +1,33 @@
{ pkgs, lib, config, ... }: {
options.mods.xdg.enable =
lib.mkEnableOption "enables xdg settings";
config = lib.mkIf config.mods.xdg.enable {
xdg = {
xdg = let
browser = ["librewolf.desktop"];
associations = {
"text/html" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/ftp" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/unknown" = browser;
"application/x-extension-htm" = browser;
"application/x-extension-html" = browser;
"application/x-extension-shtml" = browser;
"application/xhtml+xml" = browser;
"application/x-extension-xhtml" = browser;
"application/x-extension-xht" = browser;
"audio/*" = ["mpv.desktop"];
"video/*" = ["mpv.dekstop"];
"image/*" = ["imv.desktop"];
"application/json" = browser;
# "application/pdf" = ["org.pwmt.zathura.desktop.desktop"];
"x-scheme-handler/tg" = ["kotatogram-desktop.desktop"];
"x-scheme-handler/discord" = ["vesktop.desktop"];
};
in {
enable = true;
userDirs = {
enable = true;
@ -17,6 +40,9 @@
publicShare = "$HOME/misc/public";
templates = "$HOME/misc/templates";
};
mimeApps.enable = true;
mimeApps.associations.added = associations;
mimeApps.defaultApplications = associations;
};
};
}

View file

@ -30,6 +30,8 @@ in {
package = pkgs.noto-fonts-emoji;
name = "OpenMoji Color";
};
serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace;
};
fonts.packages = with pkgs; [