From 1c61ff87b2378e599ba828c143512767350b4105 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 21 Jul 2024 21:00:36 +0100 Subject: [PATCH] start cage on boot, run saturn --- configuration.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4ec94a1..fcf48a2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -169,10 +169,23 @@ SUBSYSTEM=="wwan", ENV{DEVNAME}=="/dev/wwan0qmi0", ENV{DEVTYPE}=="wwan_port", \ inherit (secrets) wireless; }; - services.openssh.enable = true; - environment.systemPackages = with pkgs; [ drm-framebuffer]; + services.cage = + let wlinit = pkgs.writeScript "wlinit" '' + exec ${saturn}/bin/saturn + ''; + in { + enable = true; + program = wlinit; + user = "dan"; + }; + + environment.systemPackages = with pkgs; [ + drm-framebuffer + saturn + satellite + ]; users.users.dan = { isNormalUser = true;