From 53cbebb9dd07fef1ea9cd87ff25341860d96f65f Mon Sep 17 00:00:00 2001 From: cnst Date: Sun, 14 Jul 2024 16:12:48 +0200 Subject: [PATCH] trying ags --- flake.lock | 18 +++++++++--------- flake.nix | 1 + home/core/gui/ags/default.nix | 22 ++++++++++++++++++++++ home/extra/discord/default.nix | 13 ++++++++++++- home/users/cnst/imports.nix | 1 + 5 files changed, 45 insertions(+), 10 deletions(-) create mode 100644 home/core/gui/ags/default.nix diff --git a/flake.lock b/flake.lock index d4c36546..5575fdb3 100644 --- a/flake.lock +++ b/flake.lock @@ -48,11 +48,11 @@ ] }, "locked": { - "lastModified": 1720919273, - "narHash": "sha256-UC9QO6jgHehdPGAu9xx+WRT0p8xCYA26jl1On7E1W88=", + "lastModified": 1720960628, + "narHash": "sha256-PeV34jDie3qCng/NFtYKWyiS33emKA+3pCXCqdmP5ww=", "owner": "nix-community", "repo": "flake-firefox-nightly", - "rev": "176e47a066f8f0c502d25872f81e16ff49dcfd31", + "rev": "6e805cba7c6fa8cf1fea868ac422ffbb31c080f7", "type": "github" }, "original": { @@ -257,11 +257,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1720354218, - "narHash": "sha256-cyl6Cxqo4bNmwLXi8/qIc3U1vRJ9VyIBUL/j3is4x58=", + "lastModified": 1720958877, + "narHash": "sha256-ggCV3etL7W1X9kxhLPZP35+BBh1LgQybene+L/aeQaQ=", "owner": "nix-community", "repo": "lib-aggregate", - "rev": "5865544e7c012ecaa952f5c6cf5878c1676b52b4", + "rev": "6e56a6fd1d993eb02c991d449819f01340888e02", "type": "github" }, "original": { @@ -304,11 +304,11 @@ }, "nixpkgs-lib": { "locked": { - "lastModified": 1720313561, - "narHash": "sha256-arht1SYnZ5hJl1COIuqbdRi8ibpnNtc9zUZLmU9xqTs=", + "lastModified": 1720918433, + "narHash": "sha256-z3Lp++7k4l/3K4A+7v3cuHBNcm/vntGXgxElLH+INa4=", "owner": "nix-community", "repo": "nixpkgs.lib", - "rev": "770d42db0b8203bdd84ddbd707a49fe0a3638863", + "rev": "3b0b1763c0f0931deaa2980b7b146f8ae7a6a952", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index d3f8890e..88c0b53c 100644 --- a/flake.nix +++ b/flake.nix @@ -35,6 +35,7 @@ # url = "github:nix-community/fenix"; # inputs.nixpkgs.follows = "nixpkgs"; #}; + ags.url = "github:Aylur/ags"; }; outputs = { self, diff --git a/home/core/gui/ags/default.nix b/home/core/gui/ags/default.nix new file mode 100644 index 00000000..e1a7a0dc --- /dev/null +++ b/home/core/gui/ags/default.nix @@ -0,0 +1,22 @@ +{ + inputs, + pkgs, + ... +}: { + # add the home manager module + imports = [inputs.ags.homeManagerModules.default]; + + programs.ags = { + enable = true; + + # null or path, leave as null if you don't want hm to manage the config + configDir = ./.; + + # additional packages to add to gjs's runtime + extraPackages = with pkgs; [ + gtksourceview + webkitgtk + accountsservice + ]; + }; +} diff --git a/home/extra/discord/default.nix b/home/extra/discord/default.nix index c6e908e4..ee39bcc0 100644 --- a/home/extra/discord/default.nix +++ b/home/extra/discord/default.nix @@ -6,6 +6,15 @@ css */ '' + /** + * @name Material Gruvbox + * @. + * @author Costeer + * @version 1.5.0 + * @website https://github.com/Costeer + * @source https://github.com/Costeer/Gruvbox-Material-Themes + */ + @import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/DiscordRecolor/DiscordRecolor.css); :root { @@ -19,7 +28,9 @@ --textdark: 146, 131, 116; --textdarker: 146, 131, 116; --textdarkest: 80, 80, 80; - --font: Input Sans Narrow 10; + --font: Input Sans Narrow; + --main-font: Input Sans Narrow; + --code-font: Input Mono Compressed; --backgroundaccent: 80, 73, 69; --backgroundprimary: 60, 56, 54; --backgroundsecondary: 50, 48, 47; diff --git a/home/users/cnst/imports.nix b/home/users/cnst/imports.nix index f7dbf6ad..15bb9d75 100644 --- a/home/users/cnst/imports.nix +++ b/home/users/cnst/imports.nix @@ -4,6 +4,7 @@ ../../core/gui/gtk ../../core/gui/mako ../../core/gui/waybar + ../../core/gui/ags ../../core/gui/xdg # core.tui ../../core/tui/git/cnst.nix