Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, ... }:{ name = "systemd-user-tmpfiles-rules";
meta = with lib.maintainers; { maintainers = [ schnusch ]; };
nodes.machine = { ... }: { users.users = { alice.isNormalUser = true; bob.isNormalUser = true; };
systemd.user.tmpfiles = { rules = [ "d %h/user_tmpfiles_created" ]; users.alice.rules = [ "d %h/only_alice" ]; }; };
testScript = { ... }: '' machine.succeed("loginctl enable-linger alice bob")
machine.wait_until_succeeds("systemctl --user --machine=alice@ is-active systemd-tmpfiles-setup.service") machine.succeed("[ -d ~alice/user_tmpfiles_created ]") machine.succeed("[ -d ~alice/only_alice ]")
machine.wait_until_succeeds("systemctl --user --machine=bob@ is-active systemd-tmpfiles-setup.service") machine.succeed("[ -d ~bob/user_tmpfiles_created ]") machine.succeed("[ ! -e ~bob/only_alice ]") '';}