mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Pin all flakes to the registy
This commit is contained in:
parent
9548632310
commit
0b0f4c661c
2 changed files with 30 additions and 26 deletions
44
flake.nix
44
flake.nix
|
@ -1,23 +1,5 @@
|
||||||
{
|
let
|
||||||
description = "All my NixOS configurations.";
|
inputsRaw = {
|
||||||
|
|
||||||
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 = {
|
nixSuper = {
|
||||||
url = "github:privatevoid-net/nix-super";
|
url = "github:privatevoid-net/nix-super";
|
||||||
};
|
};
|
||||||
|
@ -71,6 +53,26 @@
|
||||||
url = "github:RGBCube/ThemeNix";
|
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 = {
|
outputs = {
|
||||||
nixSuper,
|
nixSuper,
|
||||||
|
@ -127,7 +129,7 @@
|
||||||
in lib.nixosSystem {
|
in lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
||||||
specialArgs = { inherit inputs ulib upkgs theme; };
|
specialArgs = { inherit inputsRaw inputs ulib upkgs theme; };
|
||||||
modules = [
|
modules = [
|
||||||
homeManager.nixosModules.default
|
homeManager.nixosModules.default
|
||||||
defaultConfiguration
|
defaultConfiguration
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, ulib, upkgs, ... }: with ulib;
|
{ inputsRaw, inputs, lib, ulib, upkgs, ... }: with ulib;
|
||||||
|
|
||||||
systemConfiguration {
|
systemConfiguration {
|
||||||
nix = {
|
nix = {
|
||||||
|
@ -15,10 +15,12 @@ systemConfiguration {
|
||||||
|
|
||||||
package = upkgs.nixSuper;
|
package = upkgs.nixSuper;
|
||||||
|
|
||||||
registry = {
|
registry = (lib.filterAttrs
|
||||||
nixpkgs.flake = inputs.nixpkgs;
|
(name: value: value != {})
|
||||||
default.flake = inputs.nixpkgs;
|
(builtins.mapAttrs
|
||||||
};
|
(name: value: lib.mkIf value.flake or true {
|
||||||
|
flake = inputs.${name};
|
||||||
|
}) inputsRaw)) // { default.flake = inputs.nixpkgs; };
|
||||||
|
|
||||||
settings.experimental-features = [
|
settings.experimental-features = [
|
||||||
"fetch-tree"
|
"fetch-tree"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue