removed nixpkgs-small, trying env var
This commit is contained in:
39
flake.nix
39
flake.nix
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user