dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 7fb026ee9861e32ed8315582b444011ba6f5ded4 parent 31803d4c17b7d013578bf94f63da417cbb1cad45 Author: maydayv7 <maydayv7@gmail.com> Date: Sun, 27 Nov 2022 17:17:34 +0530 feat: Add `gui.fonts.usrshare` To sync all fonts system-wide + General Updates
Diffstat:
| M | files/gnome/dconf.nix | | | 1 | + |
| M | modules/README.md | | | 4 | +++- |
| M | modules/apps/office.nix | | | 3 | +++ |
| M | modules/apps/vscode.nix | | | 3 | +++ |
| M | modules/gui/fonts.nix | | | 33 | ++++++++++++++++++++++++++++++--- |
| M | modules/hardware/mobile.nix | | | 5 | ++++- |
| M | packages/overlays/discord.nix | | | 4 | ++-- |
| M | shells/go.nix | | | 2 | +- |
| M | site/content/anime.md | | | 41 | +++++++++++++++++++++++++++++++++-------- |
9 files changed, 80 insertions(+), 16 deletions(-)
diff --git a/files/gnome/dconf.nix b/files/gnome/dconf.nix @@ -481,6 +481,7 @@ in { "org/gnome/shell/extensions/clipboard-history" = { disable-down-arrow = true; + paste-on-selection = false; strip-text = true; toggle-menu = ["<Super>v"]; window-width-percentage = 25; diff --git a/modules/README.md b/modules/README.md @@ -19,7 +19,9 @@ The `modules` directory contains custom-made pure Flakes-compatible configuratio - [`gui`](./gui): Module that configures GUI Desktops/Environments and the like - - `desktop`: Choice of GUI Desktop - `"gnome" / "xfce"` - - `fonts.enable`: Enable Fonts Configuration - `true / false` + - `fonts` - + - `enable`: Enable Fonts Configuration - `true / false` + - `usrshare`: Create`/usr/share/fonts` and fill it with the system fonts - `true / false` - [`hardware`](./hardware): Module that configures device and additional hardware - diff --git a/modules/apps/office.nix b/modules/apps/office.nix @@ -30,6 +30,9 @@ in { zoom-us ]; + # Fonts + gui.fonts.usrshare = true; + # Dictionaries environment = { pathsToLink = ["/share/hunspell" "/share/myspell" "/share/hyphen"]; diff --git a/modules/apps/vscode.nix b/modules/apps/vscode.nix @@ -25,7 +25,10 @@ in { text = ["code.desktop"]; }; + #!# Run the following command on first boot: + #!# systemctl --user enable auto-fix-vscode-server.service services.vscode-server.enable = true; + programs.vscode = { enable = true; package = pkgs.vscode; diff --git a/modules/gui/fonts.nix b/modules/gui/fonts.nix @@ -4,11 +4,17 @@ pkgs, files, ... -}: { - options.gui.fonts.enable = lib.mkEnableOption "Enable Fonts Configuration"; +}: let + inherit (lib) mkIf mkEnableOption; + inherit (config.gui.fonts) enable usrshare; +in { + options.gui.fonts = { + enable = mkEnableOption "Enable Fonts Configuration"; + usrshare = mkEnableOption "Create`/usr/share/fonts` and fill it with the system fonts"; + }; ## Font Configuration ## - config = lib.mkIf config.gui.fonts.enable { + config = mkIf enable { fonts = { enableDefaultFonts = true; fontDir.enable = true; @@ -57,5 +63,26 @@ # Custom Fonts custom.fonts ]; + + ## Font Compatibility + systemd.tmpfiles.rules = with pkgs; let + x11Fonts = runCommand "X11-fonts" {preferLocalBuild = true;} '' + mkdir -p "$out" + font_regexp='.*\.\(ttf\|ttc\|otf\|pcf\|pfa\|pfb\|bdf\)\(\.gz\)?' + find ${toString config.fonts.fonts} -regex "$font_regexp" \ + -exec cp '{}' "$out" \; + cd "$out" + ${gzip}/bin/gunzip -f *.gz + ${xorg.mkfontscale}/bin/mkfontscale + ${xorg.mkfontdir}/bin/mkfontdir + cat $(find ${xorg.fontalias}/ -name fonts.alias) >fonts.alias + ''; + in + if usrshare + then ["L+ /usr/share/fonts - - - - ${x11Fonts}"] + else [ + "r /usr/share/fonts - - - - -" + "r /usr/share - - - - -" + ]; }; } diff --git a/modules/hardware/mobile.nix b/modules/hardware/mobile.nix @@ -15,7 +15,10 @@ in { ## iOS Compatibilty Configuration ## # File Transfer - services.usbmuxd.enable = true; environment.systemPackages = [pkgs.libimobiledevice]; + + #!# Run the following command to start service: + #!# sudo systemctl restart usbmuxd.service + services.usbmuxd.enable = true; }; } diff --git a/packages/overlays/discord.nix b/packages/overlays/discord.nix @@ -1,11 +1,11 @@ final: prev: { # Update Discord to Latest Version discord = prev.discord.overrideAttrs (_: rec { - version = "0.0.18"; + version = "0.0.21"; src = prev.fetchzip { url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz"; - sha256 = "sha256-FXQuNbCBsJ61UvR98CycPkceRhYiP6Jyw90DFjZVEq4="; + sha256 = "sha256-f39g9rnvvOuquPSGdJkqSoc12VGHzaVjF8Z6kATBid8="; }; }); } diff --git a/shells/go.nix b/shells/go.nix @@ -1,5 +1,5 @@ pkgs: { name = "Go"; shellHook = ''echo "## Go Development Shell ##"''; - packages = with pkgs; [go delve go-outline goimports godef golint gopls]; + packages = with pkgs; [go delve go-outline godef golint gopls gotools]; } diff --git a/site/content/anime.md b/site/content/anime.md @@ -12,15 +12,19 @@ comments = true - 3D Kanojo - 86 <sup>\*</sup> <sup>#</sup> - A Silent Voice +- Aharen-san wa Hakarenai - Akudama Drive - Ao can't Study - Bunny Girl Senpai - Chuunibyou demo Koi ga Shitai! <sup>#</sup> - Clannad <sup>#</sup> - Classroom of the Elite <sup>\*</sup> +- Daily Life of an Immortal King <sup>\*</sup> <sup>#</sup> - Date a Live <sup>\*</sup> <sup>#</sup> - Death Note +- Demon Slayer - Domestic Girlfriend +- Erased - Fruits Basket <sup>#</sup> - Gekkan Shoujo Nozaki-kun - Golden Time @@ -28,43 +32,64 @@ comments = true - I Can't Understand What My Husband Is Saying - Ijinaraide, Nagatoro-san <sup>\*</sup> - Kaguya-sama: Love is War <sup>#</sup> +- Kakkou no Iinazuke +- Kawaii dake ja nai Shikimori-san - Kimi ni Todoke +- Kimi no Na Wa +- Koiseka - Kokoro Connect - Komi Can't Communicate <sup>\*</sup> <sup>#</sup> - Konosuba <sup>#</sup> +- Lycoris Recoil <sup>\*</sup> - My Dress Up Darling <sup>\*</sup> - My Senpai is Annoying - Nisekoi +- No Life No Game <sup>#</sup> - Oregairu <sup>#</sup> +- Plastic Memories - Prison School - Rent-a-Girlfriend <sup>\*</sup> - RikeKoi <sup>#</sup> - Scums Wish <sup>\*</sup> +- Spy X Family <sup>\*</sup> <sup>#</sup> - Steins;Gate <sup>#</sup> - The Pet Girl of Sakurasou <sup>\*</sup> - The Quintessential Quintuplets <sup>#</sup> +- Tomodachi Game <sup>\*</sup> - Tonikawa: To the Moon! <sup>\*</sup> - ToraDora! - Tsurezure Children -- Uzaki-chan wa Asobitai! <sup>\*</sup> +- Uzaki-chan wa Asobitai! <sup>\*</sup> <sup>#</sup> - Violet Evergarden +- Vermeil in Gold +- When will Ayumu make his Move - Wotaku ni Koi wa Muzukashii +- Yosuga no Sora - Your Lie in April +# Manhua + +- Solo Leveling +- Something between Us + +# Manga + +- Fuufu Ijou, Koibito Miman +- Kaguya-sama: Love is War +- Kawaii dake ja nai Shikimori-san +- The Beginning after the End +- Tonikawa: To the Moon! + # Ongoing -- [x] Aharen-san wa Hakarenai -- [x] Kawaii dake ja nai Shikimori-san -- [x] Spy X Family -- [ ] Kakkou no Iinazuke -- [ ] Koiseka +- [x] Chainsaw Man +- [ ] Fuufu Ijou, Koibito Miman # Wishlist -- [ ] Gosick - [x] Hyouka - [ ] One Outs -- [ ] Skilled Teaser Takagi-san <sup>#</sup> +- [ ] Jujutsu Kaisen - [ ] A Place Further than the Universe ---