feat(ags): add gtk-session-lock dep
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
a676406150
commit
27ff75260d
6 changed files with 37 additions and 2 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -2,6 +2,7 @@
|
|||
ags,
|
||||
astal,
|
||||
config,
|
||||
gtk-session-lock,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
|
@ -9,6 +10,7 @@
|
|||
|
||||
flakeDir = config.environment.variables.FLAKE;
|
||||
isTouchscreen = config.hardware.sensor.iio.enable;
|
||||
gtk-lock = gtk-session-lock.packages.${pkgs.system}.default;
|
||||
in {
|
||||
# Enable pam for ags and astal
|
||||
security.pam.services.ags = {};
|
||||
|
@ -55,10 +57,16 @@ in {
|
|||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
libadwaita
|
||||
gtk-lock
|
||||
];
|
||||
};
|
||||
|
||||
programs.ags.enable = true;
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
extraPackages = [
|
||||
gtk-lock
|
||||
];
|
||||
};
|
||||
|
||||
home = {
|
||||
file =
|
||||
|
@ -70,7 +78,11 @@ in {
|
|||
|
||||
# AGS symlinks. ${./config}, types and config.js
|
||||
".config/ags".source = symlink "${flakeDir}/modules/ags/config";
|
||||
"${agsConfigDir}/config/types".source = "${config.programs.ags.finalPackage}/share/com.github.Aylur.ags/types";
|
||||
"${agsConfigDir}/config/types" = {
|
||||
source = "${config.programs.ags.finalPackage}/share/com.github.Aylur.ags/types";
|
||||
recursive = true;
|
||||
};
|
||||
"${agsConfigDir}/config/types/gtk-session-lock".source = pkgs.callPackage ./gtk-session-lock-types {inherit gtk-lock;};
|
||||
"${agsConfigDir}/config/config.js".text = configJs;
|
||||
}
|
||||
// (import ./icons.nix {inherit pkgs agsConfigDir;});
|
||||
|
|
18
modules/ags/gtk-session-lock-types/default.nix
Normal file
18
modules/ags/gtk-session-lock-types/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
gtk-lock,
|
||||
buildNpmPackage,
|
||||
...
|
||||
}:
|
||||
buildNpmPackage {
|
||||
pname = "gtk-session-lock-types";
|
||||
version = "0.0";
|
||||
|
||||
npmDepsHash = "sha256-HtQUmDnq0344Ef8W8jW8idSYGj02q/DB4p/gpmWL3iA=";
|
||||
|
||||
src = ./.;
|
||||
dontNpmBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
npx @ts-for-gir/cli generate -g '${gtk-lock.dev}/share/gir-1.0' -o $out
|
||||
'';
|
||||
}
|
BIN
modules/ags/gtk-session-lock-types/package-lock.json
generated
Normal file
BIN
modules/ags/gtk-session-lock-types/package-lock.json
generated
Normal file
Binary file not shown.
5
modules/ags/gtk-session-lock-types/package.json
Normal file
5
modules/ags/gtk-session-lock-types/package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"@ts-for-gir/cli": "^3.3.0"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue