Deduplicate mime type settings + change font
This commit is contained in:
@ -327,7 +327,7 @@ in {
|
|||||||
|
|
||||||
"org/gnome/TextEditor" = {
|
"org/gnome/TextEditor" = {
|
||||||
auto-indent = true;
|
auto-indent = true;
|
||||||
custom-font = "Victor Mono Semi-Bold 11";
|
custom-font = "JetBrainsMono Nerd Font Mono 11";
|
||||||
highlight-current-line = true;
|
highlight-current-line = true;
|
||||||
indent-style = "space";
|
indent-style = "space";
|
||||||
show-gird = false;
|
show-gird = false;
|
||||||
|
@ -18,8 +18,8 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
font = {
|
font = {
|
||||||
package = pkgs.victor-mono;
|
# package = pkgs.victor-mono;
|
||||||
name = "Victor Mono SemiBold";
|
name = "JetBrainsMono Nerd Font Mono";
|
||||||
size = 12;
|
size = 12;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@ in {
|
|||||||
set undofile
|
set undofile
|
||||||
set undodir=~/.vim/undo
|
set undodir=~/.vim/undo
|
||||||
set hidden
|
set hidden
|
||||||
set printfont=Victor\ Mono\ SemiBold:h10
|
set printfont=JetBrainsMono\ Nerd\ Font\ Mono:h10
|
||||||
set guifont=Victor\ Mono\ SemiBold:h12
|
set guifont=JetBrainsMono\ Nerd\ Font\ Mono:h12
|
||||||
let printencoding='utf-8'
|
let printencoding='utf-8'
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
'';
|
'';
|
||||||
|
@ -316,50 +316,16 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
# See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
||||||
xdg.mime = {
|
xdg.mime = rec {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
removedAssociations = {
|
removedAssociations = {
|
||||||
"application/pdf" = "chromium-browser.desktop";
|
"application/pdf" = "chromium-browser.desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: This stuff depends on the used desktop...should I use a complementary system module for each DE?
|
|
||||||
addedAssociations = {
|
|
||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
|
||||||
"application/x-sh" = "Helix.desktop";
|
|
||||||
"application/xhtml+xml" = "Helix.desktop";
|
|
||||||
"application/xml" = "Helix.desktop";
|
|
||||||
|
|
||||||
"image/bmp" = "imv.desktop";
|
|
||||||
"image/jpeg" = "imv.desktop";
|
|
||||||
"image/png" = "imv.desktop";
|
|
||||||
"image/svg+xml" = "imv.desktop";
|
|
||||||
"image/tiff" = "imv.desktop";
|
|
||||||
"image/webp" = "imv.desktop";
|
|
||||||
|
|
||||||
"video/mp2t" = "mpv.desktop";
|
|
||||||
"video/mp4" = "mpv.desktop";
|
|
||||||
"video/mpeg" = "mpv.desktop";
|
|
||||||
"video/ogg" = "mpv.desktop";
|
|
||||||
"video/webm" = "mpv.desktop";
|
|
||||||
"video/x-msvideo" = "mpv.desktop";
|
|
||||||
"video/x-ms-wmv" = "mpv.desktop";
|
|
||||||
|
|
||||||
"text/css" = "Helix.desktop";
|
|
||||||
"text/csv" = "Helix.desktop";
|
|
||||||
"text/javascript" = "Helix.desktop";
|
|
||||||
"text/json" = "Helix.desktop";
|
|
||||||
"text/plain" = "Helix.desktop";
|
|
||||||
"text/xml" = "Helix.desktop";
|
|
||||||
|
|
||||||
# "audio/mpeg" = "moc.desktop";
|
|
||||||
# "audio/ogg" = "moc.desktop";
|
|
||||||
# "audio/opus" = "moc.desktop";
|
|
||||||
# "audio/wav" = "moc.desktop";
|
|
||||||
# "audio/webm" = "moc.desktop";
|
|
||||||
};
|
|
||||||
|
|
||||||
defaultApplications = {
|
defaultApplications = {
|
||||||
|
"inode/directory" = "nnn.desktop";
|
||||||
|
|
||||||
"application/pdf" = "org.pwmt.zathura.desktop";
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
||||||
"application/x-sh" = "Helix.desktop";
|
"application/x-sh" = "Helix.desktop";
|
||||||
"application/xhtml+xml" = "Helix.desktop";
|
"application/xhtml+xml" = "Helix.desktop";
|
||||||
@ -376,7 +342,9 @@
|
|||||||
"video/mp4" = "mpv.desktop";
|
"video/mp4" = "mpv.desktop";
|
||||||
"video/mpeg" = "mpv.desktop";
|
"video/mpeg" = "mpv.desktop";
|
||||||
"video/ogg" = "mpv.desktop";
|
"video/ogg" = "mpv.desktop";
|
||||||
|
"video/quicktime" = "mpv.desktop";
|
||||||
"video/webm" = "mpv.desktop";
|
"video/webm" = "mpv.desktop";
|
||||||
|
"video/x-matroska" = "mpv.desktop";
|
||||||
"video/x-msvideo" = "mpv.desktop";
|
"video/x-msvideo" = "mpv.desktop";
|
||||||
"video/x-ms-wmv" = "mpv.desktop";
|
"video/x-ms-wmv" = "mpv.desktop";
|
||||||
|
|
||||||
@ -393,6 +361,8 @@
|
|||||||
# "audio/wav" = "moc.desktop";
|
# "audio/wav" = "moc.desktop";
|
||||||
# "audio/webm" = "moc.desktop";
|
# "audio/webm" = "moc.desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
addedAssociations = defaultApplications;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
@ -416,49 +386,28 @@
|
|||||||
# Font packages go here
|
# Font packages go here
|
||||||
# NOTE: Don't do this with HomeManager as I need the fonts in the fontdir for flatpak apps
|
# NOTE: Don't do this with HomeManager as I need the fonts in the fontdir for flatpak apps
|
||||||
fonts = with pkgs; [
|
fonts = with pkgs; [
|
||||||
# Mono fonts
|
# Monospace fonts
|
||||||
victor-mono
|
(nerdfonts.override {fonts = [
|
||||||
jetbrains-mono
|
"JetBrainsMono"
|
||||||
source-code-pro
|
];})
|
||||||
(pkgs.nerdfonts.override {fonts = ["VictorMono"];})
|
|
||||||
font-awesome
|
|
||||||
|
|
||||||
# Chinese fonts
|
|
||||||
source-han-mono
|
|
||||||
source-han-sans
|
|
||||||
source-han-serif
|
|
||||||
noto-fonts-cjk-sans
|
|
||||||
noto-fonts-cjk-serif
|
|
||||||
wqy_zenhei
|
|
||||||
wqy_microhei
|
|
||||||
|
|
||||||
# Sans/Serif fonts
|
# Sans/Serif fonts
|
||||||
cantarell-fonts
|
|
||||||
source-sans-pro
|
|
||||||
source-serif-pro
|
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-extra
|
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
|
noto-fonts-cjk-sans
|
||||||
# Emacs fonts
|
lxgw-wenkai
|
||||||
emacs-all-the-icons-fonts
|
|
||||||
material-design-icons
|
|
||||||
|
|
||||||
# Some fonts from an old emacs config, not longer used
|
|
||||||
# etBook
|
|
||||||
# overpass
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: Check if this works
|
# TODO: Check if this works
|
||||||
# TODO: Conflicts with kde?
|
# TODO: Conflicts with kde?
|
||||||
# fontconfig = {
|
fontconfig = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# defaultFonts = {
|
defaultFonts = {
|
||||||
# serif = [ "Source Han Serif Regular" ];
|
serif = [ "Noto Serif CJK SC" ];
|
||||||
# sansSerif = [ "Source Han Sans Regular" ];
|
sansSerif = [ "Noto Sans CJK SC" ];
|
||||||
# monospace = [ "Source Han Mono Regular" ];
|
monospace = [ "JetBrainsMono Nerd Font Mono" ];
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
Reference in New Issue
Block a user