diff --git a/triviOS/default.nix b/triviOS/default.nix index 76d10ab..b9130b7 100644 --- a/triviOS/default.nix +++ b/triviOS/default.nix @@ -35,19 +35,22 @@ libgpiod ]; - networking.wireless = { - enable = true; - environmentFile = "/var/lib/wlan.conf"; + networking = { + hostName = "tripi"; + firewall.allowedTCPPorts = [ 80 ]; - networks."@WLAN_SSID@".psk = "@WLAN_PSK@"; + wireless = { + enable = true; + environmentFile = "/var/lib/wlan.conf"; + networks."@WLAN_SSID@".psk = "@WLAN_PSK@"; + }; }; - networking.hostName = "tripi"; + services.openssh = { enable = true; settings.PasswordAuthentication = true; settings.PermitRootLogin = "yes"; - firewall.allowedTCPPorts = [ 80 ]; }; users.users."root".initialPassword = "password"; diff --git a/triviOS/web.nix b/triviOS/web.nix index 2f63bdf..48c33f2 100644 --- a/triviOS/web.nix +++ b/triviOS/web.nix @@ -25,7 +25,7 @@ instance = { type = "normal"; - pythonPackages = py: [ py.callPackage ../ui { } ]; + pythonPackages = py: [ (py.callPackage ../ui { }) ]; module = "homemanager.wsgi"; socket = "${config.services.uwsgi.runDir}/uwsgi.sock";