-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
64 lines (60 loc) · 1.41 KB
/
flake.nix
File metadata and controls
64 lines (60 loc) · 1.41 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
{
description = "OS Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
hardware.url = "github:nixos/nixos-hardware/master";
lanzaboote = {
url = "github:nix-community/lanzaboote/v1.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
lanzaboote,
...
}:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
pkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
}
);
in
{
nixosModules = {
default = {
imports = [
modules/generic.nix
modules/boot.nix
modules/desktop.nix
# modules/cosmic.nix
# modules/gnome.nix
modules/apps.nix
modules/fonts.nix
modules/networking.nix
modules/audio.nix
modules/dev.nix
lanzaboote.nixosModules.lanzaboote
];
};
};
devShells = forAllSystems (system: {
default = pkgsFor.${system}.mkShellNoCC {
packages = [
pkgsFor.${system}.nixd
self.formatter.${system}
];
};
});
formatter = forAllSystems (system: pkgsFor.${system}.nixfmt-tree);
};
}