move gtklock to hosts/common
This commit is contained in:
parent
8f0422458c
commit
a22d60bde5
3 changed files with 19 additions and 29 deletions
19
hosts/common/optional/gtklock.nix
Normal file
19
hosts/common/optional/gtklock.nix
Normal 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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
|
@ -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}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue