Update IP for maddy and enable zram
This commit is contained in:
parent
df272e7d9b
commit
26b0313bcd
|
@ -1027,11 +1027,11 @@
|
||||||
"flake-utils": "flake-utils_7"
|
"flake-utils": "flake-utils_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686133200,
|
"lastModified": 1693981285,
|
||||||
"narHash": "sha256-AkpX/qKyYZAql7aif3mGe2noBpVWhCWnTsLWSIy1BCI=",
|
"narHash": "sha256-7TXp5nKRs3BgSHEg7uBbTBAQKlM7vKji+IVLAy78VCc=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "29b56eb8daa86334d9e2744d527dfb02b147a381",
|
"rev": "824bff0a5dfbf69e6694b30f0f863f2008fcce56",
|
||||||
"revCount": 7,
|
"revCount": 8,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@github.com/natsukagami/nix-deploy-secrets"
|
"url": "ssh://git@github.com/natsukagami/nix-deploy-secrets"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
# input-remapping
|
||||||
xdg.configFile."autostart/input-remapper-autoload.desktop".source =
|
xdg.configFile."autostart/input-remapper-autoload.desktop".source =
|
||||||
"${pkgs.input-remapper}/share/applications/input-remapper-autoload.desktop";
|
"${pkgs.input-remapper}/share/applications/input-remapper-autoload.desktop";
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
cloud.mail = {
|
cloud.mail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
debug = true;
|
debug = true;
|
||||||
# local_ip = (builtins.elemAt config.networking.interfaces.eth0.ipv4.addresses 0).address;
|
local_ip = config.secrets.ipAddresses."nki.personal";
|
||||||
tls.certFile = "${config.cloud.traefik.certsDumper.destination}/${config.cloud.mail.hostname}/certificate.crt";
|
tls.certFile = "${config.cloud.traefik.certsDumper.destination}/${config.cloud.mail.hostname}/certificate.crt";
|
||||||
tls.keyFile = "${config.cloud.traefik.certsDumper.destination}/${config.cloud.mail.hostname}/privatekey.key";
|
tls.keyFile = "${config.cloud.traefik.certsDumper.destination}/${config.cloud.mail.hostname}/privatekey.key";
|
||||||
usersFile = config.sops.secrets.mail-users.path;
|
usersFile = config.sops.secrets.mail-users.path;
|
||||||
|
|
|
@ -6,7 +6,8 @@
|
||||||
boot.initrd.kernelModules = [ "nvme" ];
|
boot.initrd.kernelModules = [ "nvme" ];
|
||||||
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
|
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
|
||||||
# swap
|
# swap
|
||||||
swapDevices = [{ device = "/var/swapfile"; size = 4 * 1024; }];
|
swapDevices = [{ device = "/var/swapfile"; size = 4 * 1024; priority = 1024; }];
|
||||||
|
zramSwap.enable = true;
|
||||||
# volumes
|
# volumes
|
||||||
fileSystems.data = {
|
fileSystems.data = {
|
||||||
device = "/dev/disk/by-id/scsi-0HC_Volume_31812942";
|
device = "/dev/disk/by-id/scsi-0HC_Volume_31812942";
|
||||||
|
|
Loading…
Reference in a new issue