feat: add ags
This commit is contained in:
parent
c47bef985a
commit
a51ff38394
7 changed files with 78 additions and 24 deletions
|
|
@ -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
|
||||
];
|
||||
|
||||
|
|
|
|||
16
users/gandalf/modules/gui/ags/default.nix
Normal file
16
users/gandalf/modules/gui/ags/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
imports = with lib; with nixosConfig.bchmnn;
|
||||
optionals gui.enable [
|
||||
./ags
|
||||
./gtk.nix
|
||||
./programs
|
||||
] ++ optionals (gui.enable && elem "sway" gui.flavour) [
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue