added nixpkgs-small for the servers

This commit is contained in:
2024-11-13 17:26:13 -06:00
parent 7dd31a95f4
commit d6450db07e
2 changed files with 45 additions and 25 deletions

View File

@@ -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);
};
};
}