Skip to content

Instantly share code, notes, and snippets.

@srhb
Created September 6, 2019 07:40
Show Gist options
  • Save srhb/30a274c41439f2d8ca64c498d42bd662 to your computer and use it in GitHub Desktop.
Save srhb/30a274c41439f2d8ca64c498d42bd662 to your computer and use it in GitHub Desktop.
let
workingRev = "8d1510a";
brokenRev = "57b66eb";
nixpkgs = rev: builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
machine = rev:
(import (nixpkgs rev + "/nixos") {
configuration = { ... }: {
services.xserver = {
enable = true;
displayManager.lightdm.enable = true;
};
users.users.test.initialPassword = "test";
};
}).vm;
in
{
working = machine workingRev;
broken = machine brokenRev;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment