-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
executable file
·115 lines (95 loc) · 2.36 KB
/
flake.nix
File metadata and controls
executable file
·115 lines (95 loc) · 2.36 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
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
{
description = "my personal nix cconfig";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs";
};
silicon = {
url = "github:schphe/nixos-apple-silicon/modified";
inputs.nixpkgs.follows = "nixpkgs";
};
manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
persist = {
url = "github:nix-community/impermanence";
};
sops = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
anyrun = {
url = "github:anyrun-org/anyrun";
};
anyrun-cliphist = {
url = "github:wuliuqii/anyrun-plugins";
inputs.nixpkgs.follows = "nixpkgs";
};
doom = {
url = "github:marienz/nix-doom-emacs-unstraightened";
inputs.nixpkgs.follows = "nixpkgs";
};
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
nvim = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
nixcord = {
url = "github:kaylorben/nixcord";
inputs.nixpkgs.follows = "nixpkgs";
};
xremap = {
url = "github:xremap/nix-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
zen = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: let
utilities = import ./util inputs;
globals = {
username = "schphe";
terminal = "kitty";
};
args = {
inherit inputs;
inherit globals;
inherit utilities;
};
host = with inputs; [
manager.nixosModules.default
persist.nixosModules.default
stylix.nixosModules.stylix
sops.nixosModules.default
];
home = with inputs; [
persist.homeManagerModules.default
nixcord.homeManagerModules.default
anyrun.homeManagerModules.default
xremap.homeManagerModules.default
nvim.homeManagerModules.default
doom.homeModule
];
in {
nixosConfigurations = {
macbook = utilities.newHost ./host/macbook
"aarch64-linux" args host home
(with inputs; [
silicon.nixosModules.default
]);
};
inherit (utilities)
overlays
packages;
};
}