Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. { stdenv, fetchurl, perl }:
  2.  
  3. let
  4. overlay1 = self: super:
  5. {
  6. a1 = stdenv.mkDerivation {
  7. src = builtins.fetchGit {
  8. url = "git@github.com:my-secret/repository.git";
  9. ref = "master";
  10. rev = "adab8b916a45068c044658c4158d81878f9ed1c3";
  11. };
  12. };
  13. inherit perl;
  14. };
  15. pkgs = import <nixpkgs> { overlays = [ overlay1 ]; };
  16. lib = pkgs.lib;
  17. x86_config = { pkgs, ... }:
  18. {
  19. fileSystems = {
  20. "/" = { device = "LABEL=nixos"; fsType = "ext4"; };
  21. };
  22. boot = {
  23. loader.grub = {
  24. enable = true;
  25. device = "/dev/vda";
  26. };
  27. };
  28. environment.systemPackages = [ pkgs.bustle pkgs.qt5.full ];
  29. services.mingetty.autologinUser = "root";
  30. };
  31. x86_build = import <nixpkgs/nixos> { configuration = x86_config; };
  32. rootDisk = import <nixpkgs/nixos/lib/make-disk-image.nix> {
  33. name = "nix_x86_rootfs";
  34. inherit pkgs lib;
  35. config = x86_build.config;
  36. diskSize = 4096;
  37. };
  38. in rootDisk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement