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 1400 additions and 5 deletions

View file

@ -378,6 +378,26 @@
"url": "https://repo.dec05eba.com/gpu-screen-recorder"
}
},
"gtk-session-lock": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1712778835,
"narHash": "sha256-SHKAYmdev08oRB/V6UpfSFqYwplF59IaNSOoWcACPig=",
"owner": "Cu3PO42",
"repo": "gtk-session-lock",
"rev": "b3544f361498d716b1ceef1ad6ac9bdf024bf782",
"type": "github"
},
"original": {
"owner": "Cu3PO42",
"repo": "gtk-session-lock",
"type": "github"
}
},
"gtk-theme-src": {
"flake": false,
"locked": {
@ -1515,6 +1535,7 @@
"firefox-gx-src": "firefox-gx-src",
"git-theme-src": "git-theme-src",
"gpu-screen-recorder-src": "gpu-screen-recorder-src",
"gtk-session-lock": "gtk-session-lock",
"gtk-theme-src": "gtk-theme-src",
"headscale": "headscale",
"home-manager": "home-manager",
@ -1593,11 +1614,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1713457024,
"narHash": "sha256-31MpStyXedDL1fvuOvn6iz3JURSVShDtDVMyP1PTjtc=",
"lastModified": 1713532771,
"narHash": "sha256-vfKxhYVMzG2tg48/1rewBoSLCrKIjQsG1j7Nm/Y2gf4=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "b94c6edbb8355756c53efc8ca3874c63622f287a",
"rev": "a929a011a09db735abc45a8a45d1ff7fdee62755",
"type": "github"
},
"original": {

View file

@ -276,6 +276,14 @@
inputs.nixpkgs.follows = "nixpkgs";
};
gtk-session-lock = {
type = "github";
owner = "Cu3PO42";
repo = "gtk-session-lock";
inputs.nixpkgs.follows = "nixpkgs";
};
coc-stylelintplus = {
type = "github";
owner = "matt1432";

View file

@ -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;});

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

File diff suppressed because it is too large Load diff

View file

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