added nixpkgs-small for the servers
This commit is contained in:
19
flake.nix
19
flake.nix
@@ -2,7 +2,8 @@
|
||||
description = "JawZ NixOS flake setup";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nixpkgsC.url = "github:nixos/nixpkgs?rev=05bbf675397d5366259409139039af8077d695ce";
|
||||
nixpkgs-small.url = "github:nixos/nixpkgs?ref=nixos-unstable-small";
|
||||
nixpkgs-chrome.url = "github:nixos/nixpkgs?rev=05bbf675397d5366259409139039af8077d695ce";
|
||||
ucodenix.url = "github:e-tho/ucodenix";
|
||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
@@ -37,12 +38,14 @@
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs = makePkgs inputs.nixpkgs;
|
||||
pkgsC = makePkgs inputs.nixpkgsC;
|
||||
overlays = [ (import ./overlay.nix { inherit pkgs pkgsC; }) ];
|
||||
createConfig = name: {
|
||||
pkgs-small = makePkgs inputs.nixpkgs-small;
|
||||
pkgs-chrome = makePkgs inputs.nixpkgs-chrome;
|
||||
overlays = [ (import ./overlay.nix { inherit pkgs pkgs-chrome; }) ];
|
||||
createConfig = name: packageSet: {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
pkgs = packageSet;
|
||||
};
|
||||
modules = [
|
||||
(_: { nixpkgs.overlays = overlays; })
|
||||
@@ -53,12 +56,12 @@
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit lib pkgs;
|
||||
inherit lib;
|
||||
formatter = pkgs.alejandra;
|
||||
nixosConfigurations = {
|
||||
workstation = lib.nixosSystem (createConfig "workstation");
|
||||
miniserver = lib.nixosSystem (createConfig "miniserver");
|
||||
server = lib.nixosSystem (createConfig "server");
|
||||
workstation = lib.nixosSystem (createConfig "workstation" pkgs);
|
||||
miniserver = lib.nixosSystem (createConfig "miniserver" pkgs-small);
|
||||
server = lib.nixosSystem (createConfig "server" pkgs-small);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user