79 Commits

Author SHA1 Message Date
e016ed9272 fix nixos activation notify-send 2025-07-19 23:35:38 +00:00
331cbaf926 modules/users: escape values in ~/.config/environment.d to avoid syntax errors 2025-06-12 19:14:29 +00:00
bc25feab80 modules/users: provide an env var to control sourcing of ~/.profile 2025-06-06 03:04:06 +00:00
4fd4f6fa2f users/systemd: disable autostart limit for user services 2025-02-25 03:54:58 +00:00
2d40717d04 xdg-desktop-portal: simplify the plumbing of .portal files; no more ~/.config/xdg-desktop-portal/portals 2024-12-05 08:21:24 +00:00
2afc99bd00 xdg-desktop-portal: allow spawned processes to survive service restarts 2024-12-05 03:36:58 +00:00
d138cec9fc users/systemd: fix so oneshot services arent stopped immediately after activation 2024-10-18 02:55:44 +00:00
11b706b132 refactor: use lib.getExe where applicable 2024-10-12 19:34:42 +00:00
3f58caa446 private-storage: mark as a dependency of default, so that even non-GUI systems like servo are sure to load it 2024-10-06 09:00:23 +00:00
3e40fe73f8 notifyActive activation script: fix
the DBUS_SESSION_BUS_ADDRESS env var referred to the XDG_RUNTIME_DIR, the latter wasn't set by the time the former was being evaluated
2024-10-05 07:17:51 +00:00
1315f93471 users: dont restart systemd services on activation
i can see why this would be desired... but unless i plumb a way to selectively disable it, i'd prefer to disable it by default
2024-10-02 14:30:44 +00:00
0c270fe4a3 WIP: sane.fs consumers: avoid wantedBy/wantedBeforeBy 2024-09-30 10:19:39 +00:00
c9d5d3eeca refactor: modules/users: dont hardcode $HOME 2024-09-29 07:17:00 +00:00
d073250032 users: switch to systemd services by default 2024-09-28 03:38:46 +00:00
edb665abd0 users: add a systemd backend for managing services 2024-09-28 03:38:46 +00:00
6d0a2d63fc users: make the service manager partly configurable 2024-09-25 15:39:57 +00:00
8819142128 modules/users: use = instead of -eq for comparison to fix warning which XDG_VTNR is unset 2024-07-26 20:57:23 +00:00
3b8d6c8587 refactor: s6/unl0kr/profile: put more shell init stuff directly in modules/users/default.nix when it doesnt benefit from being pluggable 2024-07-26 15:58:59 +00:00
4daf5452e8 unl0kr: dont echo password to terminal 2024-07-26 09:36:06 +00:00
af905a2f58 unl0kr: split the gocryptfs unlocking into its own separate service
/mnt/persist/private can be depended on by both s6 user services and systemd system services (which will become useful for servo)

/mnt/persist/private can be unlocked by dropping the key in remotely, however that won't kill unl0kr

TODO: fix unl0kr to not also output text to the tty

TODO: ensure gocryptfs mount can handle being fed a wrong password
2024-07-26 08:08:21 +00:00
2203d6db59 cleanup: remove XDG_SESSION_TYPE, XDG_VTNR from global environment 2024-07-25 15:26:24 +00:00
70d4925483 gps-share: dont launch until after the modem is actually powered on 2024-07-24 11:15:44 +00:00
a1de7a4afd users: configure XDG_SESSION_TYPE during shell setup 2024-07-18 00:15:29 +00:00
b0ee12ba7b modules/users: export HOME in environment.d because some services (nwg-panel) need it 2024-06-16 06:01:20 +00:00
4c84d1a727 doc: modules/users: show what XDG_SESSION_{ID,CLASS,TYPE} could look like if set 2024-05-30 08:44:26 +00:00
4aeb3360d3 cleanup: programs: dont assume sway is always the wayland/x11 provider 2024-05-30 06:00:32 +00:00
9ba8ff738b refactor: sane.programs.$foo.service: specify type concretely 2024-05-30 03:39:32 +00:00
d4dfcd6510 login: remove systemd pam integration (so it doesnt try, and fail, to start the user manager) 2024-05-29 15:42:39 +00:00
8d8bf00a34 s6-rc: use s6-rc stop instead of exiting 125 in the no-restart branch of "restartCondition = on-failure"
exiting 125 stops the service, but does NOT put it in the down state, preventing it from being re-started
2024-05-07 15:24:14 +00:00
4f56acc316 s6-rc: implement restartCondition to allow restarting of the service only on failure 2024-05-07 15:01:40 +00:00
fdf1b20368 s6-rc: propagate service status out of run script 2024-05-07 12:50:09 +00:00
9021ab9f05 s6: fix oneshot service runner
the runner previously couldn't find the 'live' directory, where the service state lives. now it can
2024-04-27 08:05:54 +00:00
79bba42768 s6-rc: fix oneshot services to generate up, not run 2024-04-27 06:33:24 +00:00
8dd4fe06f3 s6: longshot -> longrun (typo) 2024-04-27 05:22:35 +00:00
19115dfb65 eg25-control: port to s6 (hopefully) 2024-04-26 21:44:13 +00:00
89d4b0ae0b s6-rc: don't tee to /dev/stderr, as i don't want any logs going to the console and interfering with text entry 2024-03-31 05:20:33 +00:00
6c5b32aac2 s6-rc: fix so the service manager knows about readiness notifications again 2024-03-26 13:34:38 +00:00
f59dd99470 s6-rc: init services in the "down" state 2024-03-26 12:55:40 +00:00
55c8a98c33 s6-rc: pre-compute more stuff as nix exprs; don't even run s6-rc-init 2024-03-26 12:36:46 +00:00
5cd9f34884 s6-rc: remove more unnecessarily files from live dir 2024-03-26 00:45:24 +00:00
2cabe51956 s6-rc: remove a couple more unused files from the live dir 2024-03-26 00:22:14 +00:00
cb8e9b7a23 s6-rc: make it so, once started, other programs can start/stop services but NOT edit/create them 2024-03-26 00:11:02 +00:00
4eb6b5735e users/s6-rc: allow startS6 "" 2024-03-25 16:46:51 +00:00
5d3899959b users/s6-rc: split out compiled var 2024-03-25 14:56:41 +00:00
ad951ad919 users/s6-rc: add symlink capabilities to my fs abstraction 2024-03-25 14:46:43 +00:00
e62be121e2 users/services: s6: fix so s6-rc stop can actually kill processes 2024-03-24 11:48:41 +00:00
7f8cae42ff s6: migrate to /run/user/$id/s6 2024-03-23 21:33:08 +00:00
2e58353b0e refactor: users/services: have waitExists support waiting on multiple paths 2024-03-23 17:28:29 +00:00
39de5b84c2 sway: fix readiness check 2024-03-23 15:54:20 +00:00
4418c16967 users/services: s6: push bundle dependencies down onto the actual atomic services 2024-03-23 13:04:12 +00:00