diff --git a/features/keyd.nix b/features/keyd.nix new file mode 100644 index 0000000..2881213 --- /dev/null +++ b/features/keyd.nix @@ -0,0 +1,19 @@ +{ _, ... }: +{ + services.keyd = { + enable = true; + + keyboards = { + default = { + ids = [ "*" ]; + + settings = { + main = { + capslock = "leftcontrol"; + insert = "S-insert"; + }; + }; + }; + }; + }; +} diff --git a/hosts/nero/configuration.nix b/hosts/nero/configuration.nix index 801f244..a1154cd 100644 --- a/hosts/nero/configuration.nix +++ b/hosts/nero/configuration.nix @@ -9,6 +9,7 @@ ../shared/nixos-pc.nix ../../features/kde.nix ../../features/flatpak.nix + ../../features/keyd.nix ]; nixpkgs.overlays = [ diff --git a/hosts/pdw-frankiel/configuration.nix b/hosts/pdw-frankiel/configuration.nix index 6fa8004..e5445c7 100644 --- a/hosts/pdw-frankiel/configuration.nix +++ b/hosts/pdw-frankiel/configuration.nix @@ -6,6 +6,7 @@ ../shared/nixos-pc.nix ../../features/kde.nix ../../features/flatpak.nix + ../../features/keyd.nix ]; boot = { @@ -22,23 +23,6 @@ services = { printing.enable = true; - keyd = { - enable = true; - - keyboards = { - default = { - ids = [ "*" ]; - - settings = { - main = { - capslock = "leftcontrol"; - insert = "S-insert"; - }; - }; - }; - }; - }; - flatpak = { packages = [ {