-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
95 lines (80 loc) · 2.79 KB
/
flake.nix
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
87
88
89
90
91
92
93
94
95
{
description = "flake for vegar-nav";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-zoom.url = "nixpkgs/24.05";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
kolide-launcher.url = "github:kolide/nix-agent";
kolide-launcher.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
minimal-tmux.url = "github:niksingh710/minimal-tmux-status";
minimal-tmux.inputs.nixpkgs.follows = "nixpkgs";
# naisdevice.url = "path:/home/vegar/dev/nais/device/";
naisdevice.url = "github:nais/device";
naisdevice.inputs.nixpkgs.follows = "nixpkgs";
nais-cli.url = "github:nais/cli";
nais-cli.inputs.nixpkgs.follows = "nixpkgs";
narc-cli.url = "github:nais/narcos";
narc-cli.inputs.nixpkgs.follows = "nixpkgs";
zen-browser.url = "github:MarceColl/zen-browser-flake";
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
pyproject-nix.url = "github:nix-community/pyproject.nix";
pyproject-nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
kolide-launcher,
naisdevice,
treefmt-nix,
...
} @ inputs: let
system = "x86_64-linux";
treeFmtEval = treefmt-nix.lib.evalModule nixpkgs.legacyPackages.${system} ./treefmt.nix;
in rec {
overlays = import ./overlays {
inherit inputs;
};
nixosConfigurations = {
vegar-nav = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{nixpkgs.overlays = [overlays.additions overlays.modifications];}
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs;
inherit system;
};
home-manager.users.vegar = {
imports = [
./home
];
};
}
(import ./system/kolide.nix {inherit inputs;})
kolide-launcher.nixosModules.kolide-launcher
{
services.naisdevice.enable = true;
environment.systemPackages = [
naisdevice.packages.${system}.naisdevice
inputs.nais-cli.packages.${system}.nais
inputs.narc-cli.packages.${system}.narc
];
}
naisdevice.nixosModules.naisdevice
];
};
};
formatter.x86_64-linux = treeFmtEval.config.build.wrapper;
checks.x86_64-linux.formatting = treeFmtEval.config.build.check self;
};
}