removed small channel logic, declared inputs follows
This commit is contained in:
57
flake.nix
57
flake.nix
@@ -2,14 +2,34 @@
|
||||
description = "JawZ NixOS flake setup";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nixpkgs-small.url = "github:nixos/nixpkgs?ref=nixos-unstable-small";
|
||||
nur.url = "github:nix-community/nur";
|
||||
ucodenix.url = "github:e-tho/ucodenix";
|
||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
jawz-scripts.url = "git+ssh://git@gitlab.com/CaptainJawZ/scripts-flake.git";
|
||||
nur = {
|
||||
url = "github:nix-community/nur";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
ucodenix = {
|
||||
url = "github:e-tho/ucodenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-gaming = {
|
||||
url = "github:fufexan/nix-gaming";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
hyprland = {
|
||||
url = "github:hyprwm/Hyprland";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
jawz-scripts = {
|
||||
url = "git+ssh://git@gitlab.com/CaptainJawZ/scripts-flake.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
@@ -17,25 +37,18 @@
|
||||
let
|
||||
inherit (self) outputs;
|
||||
system = "x86_64-linux";
|
||||
makePkgs =
|
||||
repo:
|
||||
import repo {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
pkgs = import inputs.nixpkgs {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
overlayFile = import ./overlay.nix { inherit pkgs; };
|
||||
lib = inputs.nixpkgs.lib // inputs.home-manager.lib;
|
||||
createConfig =
|
||||
name:
|
||||
let
|
||||
useGUI = name == "workstation";
|
||||
nixpkgsSelect = if useGUI then inputs.nixpkgs else inputs.nixpkgs-small;
|
||||
pkgs = nixpkgsSelect |> makePkgs;
|
||||
overlayFile = import ./overlay.nix { inherit pkgs; };
|
||||
lib = nixpkgsSelect.lib // inputs.home-manager.lib;
|
||||
in
|
||||
lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
inherit inputs outputs pkgs;
|
||||
};
|
||||
modules = [
|
||||
{ nixpkgs.overlays = [ overlayFile ]; }
|
||||
|
||||
Reference in New Issue
Block a user