nixcfg/homeManagerModules/apps/gtklock/default.nix
Aly Raffauf 62f2d5b1d0
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
desktop: swaylock -> gtklock (#89)
* nixos/desktop: add pam config for gtklock

* apps: add gtklock config

* nixos: fix duplicate pam settings

* desktop: switch to gtklock

* swayidle: switch to gtklock

* nixfmt

* desktop: simplify pam config with inherit
2024-08-12 01:05:07 -04:00

44 lines
856 B
Nix

{
config,
lib,
pkgs,
...
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.gtklock.enable {
home.packages = with pkgs; [
gtklock
];
xdg.configFile = {
"gtklock/config.ini".text = ''
[main]
gtk-theme=adw-gtk3-dark
time-format=%I:%M%p
'';
"gtklock/style.css".text = ''
window {
background-image: url("${cfg.theme.wallpaper}");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-color: black;
}
#clock-label {
margin-bottom: 50px;
font-size: 700%;
font-weight: bold;
color: ${cfg.theme.colors.text};
}
#input-label {
color: ${cfg.theme.colors.text};
}
'';
};
};
}