-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
103 lines (93 loc) · 2.69 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
103
{
description = "nixos";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-doom-emacs = {
url = "github:nix-community/nix-doom-emacs";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
declarative-cachix.url = "github:jonascarpay/declarative-cachix";
hosts = {
url = "github:StevenBlack/hosts";
flake = false;
};
frecently = {
url = "github:jonascarpay/frecently/preserve-index";
inputs.nixpkgs.follows = "nixpkgs";
};
dmmono = {
url = "github:jonascarpay/dm-mono-patched";
inputs.nixpkgs.follows = "nixpkgs";
};
# replaced by nix-index?
# programs-db = {
# url = "github:binplz/programs.sqlite";
# flake = false;
# };
adaptive-lighting = {
url = "github:basnijholt/adaptive-lighting";
flake = false;
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
monolog = {
url = "github:jonascarpay/monolog";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs:
let
mkNixosSystem = { system, module }: inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [ module ];
specialArgs.unstable = import inputs.unstable { inherit system; };
specialArgs.inputs = inputs;
};
mkDarwinSystem = { system, module }: inputs.nix-darwin.lib.darwinSystem {
modules = [
module
];
specialArgs.unstable = import inputs.unstable { inherit system; };
specialArgs.inputs = inputs;
};
in
{
homeManagerModules = {
home = import ./home;
desktop = import ./desktop;
vim = import ./home/vim;
};
darwinConfigurations.bagel = mkDarwinSystem {
system = "aarch64-darwin";
module = ./machines/bagel;
};
nixosConfigurations.norf = mkNixosSystem {
system = "x86_64-linux";
module = ./machines/norf;
};
nixosConfigurations.dumpling = mkNixosSystem {
system = "aarch64-linux";
module = ./machines/dumpling;
};
nixosConfigurations.onigiri = mkNixosSystem {
system = "aarch64-linux";
module = ./machines/onigiri;
};
nixosConfigurations.mochi = mkNixosSystem {
system = "x86_64-linux";
module = ./machines/mochi;
};
};
}