Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
|
|
@ -0,0 +1,41 @@
|
|||
let
|
||||
|
||||
# Example: adds hello into each user. provides only to OS.
|
||||
hello-package-for-user =
|
||||
{
|
||||
user,
|
||||
host,
|
||||
...
|
||||
}:
|
||||
{
|
||||
${host.class} =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.${user.userName}.packages = [ pkgs.hello ];
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
den.default.includes = [ hello-package-for-user ];
|
||||
|
||||
perSystem =
|
||||
{
|
||||
checkCond,
|
||||
rockhopper,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
checks.alice-hello-enabled-by-default = checkCond "added hello at user packages" (
|
||||
let
|
||||
progs = rockhopper.config.users.users.alice.packages;
|
||||
expr = map lib.getName progs;
|
||||
expected = [ "hello" ];
|
||||
in
|
||||
expr == expected
|
||||
);
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue