Advertisement
Guest User

Untitled

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