Update IP for maddy and enable zram

This commit is contained in:
Natsu Kagami 2023-09-06 09:25:23 +02:00
parent df272e7d9b
commit 26b0313bcd
Signed by: nki
GPG key ID: 55A032EB38B49ADB
4 changed files with 23 additions and 6 deletions

View file

@ -72,6 +72,22 @@
)
];
};
## Virtual keyboard
systemd.user.services.wvkbd = {
Unit = {
Description = "Wayland virtual keyboard";
};
Install.WantedBy = [ "waybar.service" ];
Service = {
Type = "simple";
ExecStart = "${pkgs.wvkbd}/bin/wvkbd-mobintl -l simple,special,emoji --landscape-layers simple,special,emoji --hidden";
};
};
wayland.windowManager.sway.extraConfig = ''
bindswitch tablet:on exec systemctl --user kill --signal SIGUSR2 wvkbd
bindswitch tablet:off exec systemctl --user kill --signal SIGUSR1 wvkbd
'';
# input-remapping
xdg.configFile."autostart/input-remapper-autoload.desktop".source =
"${pkgs.input-remapper}/share/applications/input-remapper-autoload.desktop";