Fix zoidberg

This commit is contained in:
Zuckerberg 2024-06-16 12:09:58 -06:00
parent e69fd5bf8f
commit 89621945f8
2 changed files with 21 additions and 21 deletions

View File

@ -42,25 +42,25 @@
]; ];
# System wide barrier instance # System wide barrier instance
systemd.services.barrier-sddm = { # systemd.services.barrier-sddm = {
description = "Barrier mouse/keyboard share"; # description = "Barrier mouse/keyboard share";
requires = [ "display-manager.service" ]; # requires = [ "display-manager.service" ];
after = [ "network.target" "display-manager.service" ]; # after = [ "network.target" "display-manager.service" ];
wantedBy = [ "multi-user.target" ]; # wantedBy = [ "multi-user.target" ];
serviceConfig = { # serviceConfig = {
Restart = "always"; # Restart = "always";
RestartSec = 10; # RestartSec = 10;
# todo use user/group # # todo use user/group
}; # };
path = with pkgs; [ barrier doas ]; # path = with pkgs; [ barrier doas ];
script = '' # script = ''
# Wait for file to show up. "display-manager.service" finishes a bit too soon # # Wait for file to show up. "display-manager.service" finishes a bit too soon
while ! [ -e /run/sddm/* ]; do sleep 1; done; # while ! [ -e /run/sddm/* ]; do sleep 1; done;
export XAUTHORITY=$(ls /run/sddm/*) # export XAUTHORITY=$(ls /run/sddm/*)
# Disable crypto is fine because tailscale is E2E encrypting better than barrier could anyway # # Disable crypto is fine because tailscale is E2E encrypting better than barrier could anyway
barrierc -f --disable-crypto --name zoidberg ray.koi-bebop.ts.net # barrierc -f --disable-crypto --name zoidberg ray.koi-bebop.ts.net
''; # '';
}; # };
# Login into X11 plasma so barrier works well # Login into X11 plasma so barrier works well
services.displayManager.defaultSession = "plasma"; services.displayManager.defaultSession = "plasma";

View File

@ -7,7 +7,7 @@
]; ];
# boot # boot
efi.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.timeout = lib.mkForce 15; boot.loader.timeout = lib.mkForce 15;
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ "dm-snapshot" ];
@ -35,7 +35,7 @@
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ {
device = "/dev/disk/by-uuid/8074-B04D"; device = "/dev/disk/by-uuid/954B-AB3E";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices =