Remove the features directory
This commit is contained in:
parent
6585022138
commit
0f31678c52
57 changed files with 6 additions and 8 deletions
25
nix/modules/nixos/desktop/screenkey.nix
Normal file
25
nix/modules/nixos/desktop/screenkey.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.nixosModules.screenkey.enable = mkEnableOption "Enable screenkey";
|
||||
|
||||
config = mkIf config.nixosModules.screenkey.enable {
|
||||
environment.systemPackages = with pkgs; [ screenkey ];
|
||||
|
||||
home-manager.users.${username}.xdg.configFile."screenkey.json".text = builtins.toJSON {
|
||||
key_mode = "composed";
|
||||
mods_mode = "emacs";
|
||||
persist = true;
|
||||
size = "small";
|
||||
timeout = 0.25;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue