summaryrefslogtreecommitdiff
path: root/scripts
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-09-10fix(deps): update rust crate log to 0.4.20 (#287)renovate[bot]
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09fix(deps): update rust crate anyhow to 1.0.75renovate[bot]
2023-09-09fix: pin rust dependencies; undo cargo lock updatenzbr
2023-09-09chore(deps): lock file maintenancerenovate[bot]
2023-07-12fix: getent missing on nixos-unstablenzbr
2023-02-10feat: run native-utils tests and rustfmt in CIK900
2023-02-10fix(split-paths): refactor a bit, add some basic unit testsK900
2023-02-10fix(split-paths): use stdlib functions + correct shell escapingK900
2023-02-02Merge pull request #214 from K900/until-morale-improvesK900
feat: use a Rust tool to do the PATH manipulations
2023-02-01feat: use a Rust tool to do the PATH manipulationsK900
Overkill? Yes. Fuck bash? Also yes.
2023-01-29Make syschdemd start a login shell and add a test for thatnzbr
2023-01-28small improvements to testsnzbr
2023-01-19fix: fix compatibility with latest WSL updateK900
2022-12-21native-systemd-shim: clean up /dev/shm correctly when it's a directoryK900
Work around a bug that seems to happen sometimes when the container is restarted.
2022-12-12native-systemd-shim: fix /dev/shm and / mount propagationK900
ew ew ew ew ew ew
2022-12-01Fix sudo ssh with jumpHost (#167)Sandro
2022-12-01Fix permissions for files in /dev/pts (#166)Sandro
The pts should have $USER:tty permissions, not root:tty. This broke gpg with the following not very helpful error message: gpg: signing failed: Permission denied
2022-11-25native-systemd-shim: pass arguments correctly (#170)K900
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-10-30feat: native systemd support (#134)K900
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