-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
166 lines (150 loc) · 5.51 KB
/
flake.nix
File metadata and controls
166 lines (150 loc) · 5.51 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
description = ''
not A very basic flake
Forget everything you know about nix, this is just a framework to configure apps and dotfiles.
'';
# Outputs are what this flake provides, such as pkgs and system configurations
outputs =
# Inputs are at the bottom to easy of readability
inputs@{
self,
nixpkgs,
nixpkgs-unstable,
nixpkgs-latest,
home-manager,
...
}:
# let in notation to declare local variables for output scope
let
linuxSystem = "x86_64-linux";
home-version = "25.11";
nixpkgs-version = "25.11";
mkPkgsFor = system: {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
latest = import nixpkgs-latest {
inherit system;
config.allowUnfree = true;
};
};
linux = mkPkgsFor linuxSystem;
inherit (linux) pkgs unstable latest;
specialArgsBase = {
inherit
nixpkgs-version
home-version
unstable
inputs
latest
;
};
in
{
# homeConfigurations.${username}@${system}
# is a standalone home manager configuration for a user and system architecture
# ./bin/rebuild for how to apply the flake
homeConfigurations =
let
mkLinuxHomeConfigFor = username: {
"${username}@${linuxSystem}" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = specialArgsBase // {
inherit username;
isNixOS = false;
};
modules = [ ./users/${username}/home.nix ];
};
};
in
mkLinuxHomeConfigFor "lucas.zanoni";
# nixosConfigurations.${username} is a NixOS system configuration for a user
# ./bin/rebuild for how to apply
nixosConfigurations =
let
username = "zanoni";
specialArgs = specialArgsBase // {
inherit username;
isNixOS = true;
};
in
{
"${username}" = nixpkgs.lib.nixosSystem {
inherit specialArgs;
system = linuxSystem;
modules = [
./hosts/dellg15
./users/${username}/nixos.nix
home-manager.nixosModules.home-manager
(import ./users/${username}/nixos-home-config.nix)
];
};
};
homeManagerModules = import ./flake/home-manager-modules.nix;
checks.${linuxSystem} = import ./tests/nix-checks {
inherit
pkgs
inputs
self
nixpkgs-version
home-version
;
inherit (nixpkgs) lib;
};
};
# Inputs are used to declare package definitions and modules to fetch from the internet
inputs = {
# For stable packages definitions
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
# For packages not yet in nixpkgs
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# For latest bleeding edge packages - daily* updated with: $ nix flake update nixpkgs-latest
nixpkgs-latest.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-25.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Tag-pinned — keep own nixpkgs (incompatible or untested with ours)
tui-notifier.url = "github:castrozan/tui-notifier/1.0.1";
systemd-manager-tui.url = "github:matheus-git/systemd-manager-tui";
systemd-manager-tui.inputs.nixpkgs.follows = "nixpkgs";
readItNow-rc.url = "github:castrozan/readItNow-rc/1.1.0";
opencode.url = "github:anomalyco/opencode/v1.3.8";
devenv.url = "github:cachix/devenv/v1.11.2";
bluetui.url = "github:castrozan/bluetui/v0.9.1";
hyprland.url = "github:hyprwm/Hyprland/v0.54.3";
# Own forks — follow nixpkgs (tested, no version-sensitive deps)
cbonsai.url = "github:castrozan/cbonsai";
cbonsai.inputs.nixpkgs.follows = "nixpkgs";
cmatrix.url = "github:castrozan/cmatrix";
cmatrix.inputs.nixpkgs.follows = "nixpkgs";
tuisvn.url = "github:castrozan/tuisvn";
tuisvn.inputs.nixpkgs.follows = "nixpkgs";
install-nothing.url = "github:castrozan/install-nothing";
install-nothing.inputs.nixpkgs.follows = "nixpkgs";
openclaw-mesh.url = "github:castrozan/openclaw-mesh";
openclaw-mesh.inputs.nixpkgs.follows = "nixpkgs";
lazygit.url = "github:Castrozan/lazygit";
lazygit.inputs.nixpkgs.follows = "nixpkgs";
viu.url = "github:viu-media/viu";
viu.inputs.nixpkgs.follows = "nixpkgs";
voice-pipeline.url = "github:castrozan/voice-pipeline";
voice-pipeline.inputs.nixpkgs.follows = "nixpkgs";
# Well-maintained, nixpkgs-agnostic
nixgl.url = "github:nix-community/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
# Tracks master for nullptr guards and scene-graph fixes landed after v0.2.1.
# See .config/quickshell/CRASHES.md for the incident log and update cadence.
quickshell.url = "git+https://git.outfoxxed.me/quickshell/quickshell?ref=master";
quickshell.inputs.nixpkgs.follows = "nixpkgs-unstable";
# Third-party — keep own nixpkgs
voxtype.url = "github:peteonrails/voxtype";
whisp-away.url = "github:madjinn/whisp-away";
google-workspace-cli.url = "github:googleworkspace/cli";
};
}