diff options
| author | seth <[email protected]> | 2023-09-24 14:24:05 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-24 14:24:05 -0400 |
| commit | 9b912d435520c1f0cc952c46a2c75100457cc245 (patch) | |
| tree | b4c0646d7539c63b1a24dd06d66d1797204b88c3 /templates/full/default.nix | |
| parent | 0f7848c8a6936bc80b043b2d2308ef0d85633b13 (diff) | |
templates/final: use slightly better practices
Diffstat (limited to 'templates/full/default.nix')
| -rw-r--r-- | templates/full/default.nix | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/templates/full/default.nix b/templates/full/default.nix index c7d0c26..5804660 100644 --- a/templates/full/default.nix +++ b/templates/full/default.nix @@ -1,14 +1,10 @@ -( - import - ( - let - lock = builtins.fromJSON (builtins.readFile ./flake.lock); - in - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; - sha256 = lock.nodes.flake-compat.locked.narHash; - } - ) - {src = ./.;} -) +(import + (let + lock = builtins.fromJSON (builtins.readFile ./flake.lock); + in + fetchTarball { + url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; + sha256 = lock.nodes.flake-compat.locked.narHash; + }) + {src = ./.;}) .defaultNix |
