-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
90 lines (80 loc) · 2.32 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
{
description = "System managing flake";
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
nixos-unstable-pinned.url = "github:nixos/nixpkgs/ac35b104800bff9028425fec3b6e8a41de2bbfff";
home-manager = {
url = "github:nix-community/home-manager/";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:wadsaek/nixvim/";
inputs.nixpkgs.follows = "nixpkgs";
};
cosmos = {
url = "git+http://codeberg.org/ext0l/cosmos.git";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix.url = "github:danth/stylix";
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
xremap-flake.url = "github:xremap/nix-flake";
};
outputs =
{
nixpkgs,
home-manager,
flake-utils,
...
}@inputs:
flake-utils.lib.eachDefaultSystemPassThrough (
system:
let
pkgs = import nixpkgs (
import ./nixpkgs.nix {
inherit inputs system;
}
);
mkNixosConfiguration =
modules:
nixpkgs.lib.nixosSystem {
specialArgs = {
inherit inputs system;
};
modules = modules ++ [
inputs.stylix.nixosModules.stylix
inputs.cosmos.nixosModules.default
];
};
in
{
nixosConfigurations = {
Esther-g3 = mkNixosConfiguration [ ./machines/g3/configuration.nix ];
Esther-tuf = mkNixosConfiguration [ ./machines/tuf/configuration.nix ];
};
homeConfigurations = {
wadsaek = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit (inputs) nixvim;
inherit inputs;
};
modules = [
inputs.stylix.homeManagerModules.stylix
./users/wadsaek/home.nix
];
};
};
formatter.${system} = pkgs.nixfmt-rfc-style;
}
);
}