dotfiles

My PC Dotfiles & Website
commit 072264eb56e04efa283a643ce760f88adc50be0a
parent 124a6b1ae7640d457cdf28367a130dee26805cee
Author: maydayv7 <maydayv7@gmail.com>
Date:   Thu, 16 Feb 2023 14:58:02 +0530

feat(GNOME): Support Gradience

Diffstat:

Mfiles/README.md | 1+
Mfiles/default.nix | 2+-
Afiles/flatpak/overrides | 2++
Mmodules/README.md | 1-
Mmodules/apps/flatpak.nix | 26+++++++++++++++++++++-----
Mmodules/gui/gnome.nix | 21++++++++++++---------
Msite/content/anime.md | 5++++-
7 files changed, 41 insertions(+), 17 deletions(-)

diff --git a/files/README.md b/files/README.md @@ -6,6 +6,7 @@ The `files` directory is used to store all my plain-text program configuration f - [`ascii`](./ascii) - Personal Collection of beautiful Ascii Art - [`discord`](./discord) - `discord` Chat Theming and Plugins - [`firefox`](./firefox) - `firefox` Web Browser Theming +- [`flatpak`](./flatpak) - `flatpak` Package Manager Settings - [`fonts`](./fonts) - Proprietary Fonts and Configuration - [`git`](./git) - Configuration for `git` Version Control - [`gnome`](./gnome) - Configuration Files for GNOME Desktop diff --git a/files/default.nix b/files/default.nix @@ -28,7 +28,7 @@ in rec { firefox.theme = readFile ./firefox/userContent.css; # Flatpak Apps - flatpak.repos = readFile ./flatpak/repos; + flatpak = map.files ./flatpak readFile ""; # Custom Fonts fonts = { diff --git a/files/flatpak/overrides b/files/flatpak/overrides @@ -0,0 +1,2 @@ +[Context] +filesystems=xdg-config/gtk-3.0;xdg-config/gtk-4.0; diff --git a/modules/README.md b/modules/README.md @@ -11,7 +11,6 @@ The `modules` directory contains custom-made pure Flakes-compatible configuratio - `runtimes`: Declaratively configured Flatpak Runtimes - `programs`: Declaratively managed Flatpak Applications - - `name`, `description` - - `exec`: Application Executable command/path - `install`: Application Derivation created using `lib.flatpak` - `git` - - `hosting` - diff --git a/modules/apps/flatpak.nix b/modules/apps/flatpak.nix @@ -87,15 +87,31 @@ in { }; user = { - persist.dirs = [".cache/flatpak" ".local/share/flatpak"]; + persist.dirs = + [".cache/flatpak" ".local/share/flatpak"] + ++ mapAttrsToList (_: app: ".var/app/${app.install.name}") cfg.programs; + home = { - # Repositories - home.file.".local/share/flatpak/repo/config".text = files.flatpak.repos; + # Flatpak Settings + home.file = with files.flatpak; { + ".local/share/flatpak/repo/config".text = repos; + ".local/share/flatpak/overrides/global".text = overrides; + }; # Application Wrapper - home.packages = mapAttrsToList (_: name: name.install) cfg.programs; + home.packages = [ + ( + pkgs.buildEnv + { + name = "FlatPakEnv"; + paths = mapAttrsToList (_: name: name.install) cfg.programs; + } + ) + ]; xdg.desktopEntries = mapAttrs' (app: value: - with value; + with value; let + exec = value.install.name; + in nameValuePair app { inherit name exec; comment = mkIf (value ? description) description; diff --git a/modules/gui/gnome.nix b/modules/gui/gnome.nix @@ -86,16 +86,17 @@ in { }; }; - programs = with runtimes; { - flatseal = { - name = "Flatseal"; - exec = "com.github.tchx84.Flatseal"; - description = "Manage Flatpak Permissions"; + programs = with runtimes; let + default = [freedesktop.platform gnome.platform gnome.theme]; + in rec { + gradience = { + name = "Gradience"; + description = "Customize Libadwaita Applications"; install = { - name = "com.github.tchx84.Flatseal"; - runtime = [freedesktop.platform gnome.platform gnome.theme]; - commit = "7e76ba71421b243359a3bf168a8d5a1010575c7041ff135c163e73d7d50f0a96"; - sha256 = "sha256-Vx4joOwGJM5Jkpo/rmKlJ/4BvcxugvpOCwTMf/p3gMc="; + name = "com.github.GradienceTeam.Gradience"; + runtime = default; + commit = "1ec65403c361229f5233a6e5a0e61a2d1352bf97f1d024a766f15359052d6cee"; + sha256 = "sha256-usaAtliXSAxVqepLltwJU9PW+GIkulR9v/7//I8N53o="; }; }; }; @@ -265,6 +266,8 @@ in { ".config/gnome-boxes" ".config/gnome-builder" ".config/GIMP" + ".config/gtk-3.0" + ".config/gtk-4.0" ".config/pitivi" ".local/share/clipboard" ".local/share/epiphany" diff --git a/site/content/anime.md b/site/content/anime.md @@ -54,6 +54,7 @@ comments = true - Rent-a-Girlfriend <sup>\*</sup> - RikeKoi <sup>#</sup> - Scums Wish <sup>\*</sup> +- Sekai Saikou no Ansatsusha, Isekai Kizoku ni Tensei suru <sup>\*</sup> - Senryu Girl - Spy X Family <sup>\*</sup> <sup>#</sup> - Steins;Gate <sup>#</sup> @@ -68,6 +69,7 @@ comments = true - Uzaki-chan wa Asobitai! <sup>\*</sup> <sup>#</sup> - Violet Evergarden <sup>#</sup> - Vermeil in Gold <sup>\*</sup> +- Weathering With You - When will Ayumu make his Move <sup>\*</sup> - Wotaku ni Koi wa Muzukashii - Yosuga no Sora @@ -81,11 +83,12 @@ comments = true # Manhua -- Solo Leveling +- Solo Leveling <sup>\*</sup> - Something between Us # Manga +- Aishiteru Game wo Owarasetai <sup>\*</sup> - Classroom of the Elite <sup>\*</sup> - Fuufu Ijou, Koibito Miman <sup>\*</sup> - Kaguya-sama: Love is War