Migrate to Snowfall (#1)
Reviewed-on: #1 Co-authored-by: Evan Reichard <evan@reichard.io> Co-committed-by: Evan Reichard <evan@reichard.io>
This commit was merged in pull request #1.
This commit is contained in:
19
modules/nixos/services/ydotool/default.nix
Normal file
19
modules/nixos/services/ydotool/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ config, lib, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
|
||||
cfg = config.${namespace}.services.ydotool;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.ydotool = {
|
||||
enable = lib.mkEnableOption "ydotool";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
reichard.user.extraGroups = [ "input" ];
|
||||
programs.ydotool = {
|
||||
enable = true;
|
||||
group = "input";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user