feat: add ags

This commit is contained in:
Jacob Bachmann 2024-04-01 12:29:46 +02:00
parent c47bef985a
commit a51ff38394
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
7 changed files with 78 additions and 24 deletions

View file

@ -1,4 +1,4 @@
{ unstable, hyprland, hy3, waybar, ... }:
{ ... }@inputs:
let
aliases = import ../../modules/aliases.nix;
in
@ -11,15 +11,13 @@ in
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit unstable;
inherit hyprland;
inherit hy3;
inherit waybar;
inherit inputs;
};
home-manager.users.gandalf = { pkgs, ... }: {
imports = [
hyprland.homeManagerModules.default
inputs.hyprland.homeManagerModules.default
inputs.ags.homeManagerModules.default
./modules
];

View file

@ -0,0 +1,16 @@
{ pkgs, ... }: {
programs.ags = {
enable = true;
# null or path, leave as null if you don't want hm to manage the config
# configDir = ../ags;
# additional packages to add to gjs's runtime
extraPackages = with pkgs; [
gtksourceview
webkitgtk
];
};
}

View file

@ -2,6 +2,7 @@
imports = with lib; with nixosConfig.bchmnn;
optionals gui.enable [
./ags
./gtk.nix
./programs
] ++ optionals (gui.enable && elem "sway" gui.flavour) [

View file

@ -1,4 +1,4 @@
{ pkgs, lib, nixosConfig, hy3, config, ... }:
{ pkgs, lib, nixosConfig, config, inputs, ... }:
let
common = (import ../common.nix) { pkgs = pkgs; lib = lib; };
@ -62,7 +62,7 @@ in
wayland.windowManager.hyprland = {
enable = true;
plugins = [ hy3.packages.x86_64-linux.hy3 ];
plugins = [ inputs.hy3.packages.x86_64-linux.hy3 ];
settings = {
env = with lib; with nixosConfig.bchmnn; optionals nvidia.enable [
"CLUTTER_BACKEND,wayland"

View file

@ -1,4 +1,4 @@
{ pkgs, waybar, ... }:
{ pkgs, inputs, ... }:
let
check-battery = pkgs.writeShellScript "check-battery" ''
bat=/sys/class/power_supply/BAT0
@ -687,6 +687,6 @@ in
programs.waybar = {
enable = true;
# TODO replace with (un-)stable channel version once available
package = waybar.packages.x86_64-linux.default;
package = inputs.waybar.packages.x86_64-linux.default;
};
}