Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import <nixpkgs> {};
- let
- overlay1 = self: super:
- {
- a1 = super.stdenv.mkDerivation {
- src = builtins.fetchGit {
- url = "git@github.com:my-secret/repository.git";
- ref = "master";
- rev = "adab8b916a45068c044658c4158d81878f9ed1c3";
- };
- };
- };
- pkgs = import <nixpkgs> { overlays = [ overlay1 ]; };
- lib = pkgs.lib;
- x86_config = { pkgs, ... }:
- {
- fileSystems = {
- "/" = { device = "LABEL=nixos"; fsType = "ext4"; };
- };
- boot = {
- loader.grub = {
- enable = true;
- device = "/dev/vda";
- };
- };
- environment.systemPackages = [ pkgs.bustle pkgs.qt5.full pkgs.a1 ];
- services.mingetty.autologinUser = "root";
- };
- x86_build = import <nixpkgs/nixos> { configuration = x86_config; };
- rootDisk = import <nixpkgs/nixos/lib/make-disk-image.nix> {
- name = "nix_x86_rootfs";
- inherit pkgs lib;
- config = x86_build.config;
- diskSize = 4096;
- };
- in rootDisk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement