feat(ags4): add gtk4-session-lock to ags
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
a1caad618b
commit
8bd0b732e7
3 changed files with 29 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) readFile fromJSON;
|
inherit (builtins) readFile fromJSON;
|
||||||
inherit (self.lib) mkVersion;
|
inherit (self.lib) mkVersion;
|
||||||
inherit (pkgs.lib) elemAt hasAttr length map optionalString toLower;
|
inherit (pkgs.lib) concatStringsSep elemAt hasAttr length map optionalString toLower;
|
||||||
in {
|
in {
|
||||||
buildPlugin = pname: src:
|
buildPlugin = pname: src:
|
||||||
pkgs.vimUtils.buildVimPlugin {
|
pkgs.vimUtils.buildVimPlugin {
|
||||||
|
@ -33,9 +33,10 @@ in {
|
||||||
pname,
|
pname,
|
||||||
}: let
|
}: let
|
||||||
girNameTable = {
|
girNameTable = {
|
||||||
gtk4 = "Gtk-4.0";
|
gtk4 = ["Gtk-4.0"];
|
||||||
gtk-session-lock = "GtkSessionLock-0.1";
|
gtk4-layer-shell = ["Gtk4LayerShell-1.0" "Gtk4SessionLock-1.0"];
|
||||||
libadwaita = "Adw-1";
|
gtk-session-lock = ["GtkSessionLock-0.1"];
|
||||||
|
libadwaita = ["Adw-1"];
|
||||||
};
|
};
|
||||||
|
|
||||||
withGirNames =
|
withGirNames =
|
||||||
|
@ -46,7 +47,7 @@ in {
|
||||||
package.girName
|
package.girName
|
||||||
or (
|
or (
|
||||||
if hasAttr package.pname girNameTable
|
if hasAttr package.pname girNameTable
|
||||||
then girNameTable.${package.pname}
|
then concatStringsSep " " girNameTable.${package.pname}
|
||||||
else throw "girName of ${package.name} couldn't be found"
|
else throw "girName of ${package.name} couldn't be found"
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|
|
@ -52,6 +52,19 @@ in {
|
||||||
security.pam.services.astal-auth = {};
|
security.pam.services.astal-auth = {};
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(final: prev: {
|
||||||
|
gtk4-layer-shell = prev.gtk4-layer-shell.overrideAttrs (o: {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "wmww";
|
||||||
|
repo = "gtk4-layer-shell";
|
||||||
|
rev = "e6c958189fcb78894d86db5beead1526084f8755";
|
||||||
|
hash = "sha256-QwOzgOJuf8K7v/aTDNw+hYRNa8TIel3Pac/cwCMU8zw=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
i18n.inputMethod = mkIf cfgDesktop.isTouchscreen {
|
i18n.inputMethod = mkIf cfgDesktop.isTouchscreen {
|
||||||
enable = true;
|
enable = true;
|
||||||
type = "fcitx5";
|
type = "fcitx5";
|
||||||
|
|
|
@ -32,7 +32,11 @@ in {
|
||||||
programs.ags = {
|
programs.ags = {
|
||||||
package = ags.packages.${pkgs.system}.ags.override {
|
package = ags.packages.${pkgs.system}.ags.override {
|
||||||
extraPackages = cfg.astalLibs;
|
extraPackages = cfg.astalLibs;
|
||||||
|
|
||||||
|
# Make sure we use my overlayed version for gtk4-session-lock
|
||||||
|
gtk4-layer-shell = pkgs.gtk4-layer-shell;
|
||||||
};
|
};
|
||||||
|
|
||||||
astalLibs = attrValues {
|
astalLibs = attrValues {
|
||||||
inherit
|
inherit
|
||||||
(astal.packages.${pkgs.system})
|
(astal.packages.${pkgs.system})
|
||||||
|
@ -66,6 +70,7 @@ in {
|
||||||
inherit
|
inherit
|
||||||
(pkgs)
|
(pkgs)
|
||||||
libadwaita
|
libadwaita
|
||||||
|
gtk4-layer-shell
|
||||||
gtk4 # Needed to build types
|
gtk4 # Needed to build types
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
@ -129,7 +134,11 @@ in {
|
||||||
pname = "ags";
|
pname = "ags";
|
||||||
configPath = "${cfg.configDir}/@girs";
|
configPath = "${cfg.configDir}/@girs";
|
||||||
packages = filter (x:
|
packages = filter (x:
|
||||||
x.pname != "libadwaita" && x.pname != "libkompass")
|
true
|
||||||
|
&& x.pname != "libadwaita"
|
||||||
|
&& x.pname != "libkompass"
|
||||||
|
&& x.pname != "gtk4-layer-shell"
|
||||||
|
&& x.pname != "gtk4-session-lock")
|
||||||
cfg.astalLibs;
|
cfg.astalLibs;
|
||||||
})
|
})
|
||||||
// (buildGirTypes {
|
// (buildGirTypes {
|
||||||
|
|
Loading…
Reference in a new issue