1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Don't do inputsRaw hack

This commit is contained in:
RGBCube 2023-12-14 10:53:56 +03:00
parent 33e3ebd11a
commit 2615d405c8
No known key found for this signature in database
2 changed files with 25 additions and 27 deletions

View file

@ -1,5 +1,23 @@
let
inputsRaw = {
{
description = "All my NixOS configurations.";
nixConfig = {
extra-substituters = ''
https://nix-community.cachix.org/
https://hyprland.cachix.org/
https://cache.privatevoid.net/
https://cache.garnix.io/
'';
extra-trusted-public-keys = ''
nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=
cache.privatevoid.net-1:SErQ8bvNWANeAvtsOESUwVYr2VJynfuc9JRwlzTTkVg=
cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
'';
};
inputs = {
nixSuper = {
url = "github:privatevoid-net/nix-super";
};
@ -53,26 +71,6 @@ let
url = "github:RGBCube/ThemeNix";
};
};
in {
description = "All my NixOS configurations.";
nixConfig = {
extra-substituters = ''
https://nix-community.cachix.org/
https://hyprland.cachix.org/
https://cache.privatevoid.net/
https://cache.garnix.io/
'';
extra-trusted-public-keys = ''
nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=
cache.privatevoid.net-1:SErQ8bvNWANeAvtsOESUwVYr2VJynfuc9JRwlzTTkVg=
cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
'';
};
inputs = inputsRaw;
outputs = {
nixSuper,
@ -129,7 +127,7 @@ in {
in lib.nixosSystem {
inherit system;
specialArgs = { inherit inputsRaw inputs ulib upkgs theme; };
specialArgs = { inherit inputs ulib upkgs theme; };
modules = [
homeManager.nixosModules.default
defaultConfiguration

View file

@ -1,4 +1,4 @@
{ inputsRaw, inputs, lib, ulib, upkgs, ... }: with ulib;
{ inputs, lib, ulib, upkgs, ... }: with ulib;
systemConfiguration {
nix = {
@ -18,9 +18,9 @@ systemConfiguration {
registry = (lib.filterAttrs
(name: value: value != {})
(builtins.mapAttrs
(name: value: lib.mkIf value.flake or true {
flake = inputs.${name};
}) inputsRaw)) // { default.flake = inputs.nixpkgs; };
(name: value: lib.mkIf (value ? "sourceInfo") {
flake = value;
}) inputs)) // { default.flake = inputs.nixpkgs; };
settings.experimental-features = [
"fetch-tree"