Skip to content

Instantly share code, notes, and snippets.

@bbjubjub2494
Last active November 27, 2021 09:08
Show Gist options
  • Save bbjubjub2494/771d190aeb026dba2a60897eab90de57 to your computer and use it in GitHub Desktop.
Save bbjubjub2494/771d190aeb026dba2a60897eab90de57 to your computer and use it in GitHub Desktop.
Test case for NixOS/nixpkgs#147312
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1637851243,
"narHash": "sha256-7xbj8IchRGy8fB/OLJ2Igyk+wq1qJxJEPCcSr9WLc84=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "83a79a0f4bd000eaa0bc7a2ec7419a5afd1150bc",
"type": "github"
},
"original": {
"id": "nixpkgs",
"rev": "83a79a0f4bd000eaa0bc7a2ec7419a5afd1150bc",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
{
inputs.nixpkgs.url = "nixpkgs/83a79a0f4bd000eaa0bc7a2ec7419a5afd1150bc";
outputs = { self, nixpkgs }: {
nixosConfigurations.yescrypt-test = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
# cleartext password is "test" in both cases
users.users.root.hashedPassword = "$y$j9T$1IR5X4MNQx9H5juOxAWWo1$i7ntQqjh.2SZEw.yMDk9ripEd2W1J/Mri9ptJ/0gX19";
#users.users.root.hashedPassword = "$6$G4MRIw//y6cM53DB$qcYFilz/oKDKvV.Aey9AS4B2vi9FBWtW1.uIUpSoNHkAEeS4vR92Rg4TRaH.16HUscMWcMJBlNeQ9yszbHqar/";
users.mutableUsers = false;
users.users.nixos.hashedPassword = "$y$j9T$1IR5X4MNQx9H5juOxAWWo1$i7ntQqjh.2SZEw.yMDk9ripEd2W1J/Mri9ptJ/0gX19";
#users.users.nixos.hashedPassword = "$6$G4MRIw//y6cM53DB$qcYFilz/oKDKvV.Aey9AS4B2vi9FBWtW1.uIUpSoNHkAEeS4vR92Rg4TRaH.16HUscMWcMJBlNeQ9yszbHqar/";
users.users.nixos.isNormalUser = true;
users.users.nixos.extraGroups = [ "wheel" ];
security.sudo.enable = true;
security.doas.enable = true;
services.openssh.enable = true;
}
];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment