feat(ags): add gtk-session-lock dep
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-04-19 10:38:54 -04:00
parent a676406150
commit 27ff75260d
6 changed files with 37 additions and 2 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -2,6 +2,7 @@
ags, ags,
astal, astal,
config, config,
gtk-session-lock,
pkgs, pkgs,
... ...
}: let }: let
@ -9,6 +10,7 @@
flakeDir = config.environment.variables.FLAKE; flakeDir = config.environment.variables.FLAKE;
isTouchscreen = config.hardware.sensor.iio.enable; isTouchscreen = config.hardware.sensor.iio.enable;
gtk-lock = gtk-session-lock.packages.${pkgs.system}.default;
in { in {
# Enable pam for ags and astal # Enable pam for ags and astal
security.pam.services.ags = {}; security.pam.services.ags = {};
@ -55,10 +57,16 @@ in {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
libadwaita libadwaita
gtk-lock
]; ];
}; };
programs.ags.enable = true; programs.ags = {
enable = true;
extraPackages = [
gtk-lock
];
};
home = { home = {
file = file =
@ -70,7 +78,11 @@ in {
# AGS symlinks. ${./config}, types and config.js # AGS symlinks. ${./config}, types and config.js
".config/ags".source = symlink "${flakeDir}/modules/ags/config"; ".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; "${agsConfigDir}/config/config.js".text = configJs;
} }
// (import ./icons.nix {inherit pkgs agsConfigDir;}); // (import ./icons.nix {inherit pkgs agsConfigDir;});

View 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
'';
}

Binary file not shown.

View file

@ -0,0 +1,5 @@
{
"dependencies": {
"@ts-for-gir/cli": "^3.3.0"
}
}