nixosConfig: specialArgs = "inputs" -> "{inherit inputs;}"

This commit is contained in:
2024-07-13 10:04:02 -04:00
parent 5fed071e2f
commit be0b31c429
3 changed files with 6 additions and 8 deletions

View File

@@ -24,7 +24,7 @@
nixosConfigurations = { nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem { nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = { inherit inputs; };
modules = modules =
[ [
({ config, pkgs, ... }: { ({ config, pkgs, ... }: {
@@ -39,7 +39,7 @@
}; };
universedesktop = nixpkgs.lib.nixosSystem { universedesktop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = { inherit inputs; };
modules = modules =
[ [
({ config, pkgs, ... }: { ({ config, pkgs, ... }: {
@@ -52,9 +52,7 @@
}; };
darwinConfigurations."UniverseAir" = nix-darwin.lib.darwinSystem { darwinConfigurations."UniverseAir" = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
specialArgs = { specialArgs = { inherit inputs; };
inputs = inputs;
};
modules = [ modules = [
./machines/universeair/configuration.nix ./machines/universeair/configuration.nix
({ config, pkgs, ... }: { ({ config, pkgs, ... }: {

View File

@@ -2,9 +2,9 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ lib, config, pkgs, nixpkgs, ... }: { { lib, config, pkgs, inputs, ... }: {
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
nix.registry.nixpkgs.flake = nixpkgs; nix.registry.nixpkgs.flake = inputs.nixpkgs;
# Allow user-mode qemu for running riscv64 binaries # Allow user-mode qemu for running riscv64 binaries
# boot.binfmt.emulatedSystems = [ "riscv64-linux" ]; # boot.binfmt.emulatedSystems = [ "riscv64-linux" ];

View File

@@ -1,4 +1,4 @@
{ lib, config, pkgs, nixpkgs, ... }: { { lib, config, pkgs, ... }: {
nixpkgs.overlays = [(self: super: rec { nixpkgs.overlays = [(self: super: rec {
# Discord fix # Discord fix
discord = super.discord.override { discord = super.discord.override {