Merge pull request 'templates: add template for enw clan' (#20) from flake-template into main
This commit is contained in:
16
templates/new-clan/default.nix
Normal file
16
templates/new-clan/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
# This file provides backward compatibility to nix < 2.4 clients
|
||||
let
|
||||
flake =
|
||||
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 = ./.; };
|
||||
in
|
||||
flake.defaultNix
|
||||
Reference in New Issue
Block a user