Compare commits

...

6 commits

Author SHA1 Message Date
70e063d8df
npins: update sources
25.11 is out of beta
2025-12-01 11:41:18 +08:00
b02ab4df08
packages/ruler: update 2025-11-30 12:29:05 +08:00
90def3c705
vanadium: update wallpaper 2025-11-30 09:16:31 +08:00
7f233194e2
home/vlc: define mimetypes 2025-11-30 08:54:44 +08:00
a4c43068f4
npins: update zen-browser 2025-11-29 22:58:14 +08:00
018a8b66c7
vanadium: -last-resort
https://news.ycombinator.com/item?id=24726008
> Not all systems will work with this, as the idea of font fallback is
> not universal. The built-in terminal emulators in the FreeBSD kernel and
> in Linux only load one font at any given time. (I've written a
> user-space terminal emulator with the goal of providing a user-space
> workalike for those terminal emulators, which does have font fallback
> mechanisms, but kernel built-in terminal emulators forego the ability to
> have multiple fonts and a lot of other things for obvious reasons.)
2025-11-29 20:42:44 +08:00
5 changed files with 165 additions and 24 deletions

View file

@ -169,6 +169,7 @@ in
../homeModules/common/tmux ../homeModules/common/tmux
../homeModules/common/vim ../homeModules/common/vim
../homeModules/common/wired ../homeModules/common/wired
../homeModules/common/vlc.nix
../homeModules/common/atuin.nix ../homeModules/common/atuin.nix
../homeModules/common/direnv.nix ../homeModules/common/direnv.nix
../homeModules/common/feh.nix ../homeModules/common/feh.nix

View file

