-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnixos.nix
24 lines (24 loc) · 862 Bytes
/
nixos.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# [[file:~/.local/share/bauer/README.org::*NixOS%20virtualbox%20&%20installer][NixOS virtualbox & installer:1]]
# -*- mode: nix; coding: utf-8; -*-
{ system ? builtins.currentSystem }:
let
ensure = f: n: if builtins.pathExists f then f
else builtins.fetchurl
"https://matthewbauer.us/bauer/${n}";
in {
ova = (import <nixpkgs/nixos/lib/eval-config.nix> {
inherit system;
modules = [
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
(ensure ./module.nix "module.nix")
];
}).config.system.build.virtualBoxOVA;
iso = (import <nixpkgs/nixos/lib/eval-config.nix> {
inherit system;
modules = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix>
(ensure ./module.nix "module.nix")
];
}).config.system.build.isoImage;
}
# NixOS virtualbox & installer:1 ends here