Extract Docker and screenkey modules
This commit is contained in:
parent
d0e83937d2
commit
198f2962bd
8 changed files with 53 additions and 25 deletions
3
nix/modules/nixos/features/desktop/default.nix
Normal file
3
nix/modules/nixos/features/desktop/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
imports = [ ./screenkey.nix ];
|
||||
}
|
23
nix/modules/nixos/features/desktop/screenkey.nix
Normal file
23
nix/modules/nixos/features/desktop/screenkey.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.desktop.screenkey.enable = lib.mkEnableOption "Enable screenkey";
|
||||
|
||||
config = lib.mkIf config.features.desktop.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