Add Peaclock home module and wrappers input
Enable Peaclock in the user’s home configuration and add a new `wrappers` input to the flake. System‑level Peaclock references are commented out, and default and digital config files for Peaclock are included.
This commit is contained in:
25
modules/home/peaclock/default.nix
Normal file
25
modules/home/peaclock/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
inputs,
|
||||
username,
|
||||
...
|
||||
}: let
|
||||
in {
|
||||
options.peaclock.enable = lib.mkEnableOption "Peaclock";
|
||||
|
||||
config.home.packages = lib.mkIf config.peaclock.enable [
|
||||
(inputs.wrappers.lib.wrapPackage
|
||||
{
|
||||
inherit pkgs;
|
||||
package = pkgs.peaclock;
|
||||
flags = {
|
||||
"--config-dir" = "/home/${username}/.peaclock";
|
||||
"--config" = "/home/${username}/.peaclock/config/digital";
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
imports = [./digital.nix];
|
||||
}
|
||||
Reference in New Issue
Block a user