summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-08-17 14:00:19 +0100
committerGitHub <noreply@github.com>2022-08-17 14:00:19 +0100
commit91efad532608b2d5aedc2ce40e8daf5844f1ac74 (patch)
tree88197df546363895dc7194d0f1722cc6e803b08f /README.md
parent2fc06462ce5c31d363686b110b42d653b6f8f366 (diff)
parent6b3d6452eb0ecd019468eff149b023560360e566 (diff)
Merge pull request #8 from nix-community/no-impure
No impure
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 27cd3f1..192129e 100644
--- a/README.md
+++ b/README.md
@@ -36,16 +36,16 @@ This is how your iso configuation may look like
/etc/nixos/configuration.nix
```nix
-{ pkgs, ... }:
+{ pkgs, modulesPath, ... }:
let
- disko = (builtins.fetchGit {
+ disko = builtins.fetchGit {
url = https://cgit.lassul.us/disko/;
rev = "88f56a0b644dd7bfa8438409bea5377adef6aef4";
- }) + "/lib";
+ };
cfg = builtins.fromJSON ./tsp-disk.json;
in {
imports = [
- <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
+ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
];
environment.systemPackages = with pkgs;[
(pkgs.writeScriptBin "tsp-create" (disko.create cfg))