Skip to content

Instantly share code, notes, and snippets.

@yorickvP
Created March 28, 2020 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorickvP/a688bf7a8191e182e89ee6d1601e90fc to your computer and use it in GitHub Desktop.
Save yorickvP/a688bf7a8191e182e89ee6d1601e90fc to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> { };
inherit (pkgs) lib nixos;
shim = {
boot.loader.systemd-boot.enable = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs";
};
};
in pkgs.recurseIntoAttrs (lib.genAttrs [ "a" "b" "c" "d" ] (n:
(nixos {
imports = [ shim ];
networking.hostName = n;
}).toplevel))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment