-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
34 lines (33 loc) · 1.02 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
{
# This is a specific hash in 23.05 to avoid building stuff like firefox,
# since hydra didn't do that yet as of when I'm writing this.
# Should be reverted to 23.05 someday.
inputs.nixpkgs = {
url = "github:NixOS/nixpkgs?rev=2283bf968f3b6a2f100d81fb43db6d91f6aea706";
};
inputs.home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager, ... }: {
nixosModules.default = {
imports = [
home-manager.nixosModules.home-manager
./system/options.nix
./system/configuration.nix
./system/home.nix
];
};
nixosConfigurations.installer-x86_64-linux = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit nixpkgs home-manager;
talentnix = self;
};
modules = [
./installer/iso.nix
];
};
packages.x86_64-linux.installer-iso = self.nixosConfigurations.installer-x86_64-linux.config.system.build.isoImage;
};
}