-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
124 lines (117 loc) · 3.94 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
description = "marijanp's NixOS system configurations";
nixConfig = {
extra-substituters = [
"https://smos.cachix.org"
"https://feedback.cachix.org"
];
extra-trusted-public-keys = [
"smos.cachix.org-1:YOs/tLEliRoyhx7PnNw36cw2Zvbw5R0ASZaUlpUv+yM="
"feedback.cachix.org-1:8PNDEJ4GTCbsFUwxVWE/ulyoBMDqqL23JA44yB0j1jI="
];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
agenix.inputs.home-manager.follows = "home-manager";
smos.url = "github:NorfairKing/smos";
smos.inputs.home-manager.follows = "home-manager";
feedback.url = "github:norfairking/feedback";
};
outputs = inputs@{ nixpkgs, nixos-hardware, home-manager, agenix, ... }: {
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations = {
split = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
nixos-hardware.nixosModules.common-pc-ssd
./machines/split/hardware-configuration.nix
./users/marijan/base.nix
./environments/work.nix
./services/yubikey.nix
./services/printing.nix
./services/prometheus.nix
agenix.nixosModules.age
home-manager.nixosModules.home-manager
{
system.stateVersion = "24.11";
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users.marijan = {
imports = [
./users/marijan/home.nix
./dotfiles/work.nix
];
};
};
}
];
specialArgs = { inherit inputs; hostName = "split"; };
};
splitpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.lenovo-thinkpad-z13-gen1
./machines/splitpad/hardware-configuration.nix
./users/marijan/base.nix
./environments/work.nix
./services/yubikey.nix
./services/printing.nix
agenix.nixosModules.age
home-manager.nixosModules.home-manager
{
system.stateVersion = "24.11";
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs; };
users.marijan = {
imports = [
./users/marijan/home.nix
./dotfiles/work.nix
];
};
};
}
];
specialArgs = { inherit inputs; hostName = "splitpad"; };
};
splitberry = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
nixos-hardware.nixosModules.raspberry-pi-4
./machines/splitberry/hardware-configuration.nix
./machines/splitberry/networking.nix
./users/marijan/base.nix
./environments/common.nix
./services/prometheus.nix
{
system.stateVersion = "24.11";
services.tailscale.enable = true;
}
];
specialArgs = { inherit inputs; hostName = "splitberry"; };
};
};
homeConfigurations = {
splitbook = home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages."x86_64-darwin";
modules = [
./machines/macbook/home.nix
{
home.stateVersion = "24.11";
}
];
};
};
};
}