@ -1,6 +1,5 @@
{ {
pkgs, pkgs,
lib,
... ...
}: }:
{ {
@ -9,7 +8,7 @@
# #
fonts.fontconfig = { fonts.fontconfig = {
enable = true; enable = true;
defaultFonts = lib.mapAttrsRecursive (_: v: v ++ [ "Last Resort" ]) { defaultFonts = {
sansSerif = [ sansSerif = [
"Ubuntu" "Ubuntu"
"Noto Sans CJK TC" "Noto Sans CJK TC"
@ -28,12 +27,11 @@
pkgs.noto-fonts-emoji-blob-bin pkgs.noto-fonts-emoji-blob-bin
pkgs.ubuntu-classic pkgs.ubuntu-classic
pkgs.iosevka pkgs.iosevka
pkgs.last-resort
]; ];
home.file = { home.file = {
".xscreensaver".source = "${./xscreensaver/.xscreensaver}"; ".xscreensaver".source = "${./xscreensaver/.xscreensaver}";
".wallpaper".source = "${pkgs.wallpapers.packages.knights_of_guinevere.fixing_gwen}"; ".wallpaper".source = "${pkgs.wallpapers.packages.serial_experiments_lain.lain_red_bg}";
}; };
xdg.configFile = { xdg.configFile = {
"xmonad".source = "${./xmonad}"; "xmonad".source = "${./xmonad}";

View file

@ -0,0 +1,142 @@
{ lib, config, ... }:
let
# Kinda slow but there's no option defined and I'm lazy
vlcInstalled = lib.any (x: lib.getName x == "vlc") config.home.packages;
in
{
xdg = lib.mkIf vlcInstalled {
enable = true;
mimeApps =
let
associations = lib.genAttrs vlcTypes (_: "vlc.desktop");
# credit: https://github.com/tiredofit/home
vlcTypes = [
"application/mxf"
"application/ogg"
"application/sdp"
"application/smil"
"application/streamingmedia"
"application/vnd.apple.mpegurl"
"application/vnd.ms-asf"
"application/vnd.rn-realmedia"
"application/vnd.rn-realmedia-vbr"
"application/x-cue"
"application/x-extension-m4a"
"application/x-extension-mp4"
"application/x-matroska"
"application/x-mpegurl"
"application/x-ogg"
"application/x-ogm"
"application/x-ogm-audio"
"application/x-ogm-video"
"application/x-shorten"
"application/x-smil"
"application/x-streamingmedia"
"audio/3gpp"
"audio/3gpp2"
"audio/AMR"
"audio/aac"
"audio/ac3"
"audio/aiff"
"audio/amr-wb"
"audio/dv"
"audio/eac3"
"audio/flac"
"audio/m3u"
"audio/m4a"
"audio/mp1"
"audio/mp2"
"audio/mp3"
"audio/mp4"
"audio/mpeg"
"audio/mpeg2"
"audio/mpeg3"
"audio/mpegurl"
"audio/mpg"
"audio/musepack"
"audio/ogg"
"audio/opus"
"audio/rn-mpeg"
"audio/scpls"
"audio/vnd.dolby.heaac.1"
"audio/vnd.dolby.heaac.2"
"audio/vnd.dts"
"audio/vnd.dts.hd"
"audio/vnd.rn-realaudio"
"audio/vorbis"
"audio/wav"
"audio/webm"
"audio/x-aac"
"audio/x-adpcm"
"audio/x-aiff"
"audio/x-ape"
"audio/x-m4a"
"audio/x-matroska"
"audio/x-mp1"
"audio/x-mp2"
"audio/x-mp3"
"audio/x-mpegurl"
"audio/x-mpg"
"audio/x-ms-asf"
"audio/x-ms-wma"
"audio/x-musepack"
"audio/x-pls"
"audio/x-pn-au"
"audio/x-pn-realaudio"
"audio/x-pn-wav"
"audio/x-pn-windows-pcm"
"audio/x-realaudio"
"audio/x-scpls"
"audio/x-shorten"
"audio/x-tta"
"audio/x-vorbis"
"audio/x-vorbis+ogg"
"audio/x-wav"
"audio/x-wavpack"
"video/3gp"
"video/3gpp"
"video/3gpp2"
"video/avi"
"video/divx"
"video/dv"
"video/fli"
"video/flv"
"video/mkv"
"video/mp2t"
"video/mp4"
"video/mp4v-es"
"video/mpeg"
"video/msvideo"
"video/ogg"
"video/quicktime"
"video/vnd.divx"
"video/vnd.mpegurl"
"video/vnd.rn-realvideo"
"video/webm"
"video/x-avi"
"video/x-flc"
"video/x-flic"
"video/x-flv"
"video/x-m4v"
"video/x-matroska"
"video/x-mpeg2"
"video/x-mpeg3"
"video/x-ms-afs"
"video/x-ms-asf"
"video/x-ms-wmv"
"video/x-ms-wmx"
"video/x-ms-wvxvideo"
"video/x-msvideo"
"video/x-ogm"
"video/x-ogm+ogg"
"video/x-theora"
"video/x-theora+ogg"
];
in
{
enable = true;
associations.added = associations;
defaultApplications = associations;
};
};
}

View file

@ -11,8 +11,8 @@ let
domain = "git.confusedcompiler.org"; domain = "git.confusedcompiler.org";
owner = "leana8959"; owner = "leana8959";
repo = "ruler"; repo = "ruler";
rev = "6cdadb92b8cff6d57bc1d15061923bfbf40ede71"; rev = "0b4e3ea1e477d4a817da8730fab7fb22ba25fa61";
hash = "sha256-TwUXpgdmGBUgyxyN/nRReu3VniYdLkAVp1Q72r9ouBI="; hash = "sha256-CoGJ3uOVEd6K+zFeBkZKVYVm5697Qu9aLYzmlfqGej0=";
}) { }; }) { };
cabalOverrides = o: { cabalOverrides = o: {

View file

@ -114,9 +114,9 @@
}, },
"branch": "release-25.11", "branch": "release-25.11",
"submodules": false, "submodules": false,
"revision": "2217780c39169a9c77915200137550c2ef0fa974", "revision": "3fdd076e08049a9c7a83149b270440d9787d2df5",
"url": "https://github.com/nix-community/home-manager/archive/2217780c39169a9c77915200137550c2ef0fa974.tar.gz", "url": "https://github.com/nix-community/home-manager/archive/3fdd076e08049a9c7a83149b270440d9787d2df5.tar.gz",
"hash": "1p4j622rkpymnjggmqxwsngss4fpw21pf6khdzdfbiann5lzc5bn" "hash": "07k47xnkzha7ilcyak57wrh2ngka2j4f0d95zyyxn8jz8195q2q6"
}, },
"infuse": { "infuse": {
"type": "GitRelease", "type": "GitRelease",
@ -187,9 +187,9 @@
}, },
"branch": "master", "branch": "master",
"submodules": false, "submodules": false,
"revision": "899dc449bc6428b9ee6b3b8f771ca2b0ef945ab9", "revision": "9154f4569b6cdfd3c595851a6ba51bfaa472d9f3",
"url": "https://github.com/NixOS/nixos-hardware/archive/899dc449bc6428b9ee6b3b8f771ca2b0ef945ab9.tar.gz", "url": "https://github.com/NixOS/nixos-hardware/archive/9154f4569b6cdfd3c595851a6ba51bfaa472d9f3.tar.gz",
"hash": "1dbf11zjspg68wiryp2y24w587izg954nbv517q57mpl8i8sfr85" "hash": "1vmlcda7864ya2byxivnpzkqf41cavj9ms5hjh6i0h8anls56lk6"
}, },
"nixpkgs": { "nixpkgs": {
"type": "Git", "type": "Git",
@ -200,9 +200,9 @@
}, },
"branch": "nixos-25.11-small", "branch": "nixos-25.11-small",
"submodules": false, "submodules": false,
"revision": "a320ce8e6e2cc6b4397eef214d202a50a4583829", "revision": "e9f8538978f954bed00f6535b764e7932dbc3eea",
"url": "https://github.com/nixos/nixpkgs/archive/a320ce8e6e2cc6b4397eef214d202a50a4583829.tar.gz", "url": "https://github.com/nixos/nixpkgs/archive/e9f8538978f954bed00f6535b764e7932dbc3eea.tar.gz",
"hash": "1q779dz718s7k00zmfzksl6j8alpixp4rdazsvsfk7rn7g05sdzb" "hash": "07wdninn693v06jz537pn1d257idi7p3dqh1mvygsb2zf6y4hypm"
}, },
"nur": { "nur": {
"type": "Git", "type": "Git",
@ -213,9 +213,9 @@
}, },
"branch": "main", "branch": "main",
"submodules": false, "submodules": false,
"revision": "263f45afd86d9c3cb8f61fb7af44c465d4493b88", "revision": "cdeb308c4faaa430f951e81db2360cebb54feb58",
"url": "https://github.com/nix-community/nur/archive/263f45afd86d9c3cb8f61fb7af44c465d4493b88.tar.gz", "url": "https://github.com/nix-community/nur/archive/cdeb308c4faaa430f951e81db2360cebb54feb58.tar.gz",
"hash": "0lv1gkqqb5bkkmwvgl8kaipqxg6ddqw09wb8jcc0wql95vbyzyca" "hash": "1jjsgmg3maqkrncwc3fn7iqcsi88fjvfzkpchcc1iwih65kr91il"
}, },
"pin-emacs28": { "pin-emacs28": {
"type": "Git", "type": "Git",
@ -352,9 +352,9 @@
}, },
"branch": "mistress", "branch": "mistress",
"submodules": false, "submodules": false,
"revision": "0eec270ac5fcbc939f475c7954504cfcbde8f7d9", "revision": "377fc66de1961687bf81bd0182c5d385c1dfadb2",
"url": "https://git.confusedcompiler.org/leana8959/wallpapers/archive/0eec270ac5fcbc939f475c7954504cfcbde8f7d9.tar.gz", "url": "https://git.confusedcompiler.org/leana8959/wallpapers/archive/377fc66de1961687bf81bd0182c5d385c1dfadb2.tar.gz",
"hash": "1y5r6gm7b781s70x89ya24sqj9rfza83as0749hkd77b8zncvkkl" "hash": "1j6mnb1n0wjlm69dfngi4jjrr76zf3kfmqm0wkbgjvm93cbg1p7j"
}, },
"wired-notify": { "wired-notify": {
"type": "Git", "type": "Git",
@ -378,9 +378,9 @@
}, },
"branch": "main", "branch": "main",
"submodules": false, "submodules": false,
"revision": "ef951ed2d976bcd1f57a09f358fdda9fa9425018", "revision": "fb066e133e614c024a470608ff56585c4f707b44",
"url": "https://github.com/0xc000022070/zen-browser-flake/archive/ef951ed2d976bcd1f57a09f358fdda9fa9425018.tar.gz", "url": "https://github.com/0xc000022070/zen-browser-flake/archive/fb066e133e614c024a470608ff56585c4f707b44.tar.gz",
"hash": "1s85cxiwhzwqgbazcgv12xqdlk1nkfynv23r9zj8gip4j6pznr4z" "hash": "04icaki7ygwrq7h4m4bkh5k08rpdr4qagz0z1mbbk4927ljqn30x"
} }
}, },
"version": 5 "version": 5