mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2026-02-02 09:25:08 +01:00
disko: get rid of impure imports
This is a backwards-incompatible change but it allows to pin nixpkgs, which is desirable especially in professional environments where reproduciblity is important.
This commit is contained in:
parent
2fc06462ce
commit
20bfa32750
5 changed files with 38 additions and 25 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue