Move the functionality of both modules into a new clanService. root-password was previously just a special case of user-password. This migrates it into a deduplicated clan service and adds checks
19 lines
397 B
Nix
19 lines
397 B
Nix
{ lib, self, ... }:
|
|
{
|
|
clan.modules = {
|
|
users = lib.modules.importApply ./default.nix { };
|
|
};
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
checks = lib.optionalAttrs (pkgs.stdenv.isLinux) {
|
|
users = import ./tests/vm/default.nix {
|
|
inherit pkgs;
|
|
clan-core = self;
|
|
nixosLib = import (self.inputs.nixpkgs + "/nixos/lib") { };
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|