From 8390184b87dd9337974097c604fd2bc75d7a942e Mon Sep 17 00:00:00 2001 From: Arteims Tosini Date: Tue, 28 May 2024 21:23:12 +0100 Subject: [PATCH] initial commit --- .gitignore | 2 + armv6l.nix | 7 +++ flake.lock | 119 ++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 26 ++++++++++ snips/default.nix | 3 ++ 5 files changed, 157 insertions(+) create mode 100644 .gitignore create mode 100644 armv6l.nix create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 snips/default.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..750baeb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +result +result-* diff --git a/armv6l.nix b/armv6l.nix new file mode 100644 index 0000000..3c7eb64 --- /dev/null +++ b/armv6l.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + nixpkgs.overlays = [(final: prev: { + # Meson wants simd in a test + meson = prev.meson.overrideAttrs (attrs: { doCheck = false; }); + }]; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..d68dd44 --- /dev/null +++ b/flake.lock @@ -0,0 +1,119 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flakey-profile": { + "locked": { + "lastModified": 1712898590, + "narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=", + "owner": "lf-", + "repo": "flakey-profile", + "rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d", + "type": "github" + }, + "original": { + "owner": "lf-", + "repo": "flakey-profile", + "type": "github" + } + }, + "lix": { + "flake": false, + "locked": { + "lastModified": 1714955862, + "narHash": "sha256-REWlo2RYHfJkxnmZTEJu3Cd/2VM+wjjpPy7Xi4BdDTQ=", + "ref": "refs/tags/2.90-beta.1", + "rev": "b6799ab0374a8e1907a48915d3187e07da41d88c", + "revCount": 15501, + "type": "git", + "url": "https://git.lix.systems/lix-project/lix" + }, + "original": { + "ref": "refs/tags/2.90-beta.1", + "type": "git", + "url": "https://git.lix.systems/lix-project/lix" + } + }, + "lix-module": { + "inputs": { + "flake-utils": "flake-utils", + "flakey-profile": "flakey-profile", + "lix": [ + "lix" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1716856858, + "narHash": "sha256-dfNGs2AW/V31nMVeEBSUJCMfT6bZAKJ5qsWgFHWhvUc=", + "ref": "refs/heads/main", + "rev": "38f31ee7c1a60adae58833789dd855c128b056c6", + "revCount": 85, + "type": "git", + "url": "https://git.lix.systems/lix-project/nixos-module" + }, + "original": { + "type": "git", + "url": "https://git.lix.systems/lix-project/nixos-module" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1716509168, + "narHash": "sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "bfb7a882678e518398ce9a31a881538679f6f092", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "lix": "lix", + "lix-module": "lix-module", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..546398c --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + lix = { + url = "git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1"; + flake = false; + }; + lix-module = { + url = "git+https://git.lix.systems/lix-project/nixos-module"; + inputs.lix.follows = "lix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = {nixpkgs, lix-module, ...}: { + nixosConfigurations.snips = nixpkgs.lib.nixosSystem { + system = "armv6l-linux"; + modules = [ + ./armv6l.nix + ./snips + lix-module.nixosModules.default + ]; + }; + }; + +} diff --git a/snips/default.nix b/snips/default.nix new file mode 100644 index 0000000..f1283eb --- /dev/null +++ b/snips/default.nix @@ -0,0 +1,3 @@ +{ pkgs, ... }: { + nix.settings.experimental-features = [ "nix-command" "flakes" ]; +}