diff --git a/nixos/tests/userborn.nix b/nixos/tests/userborn.nix index c89880a14a5c..2c4f44b93ca5 100644 --- a/nixos/tests/userborn.nix +++ b/nixos/tests/userborn.nix @@ -99,6 +99,10 @@ in with subtest("sysusers group is created"): print(machine.succeed("getent group sysusers")) + with subtest("Check files"): + print(machine.succeed("grpck -r")) + print(machine.succeed("pwck -r")) + machine.succeed("/run/current-system/specialisation/new-generation/bin/switch-to-configuration switch") @@ -123,5 +127,9 @@ in with subtest("new-group group is created after switching to new generation"): print(machine.succeed("getent group new-group")) + + with subtest("Check files"): + print(machine.succeed("grpck -r")) + print(machine.succeed("pwck -r")) ''; } diff --git a/pkgs/by-name/us/userborn/package.nix b/pkgs/by-name/us/userborn/package.nix index c8047e7d1761..233a1ebb1264 100644 --- a/pkgs/by-name/us/userborn/package.nix +++ b/pkgs/by-name/us/userborn/package.nix @@ -10,18 +10,18 @@ rustPlatform.buildRustPackage rec { pname = "userborn"; - version = "0.1.0"; + version = "0.2.0"; src = fetchFromGitHub { owner = "nikstur"; repo = "userborn"; rev = version; - hash = "sha256-aptFDrL9RPPTu4wp2ee3LVaEruRdCWtLGIKdOgsR+/s="; + hash = "sha256-LEKdgmw1inBOi0sriG8laCrtx0ycqR5ftdnmszadx3U="; }; sourceRoot = "${src.name}/rust/userborn"; - cargoHash = "sha256-m39AC26E0Pxu1E/ap2kSwr5uznJNgExf5QUrZ+zTNX0="; + cargoHash = "sha256-Pjzu6db2WomNsC+jNK1fr1u7koZwUvWPIY5JHMo1gkA="; nativeBuildInputs = [ makeBinaryWrapper ]; @@ -52,6 +52,7 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/nikstur/userborn"; description = "Declaratively bear (manage) Linux users and groups"; license = licenses.mit; + platforms = platforms.linux; maintainers = with lib.maintainers; [ nikstur ]; mainProgram = "userborn"; };