-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
101 lines (81 loc) · 2.4 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
{
description = "kczulko NixOS configuration";
inputs = {
flake-utils-plus.url = "github:gytis-ivaskevicius/flake-utils-plus";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
latest-nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
nur.url = "github:nix-community/NUR";
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nurl = {
url = "github:nix-community/nurl";
};
gsts = {
url = "github:kczulko/gsts/kczulko/add-nix-flake";
};
};
outputs = inputs: with inputs;
let
insecurePkgs = [
"python-2.7.18.8"
];
in
flake-utils-plus.lib.mkFlake {
inherit self inputs;
supportedSystems = [ "x86_64-linux" ];
channelsConfig = {
allowUnfree = true;
permittedInsecurePackages = insecurePkgs;
};
hostDefaults = rec {
system = "x86_64-linux";
channelName = "nixpkgs";
extraArgs = {
latest-nixpkgs = import latest-nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
config.permittedInsecurePackages = insecurePkgs;
};
hmLib = home-manager.lib.hm;
nurl = nurl.packages.${system}.default;
inherit nixpkgs;
};
modules = [
home-manager.nixosModules.home-manager
nur.nixosModules.nur
agenix.nixosModules.default
./secrets/age-secrets.nix
./modules/common.nix
./modules/default-desktop.nix
];
};
sharedOverlays = (import ./overlays { inherit inputs latest-nixpkgs; }) ++ (with inputs; [
gsts.overlays.x86_64-linux
agenix.overlays.default
]);
hosts = {
thinkpad = {
modules = [
nixos-hardware.nixosModules.lenovo-thinkpad-x1
(import ./setups "thinkpad")
./users/kczulko/user-profile.nix
./users/ula/user-profile.nix
];
};
workstation = {
modules = [
nixos-hardware.nixosModules.common-cpu-intel
(import ./setups "workstation")
./users/kczulko/user-profile.nix
];
};
};
};
}