-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
78 lines (76 loc) · 2.22 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
{
description = "Miro's dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager-unstable = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
secrets = {
# This pattern is because the repo is private
# it relies on git being configured with gh auth setup-git
url = "git+https://github.com/mirosval/secrets.git?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
blocklist = {
url = "github:mirosval/unbound-blocklist";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ nixpkgs, nixpkgs-unstable, home-manager, home-manager-unstable, darwin, agenix, secrets, ... }:
let
stateVersion = "24.05";
lib = import ./lib {
inherit nixpkgs nixpkgs-unstable stateVersion inputs darwin home-manager home-manager-unstable secrets agenix;
};
in
{
homeConfigurations.jimbo = lib.homeConfiguration {
system = "aarch64-darwin";
host = "jimbo";
user = "mirosval";
};
nixosConfigurations = {
jimmy = lib.raspberryImage {
system = "aarch64-linux";
host = "jimmy";
user = "miro";
};
leon = lib.raspberryImage {
system = "aarch64-linux";
host = "leon";
user = "miro";
};
butters = lib.linuxSystem {
system = "x86_64-linux";
host = "butters";
user = "miro";
};
};
darwinConfigurations = {
mirosval = lib.darwinSystem {
system = "aarch64-darwin";
host = "mirosval";
user = "mirosval";
};
jimbo = lib.darwinSystem {
system = "aarch64-darwin";
host = "jimbo";
user = "mirosval";
};
};
};
}