Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
91 lines (79 loc) · 2.21 KB
/
Copy pathflake.nix
File metadata and controls
91 lines (79 loc) · 2.21 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
{
description = "Nix with flakes";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-26.05-darwin";
fancontrol-gui.url = "github:Maldela/fancontrol-gui";
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser.url = "github:0xc000022070/zen-browser-flake";
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
sops-nix.url = "github:Mic92/sops-nix";
dot-secrets = {
url = "git+ssh://git@codeberg.org/hest/dot-secrets.git";
flake = false;
};
# TODO https://github.com/cachix/git-hooks.nix?tab=readme-ov-file
pre-commit-hooks.url = "github:cachix/git-hooks.nix";
};
outputs = {
self,
nixpkgs,
darwin,
home-manager,
zen-browser,
sops-nix,
fancontrol-gui,
...
} @ inputs: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./modules/linux/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [
sops-nix.homeManagerModules.sops
];
users.hest = import ./home/linux.nix;
extraSpecialArgs = {
inherit inputs;
system = "x86_64-linux";
};
};
}
];
};
darwinConfigurations.mbp = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./modules/darwin/system.nix
./modules/darwin/apps.nix
home-manager.darwinModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
sharedModules = [
sops-nix.homeManagerModules.sops
];
users.hest = import ./home/darwin.nix;
extraSpecialArgs = {
inherit inputs;
system = "aarch64-darwin";
};
};
}
];
};
};
}