-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
37 lines (34 loc) · 1.3 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
{
description = "driverOS";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "github:hyprwm/Hyprland";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
xdg-desktop-portal-hyprland.url = "github:hyprwm/xdg-desktop-portal-hyprland";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
forEachSystem = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
forEachPkgs = f: forEachSystem (sys: f nixpkgs.legacyPackages.${sys});
mkHmConfig = import ./lib/mkHmConfig.nix;
in {
templates = import ./templates;
overlays = import ./overlays { inherit inputs outputs; };
nixosConfigurations = {
# SKIPJACK (Laptop)
skipjack = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./os/skipjack (mkHmConfig ./home/skipjack) ];
};
# PRINCE (Workstation)
prince = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./os/prince (mkHmConfig ./home/prince) ];
};
};
};
}