summaryrefslogtreecommitdiff
path: root/scripts/syschdemd.nix
AgeCommit message (Collapse)Author
2023-09-12Refactor (#291)nzbr
* move module imports to default.nix * move docker modules to subdirectory * add an otion for adding files to /bin. Fixes #279 * move recovery script to own module * reorder options * move systemd related code to separate modules * move utils to repo root * devShell -> devShells.default * fix utils imports * fix bashWrapper
2023-07-12fix: getent missing on nixos-unstablenzbr
2023-01-28small improvements to testsnzbr
2022-11-25Add CI Tests (#161)nzbr
* use systemd-run instead of machinectl * fix systemd user sessions by launching through runuser * skip mounting binfmt_misc if the kernel lacks support for it * link syschdemd/installer to static location * make check happy * test tests * add a simple installer test * add second test for exit codes * make tests responsible for checking exit code * fix: add which to path * overhaul actions workflow * move checks out of flake.nix * use GUID for image name * Split flake checks into matrix job * Check for side-effects * reformat powershell scripts * extend basic test * use pester for tests * "fix" (purposefully) failing test * rename lib -> init * Add test for systemd --user * Add test for docker-native * move release to separate workflow * change downstream workflow path * switch to a class * Test running with different user shells * Add lib implementation for Windows * Add documentation for the tests * readme: docker permissions * remove empty files
2022-11-14Fix syschdemd exit code (#140)nzbr
* use systemd-run instead of machinectl * fix systemd user sessions by launching through runuser * fix: add which to path
2022-10-30NixOS users.users.<user> attribute name and .name can differ (#147)Kovacsics Robert
* NixOS users.users.<user> attribute name and .name can differ * format Co-authored-by: Robert Kovacsics <robert.kovacsics@cambridgeconsultants.com> Co-authored-by: nzbr <mail@nzbr.de>
2022-08-29feat: rewrite syschdemd (#126)K900
Mostly just a big pile of cleanups. Important changes: - refactor and clean up the code, fix all the shellcheck complaints - stop trying to guess paths in scripts and wrap them correctly instead - use nsfs instead of trying to figure out the right PID to copy namespaces from - clean up $WSLPATH to remove extra impure entries - don't try to restart systemd if it died - make sure the store is read-only before we do anything, so systemd can't mess with it - reformat shell scripts with shfmt