commit 77f4b5d47a065f6490244251da252219055318fc
parent c0ca80722872898fa3f68475d638abba5a7f43b5
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 17 Jul 2020 11:54:02 +0200
systems/wakasu: migrate to server mode
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/systems/wakasu.nix b/systems/wakasu.nix
@@ -22,8 +22,16 @@ in
networking = {
hostName = hostname;
+ bridges.br1.interfaces = [ "enp0s31f6" ];
+ firewall.enable = false; # we are in safe territory :D
+ useDHCP = false;
+ interfaces.br1 = {
+ useDHCP = true;
+ };
};
+ /*
+ Keep this for naruhodo.
boot.initrd.luks.devices = {
root = {
device = "/dev/disk/by-uuid/49167ed2-8411-4fa3-94cf-2f3cce05c940";
@@ -35,6 +43,7 @@ in
fallbackToPassword = true;
};
};
+ */
fileSystems."/" = {
device = "/dev/disk/by-uuid/c44cdfec-b567-4059-8e66-1be8fec6342a";
@@ -50,9 +59,11 @@ in
profiles = {
home = true;
dev.enable = true;
- desktop.autoLogin = true;
- docker.enable = true;
+ desktop.enable = lib.mkForce false;
laptop.enable = true;
+ docker.enable = true;
+ avahi.enable = true;
+ syncthing.enable = true;
ssh = { enable = true; forwardX11 = true; };
virtualization = { enable = true; nested = true; listenTCP = true; };
yubikey.enable = true;
@@ -68,6 +79,14 @@ in
pam.u2f.enable = true;
};
services = {
+ xserver = {
+ enable = true;
+ displayManager.xpra = {
+ enable = true;
+ bindTcp = "0.0.0.0:10000";
+ pulseaudio = true;
+ };
+ };
logind.extraConfig = ''
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore