mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 21:31:54 -05:00
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
* 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
44 lines
856 B
Nix
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};
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|