Deephack's Hyperland config based on omarchy-nix from Henry Sipp and in turn of course inspired by Omarchy.
1{
2 description = "hyperdeepnix - Base configuration flake";
3 inputs = {
4 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
5 hyprland.url = "github:hyprwm/Hyprland/v0.54.2";
6 nix-colors.url = "github:misterio77/nix-colors";
7 pyprland.url = "github:hyprland-community/pyprland/3.2.0";
8 wiremix.url = "github:tsowell/wiremix";
9 jolt.url = "github:jordond/jolt";
10 home-manager = {
11 url = "github:nix-community/home-manager";
12 inputs.nixpkgs.follows = "nixpkgs";
13 };
14 };
15 outputs =
16 inputs@{
17 self,
18 nixpkgs,
19 pyprland,
20 wiremix,
21 hyprland,
22 nix-colors,
23 home-manager,
24 jolt,
25 }:
26 {
27 nixosModules = {
28 default =
29 {
30 lib,
31 ...
32 }:
33 {
34 imports = [
35 (import ./modules/nixos/default.nix inputs)
36 ];
37
38 options.hyperdeepnix = (import ./config.nix lib).hyperdeepnixOptions;
39 config = {
40 nixpkgs.config.allowUnfree = true;
41
42 nixpkgs.overlays = [
43 (final: prev: {
44 pyprland = pyprland.packages.${final.system}.default;
45 wiremix = wiremix.packages.${final.system}.default;
46 jolt = jolt.packages.${final.system}.default;
47 })
48 ];
49 };
50 };
51
52 };
53
54 homeManagerModules = {
55 default =
56 {
57 lib,
58 osConfig ? { },
59 ...
60 }:
61 {
62 imports = [
63 nix-colors.homeManagerModules.default
64 (import ./modules/home-manager/default.nix inputs)
65 ];
66 options.hyperdeepnix = (import ./config.nix lib).hyperdeepnixOptions;
67 config = lib.mkIf (osConfig ? hyperdeepnix) {
68 hyperdeepnix = osConfig.hyperdeepnix;
69 };
70 };
71 };
72 };
73}