Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
86 lines (73 loc) · 1.91 KB
/
Copy pathflake.nix
File metadata and controls
86 lines (73 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
description = "TUIOS - Terminal UI Operating System";
inputs = {
# Our source of packages
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# Allows us to structure the flake with the NixOS module system
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
# Get to the bottom of it
flake-root.url = "github:srid/flake-root";
# Format all the things
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# For preserving compatibility with non-Flake users
flake-compat = {
url = "github:nix-community/flake-compat";
flake = false;
};
# To ensure that checks are run locally to enforce cleanliness
git-hooks-nix = {
url = "github:cachix/git-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
};
};
# Make it quick
nix-fast-build = {
url = "github:Mic92/nix-fast-build";
inputs = {
flake-parts.follows = "flake-parts";
nixpkgs.follows = "nixpkgs";
treefmt-nix.follows = "treefmt-nix";
};
};
# Increased productivity for ephemeral environments
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
debug = false;
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
perSystem =
{
pkgs,
...
}:
let
inherit (pkgs) callPackage;
in
{
packages = {
tuios = callPackage ./tuios.nix { };
default = callPackage ./tuios.nix { };
};
};
imports = [
./nix/flake-module.nix
];
};
}