1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00
nix-darwin/tests/users-packages.nix

17 lines
479 B
Nix

{ config, pkgs, ... }:
{
users.knownUsers = [ "foo" ];
users.users.foo.uid = 42000;
users.users.foo.gid = 42000;
users.users.foo.description = "Foo user";
users.users.foo.isHidden = false;
users.users.foo.home = "/Users/foo";
users.users.foo.shell = "/run/current-system/sw/bin/bash";
users.users.foo.packages = [ pkgs.hello ];
test = ''
echo "checking for hello in /etc/profiles/per-user/foo" >&2
test -x /etc/profiles/per-user/foo/bin/hello
'';
}