fix(ags4): use my fork with overlays
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-03-08 17:22:48 -05:00
parent 9a720b2c11
commit 3a55413cae
5 changed files with 44 additions and 25 deletions

28
flake.lock generated
View file

@ -7,18 +7,22 @@
],
"nixpkgs": [
"nixpkgs"
],
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1738087375,
"narHash": "sha256-GLyNtU9A2VN22jNRHZ2OXuFfTJLh8uEVVt+ftsKUX0c=",
"owner": "Aylur",
"lastModified": 1741472109,
"narHash": "sha256-jQZ1zXK1yRoSz0+yuPVh/7CpYczfhwybzhnoZ7mPJ50=",
"owner": "matt1432",
"repo": "ags",
"rev": "a6a7a0adb17740f4c34a59902701870d46fbb6a4",
"rev": "59e9dbcf32213398ab08d209c483e5d024ed7316",
"type": "github"
},
"original": {
"owner": "Aylur",
"owner": "matt1432",
"ref": "overlay",
"repo": "ags",
"type": "github"
}
@ -60,18 +64,22 @@
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1741396597,
"narHash": "sha256-RQYpdggQLWTynaT1ISqbACo8plSTBNunG8rv8+A82g0=",
"owner": "Aylur",
"lastModified": 1741470966,
"narHash": "sha256-Ix4WQvwuGE/NmwRDiE1wxyqsD9FUani3NiHD2rRioyM=",
"owner": "matt1432",
"repo": "astal",
"rev": "f38433594051ee75957720d1c36de00896a67eb6",
"rev": "ca9df70b99d53926643fb3567e758812b62785a0",
"type": "github"
},
"original": {
"owner": "Aylur",
"owner": "matt1432",
"ref": "overlay",
"repo": "astal",
"type": "github"
}

View file

@ -5,14 +5,20 @@
inputs = {
astal.follows = "astal";
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
owner = "Aylur";
owner = "matt1432";
ref = "overlay";
repo = "ags";
type = "github";
};
astal = {
inputs.nixpkgs.follows = "nixpkgs";
owner = "Aylur";
inputs = {
nixpkgs.follows = "nixpkgs";
systems.follows = "systems";
};
owner = "matt1432";
ref = "overlay";
repo = "astal";
type = "github";
};

View file

@ -195,14 +195,22 @@ let
agsInputs = {
astal = mkInput {
owner = "Aylur";
# owner = "Aylur";
repo = "astal";
# FIXME: https://github.com/Aylur/astal/pull/314
owner = "matt1432";
ref = "overlay";
};
ags = mkInput {
owner = "Aylur";
# owner = "Aylur";
repo = "ags";
# FIXME: https://github.com/Aylur/astal/pull/314
owner = "matt1432";
ref = "overlay";
inputs.astal.follows = "astal";
};

View file

@ -4,7 +4,7 @@ self: {
pkgs,
...
}: let
inherit (self.inputs) virtualkeyboard-adapter;
inherit (self.inputs) ags astal virtualkeyboard-adapter;
inherit (lib) hasPrefix mkIf removePrefix;
# Configs
@ -53,6 +53,8 @@ in {
services.upower.enable = true;
nixpkgs.overlays = [
ags.overlays.default
astal.overlays.default
virtualkeyboard-adapter.overlays.default
# FIXME: https://github.com/NixOS/nixpkgs/pull/377867

View file

@ -5,7 +5,7 @@ self: {
pkgs,
...
}: let
inherit (self.inputs) ags astal gtk-session-lock kompass;
inherit (self.inputs) gtk-session-lock kompass;
inherit (lib) attrValues boolToString filter getExe mkIf optionalAttrs optionals;
@ -30,18 +30,13 @@ in {
config = mkIf cfgDesktop.ags.enable {
# Make these accessible outside these files
programs.ags = {
# TODO: add overlays to upstream flake
package = ags.packages.${pkgs.system}.ags.override {
package = pkgs.ags.override {
extraPackages = cfg.astalLibs;
# FIXME: this makes sure we use my overlayed version for gtk4-session-lock
# try to fix this with overlays
gtk4-layer-shell = pkgs.gtk4-layer-shell;
};
astalLibs = attrValues {
inherit
(astal.packages.${pkgs.system})
(pkgs.astalLibs)
io
astal3
astal4
@ -67,7 +62,7 @@ in {
# libkompass dependencies
inherit
(astal.packages.${pkgs.system})
(pkgs.astalLibs)
cava
river
;