removed nixpkgs-small, trying env var

This commit is contained in:
2024-11-13 23:33:49 -06:00
parent a689137a11
commit cc4e8b86cd
3 changed files with 15 additions and 42 deletions

View File

@@ -2,7 +2,6 @@
description = "JawZ NixOS flake setup";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
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";
@@ -23,10 +22,7 @@
};
outputs =
{
self,
...
}@inputs:
{ self, ... }@inputs:
let
inherit (self) outputs;
lib = inputs.nixpkgs.lib // inputs.home-manager.lib;
@@ -37,26 +33,21 @@
inherit system;
config.allowUnfree = true;
};
makePkgsMain =
name: makePkgs (if name == "workstation" then inputs.nixpkgs else inputs.nixpkgs-small);
createConfig =
name:
let
pkgs = makePkgsMain name;
pkgs-chrome = makePkgs inputs.nixpkgs-chrome;
in
{
inherit system;
specialArgs = {
inherit inputs outputs pkgs;
};
modules = [
{ nixpkgs.overlays = [ (import ./overlay.nix { inherit pkgs pkgs-chrome; }) ]; }
./hosts/${name}/configuration.nix
inputs.sops-nix.nixosModules.sops
inputs.nixos-cosmic.nixosModules.default
];
pkgs = makePkgs inputs.nixpkgs;
pkgs-chrome = makePkgs inputs.nixpkgs-chrome;
overlayFile = import ./overlay.nix { inherit pkgs pkgs-chrome; };
createConfig = name: {
inherit system;
specialArgs = {
inherit inputs outputs;
};
modules = [
{ nixpkgs.overlays = [ overlayFile ]; }
./hosts/${name}/configuration.nix
inputs.sops-nix.nixosModules.sops
inputs.nixos-cosmic.nixosModules.default
];
};
in
{
inherit lib;