-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
112 lines (103 loc) · 2.92 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
104
105
106
107
108
109
110
111
112
{
description = "MerrinX Flake";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Home manager
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Utilities for building our flake
flake-utils.url = "github:numtide/flake-utils";
# Extra flakes for modules, packages, etc
hardware.url = "github:nixos/nixos-hardware"; # Convenience modules for hardware-specific quirks
nur.url = "github:nix-community/NUR"; # User contributed pkgs and modules
nix-colors.url = "github:misterio77/nix-colors"; # Color schemes for usage with home-manager
impermanence.url = "github:riscadoa/impermanence"; # Utilities for opt-in persistance
agenix.url = "github:ryantm/agenix"; # Secrets management
# Hyprland
hyprland.url = "github:hyprwm/hyprland";
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
# Scramgit
scramgit.url = "github:gako358/scram";
nvimFlake.url = "github:gako358/neovim";
};
outputs = {
self,
nixpkgs,
home-manager,
nix-colors,
...
} @ inputs: let
inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib;
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = f: lib.genAttrs systems (system: f pkgsFor.${system});
pkgsFor = lib.genAttrs systems (system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
});
in {
inherit lib;
overlays = {
default = import ./overlay {inherit inputs outputs;};
};
templates = import ./templates;
packages = forEachSystem (pkgs: import ./pkgs {inherit pkgs;});
devShells = forEachSystem (pkgs:
import ./shell.nix {
inherit pkgs;
buildInputs = with pkgs; [
];
});
nixosConfigurations = {
terangreal = lib.nixosSystem {
specialArgs = {
inherit inputs outputs;
};
modules = [
./system
./hosts/terangreal
];
};
tuathaan = lib.nixosSystem {
specialArgs = {
inherit inputs outputs;
};
modules = [
./system
./hosts/tuathaan
];
};
};
homeConfigurations = {
"merrinx@terangreal" = lib.homeManagerConfiguration {
pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs nix-colors;
hidpi = true;
};
modules = [
./home
];
};
"merrinx@tuathaan" = lib.homeManagerConfiguration {
pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = {
inherit inputs outputs nix-colors;
hidpi = false;
};
modules = [
./home
];
};
};
};
}