From daf7ac7c9dd102e1ee1880cc59d4dc57fb824af7 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 6 Jan 2026 23:38:24 +0100 Subject: feat(workstation): serve ~/.local/www --- nixos/profiles/workstation/default.nix | 2 +- nixos/profiles/workstation/graphical.nix | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix index 3b24674..b6b230a 100644 --- a/nixos/profiles/workstation/default.nix +++ b/nixos/profiles/workstation/default.nix @@ -15,7 +15,7 @@ in imports = [ ../common - ./graphical.nix + (import ./graphical.nix { inherit config pkgs cmd50; }) ./firefox.nix ./dev.nix ./create.nix diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix index c2a835e..c075d47 100644 --- a/nixos/profiles/workstation/graphical.nix +++ b/nixos/profiles/workstation/graphical.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, cmd50, ... }: { # Services @@ -28,6 +28,18 @@ wantedBy = ["default.target"]; }; + systemd.user.services.serve = { + after = ["network.target"]; + + serviceConfig = { + Type = "simple"; + WorkingDirectory = "%h/.local/www"; + ExecStart = "${cmd50}/bin/serve --port 1314"; + }; + + wantedBy = ["default.target"]; + }; + # Packages programs.sway = { -- cgit v1.3.1