nilla: init
All checks were successful
/ check (push) Successful in 50s

This commit is contained in:
Nikodem Rabuliński 2025-03-23 11:43:37 +01:00
parent 4f3cac9ff6
commit 03c19b674c
Signed by: nrabulinski
SSH key fingerprint: SHA256:eJRdE3KzMWWk9zrksGEv8+v6F+VqUVR++z2SSPyiL0I
5 changed files with 90 additions and 0 deletions

34
flake.lock generated
View file

@ -1,5 +1,21 @@
{
"nodes": {
"__flake-compat": {
"flake": false,
"locked": {
"lastModified": 1742412704,
"narHash": "sha256-mhazLo8DuZ3c6r5I7hDxxag8ftAM4W0aUjFjQuw8q5c=",
"ref": "refs/heads/main",
"rev": "f7a7752f237bbc59b868058f70cffd3e436b49b7",
"revCount": 69,
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
},
"original": {
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
}
},
"agenix": {
"inputs": {
"darwin": [
@ -510,6 +526,22 @@
"type": "github"
}
},
"nilla": {
"flake": false,
"locked": {
"lastModified": 1742722370,
"narHash": "sha256-MqdseA78bo2M3zfb0mjcBPYU2Qn9CF/KH5LZivWRtB0=",
"owner": "nilla-nix",
"repo": "nilla",
"rev": "b30b5a225843ab649a9b140eb3cbbcc8030a7eaf",
"type": "github"
},
"original": {
"owner": "nilla-nix",
"repo": "nilla",
"type": "github"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
@ -681,6 +713,7 @@
},
"root": {
"inputs": {
"__flake-compat": "__flake-compat",
"agenix": "agenix",
"attic": "attic",
"conduit-src": "conduit-src",
@ -696,6 +729,7 @@
"lix-module": "lix-module",
"mailserver": "mailserver",
"niko-nur": "niko-nur",
"nilla": "nilla",
"nixpkgs": "nixpkgs_2",
"nvidia-patch": "nvidia-patch",
"racket": "racket",

View file

@ -168,6 +168,14 @@
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
__flake-compat = {
url = "git+https://git.lix.systems/lix-project/flake-compat.git";
flake = false;
};
nilla = {
url = "github:nilla-nix/nilla";
flake = false;
};
};
/*

10
inputs.nix Normal file
View file

@ -0,0 +1,10 @@
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
inherit (lock.nodes.__flake-compat.locked) narHash rev url;
flake-compat = builtins.fetchTarball {
url = "${url}/archive/${rev}.tar.gz";
sha256 = narHash;
};
flake = import flake-compat { src = ./.; };
in
flake.inputs

37
nilla.nix Normal file
View file

@ -0,0 +1,37 @@
{
inputs ? import ./inputs.nix,
}:
(import inputs.nilla).create (
{ lib }:
{
config.inputs = builtins.mapAttrs (_: src: {
inherit src;
loader = "raw";
}) inputs;
config.builders.nixpkgs-flake = {
settings.type = lib.types.submodule {
options.args = lib.options.create {
type = lib.types.any;
default.value = { };
};
};
settings.default = { };
build =
pkg:
lib.attrs.generate pkg.systems (
system: inputs.nixpkgs.legacyPackages.${system}.callPackage pkg.package pkg.settings.args
);
};
config.shells.default = {
systems = [ "x86_64-linux" ];
builder = "nixpkgs-flake";
shell =
{ mkShell, hello }:
mkShell {
packages = [ hello ];
};
};
}
)

1
shell.nix Normal file
View file

@ -0,0 +1 @@
(import ./nilla.nix { }).shells.default.result.${builtins.currentSystem}