Created
March 28, 2020 10:25
-
-
Save yorickvP/a688bf7a8191e182e89ee6d1601e90fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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