Skip to content

Commit

Permalink
Add a boilerplate template as opposed to targeted
Browse files Browse the repository at this point in the history
Remove the specific target specific templates as they are out of sync.
As a downstream it is more logical to get a project structure in place
from whence you can start to build your specific Ghaf derived project.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
  • Loading branch information
brianmcgillion committed Jun 6, 2024
1 parent 710cd4b commit 0c6dad2
Show file tree
Hide file tree
Showing 24 changed files with 1,149 additions and 423 deletions.
10 changes: 10 additions & 0 deletions templates/boilerplate/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: 2022-2023 TII (SSRC) and the Ghaf contributors
#
# SPDX-License-Identifier: CC-BY-SA-4.0
# SPDX-License-Identifier: CC0-1.0

result*
ghaf-host.qcow2
.direnv/
.idea
linux-*/
23 changes: 23 additions & 0 deletions templates/boilerplate/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2023 Technology Innovation Institute (TII)
# SPDX-FileCopyrightText: 2020-2023 Eelco Dolstra and the flake-compat contributors
#
# SPDX-License-Identifier: MIT
# This file originates from:
# https://github.com/nix-community/flake-compat
# This file provides backward compatibility to nix < 2.4 clients
{system ? builtins.currentSystem}: let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);

inherit (lock.nodes.flake-compat.locked) owner repo rev narHash;

flake-compat = fetchTarball {
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz";
sha256 = narHash;
};

flake = import flake-compat {
inherit system;
src = ./.;
};
in
flake.defaultNix
Loading

0 comments on commit 0c6dad2

Please sign in to comment.