move gtklock to hosts/common

This commit is contained in:
jacekpoz 2024-10-02 18:13:28 +02:00
parent 8f0422458c
commit a22d60bde5
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8
3 changed files with 19 additions and 29 deletions

View file

@ -0,0 +1,19 @@
{
config,
pkgs,
...
}: let
inherit (config.poz.other.system) username;
in {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.gtklock.text = "auth include login";
users.users.${username}.packages = [ pkgs.gtklock ];
home-manager.users.${username} = {
xdg.configFile."gtklock/config.ini".text = ''
[main]
gtk-theme=${config.poz.themes.gtk.name}
'';
};
}

View file

@ -8,7 +8,6 @@ _: {
./firefox.nix ./firefox.nix
./foot.nix ./foot.nix
./gtk.nix ./gtk.nix
./gtklock.nix
./mpv.nix ./mpv.nix
./qt.nix ./qt.nix
#./schizofox.nix #./schizofox.nix

View file

@ -1,28 +0,0 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.poz.programs.gtklock;
inherit (config.poz.other.system) username;
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
in {
options.poz.programs.gtklock.enable = mkEnableOption "gtklock";
config = mkIf cfg.enable {
# https://github.com/NixOS/nixpkgs/issues/158025
security.pam.services.gtklock.text = "auth include login";
users.users.${username}.packages = [ pkgs.gtklock ];
home-manager.users.${username} = {
xdg.configFile."gtklock/config.ini".text = ''
[main]
gtk-theme=${config.poz.themes.gtk.name}
'';
};
};
}