This repository was archived by the owner on Jan 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
63 lines (54 loc) · 1.68 KB
/
flake.nix
File metadata and controls
63 lines (54 loc) · 1.68 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
{
description = "Dotfiles & the magic of the terminal";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
secrets = {
url = "path:./secrets";
flake = false;
};
};
outputs = { self, nixpkgs, secrets ? null, home-manager, ... }:
let
# Use the system from the environment or default to x86_64-linux
system = builtins.currentSystem or "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
data = builtins.fromTOML (builtins.readFile ./data.toml);
in {
homeConfigurations = {
home = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./modules/home.nix ];
extraSpecialArgs = { inherit data secrets; };
};
home-wsl = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./modules/home-wsl.nix ];
extraSpecialArgs = { inherit data secrets; };
};
work = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./modules/work.nix ];
extraSpecialArgs = { inherit data secrets; };
};
server = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./modules/server.nix ];
extraSpecialArgs = { inherit data secrets; };
};
server-fat = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./modules/server-fat.nix ];
extraSpecialArgs = { inherit data secrets; };
};
codespaces = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./modules/codespaces.nix ];
extraSpecialArgs = { inherit data secrets; };
};
};
};
}