-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
102 lines (83 loc) · 2.61 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
description = "teatpot's Nix-powered dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs/master";
nur.url = "github:nix-community/nur";
nix-darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# mac-app-util = {
# url = "github:hraban/mac-app-util";
# inputs.nixpkgs.follows = "nixpkgs-unstable";
# };
# TODO: https://github.com/NixOS/nixpkgs/issues/327982
zen-browser = {
url = "github:MarceColl/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
stylix = {
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# vault = {
# url = "git+ssh://[email protected]/imatpot/vault";
# flake = false;
# };
};
outputs = inputs:
let
linuxSystems = [ "x86_64-linux" "aarch64-linux" ];
darwinSystems = [ "x86_64-darwin" "aarch64-darwin" ];
systems = linuxSystems ++ darwinSystems;
in rec {
lib = import ./lib {
inherit inputs;
inherit (inputs.self) outputs;
};
packages = lib.forEachSystem systems (pkgs: rec {
dots = import ./packages/dots.nix { inherit pkgs; };
default = dots;
});
nixosConfigurations.shinobi = lib.mkHost {
system = "x86_64-linux";
hostname = "shinobi";
users = [ "mladen" ];
};
nixosConfigurations.adele = lib.mkHost {
system = "x86_64-linux";
hostname = "adele";
users = [ "mladen" ];
};
darwinConfigurations.mcdonalds = lib.mkHost {
system = "aarch64-darwin";
hostname = "mcdonalds";
users = [ "mladen" ];
};
homeConfigurations.mladen = lib.mkUser { username = "mladen"; };
homeConfigurations."mladen@mcdonalds" = lib.mkUser {
system = "aarch64-darwin";
hostname = "mcdonalds";
username = "mladen";
};
formatter = lib.forEachSystem systems (pkgs: pkgs.nixfmt-classic);
};
}