diff options
| author | Martin Fischer <martin@push-f.com> | 2026-01-06 23:38:24 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-01-06 23:38:24 +0100 |
| commit | daf7ac7c9dd102e1ee1880cc59d4dc57fb824af7 (patch) | |
| tree | 322af906d5588a86275983463f96fa6924db0e0a /nixos | |
| parent | 1c0fb275f3f302d6abc3ef560a80ceec8a8e6b8c (diff) | |
feat(workstation): serve ~/.local/www
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/profiles/workstation/default.nix | 2 | ||||
| -rw-r--r-- | nixos/profiles/workstation/graphical.nix | 14 |
2 files changed, 14 insertions, 2 deletions
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 <top/shared/basics-physical.nix> - ./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 = { |
