Add all of iogamaster modules
This commit is contained in:
37
modules/nixos/desktop/addons/gtklock/default.nix
Normal file
37
modules/nixos/desktop/addons/gtklock/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.frajul; let
|
||||
cfg = config.desktop.addons.gtklock;
|
||||
inherit (inputs.nix-colors.colorschemes.${builtins.toString config.desktop.colorscheme}) palette;
|
||||
in {
|
||||
options.desktop.addons.gtklock = with types; {
|
||||
enable = mkBoolOpt false "Enable or disable the gtklock screen locker.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
gtklock
|
||||
];
|
||||
security.pam.services.gtklock = {};
|
||||
|
||||
home.configFile."gtklock/style.css".text = ''
|
||||
window {
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-color: #${palette.base00};
|
||||
}
|
||||
|
||||
clock-label {
|
||||
color: #${palette.base05};
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user