From 519ebbcb693d575c8320364401cce7a0203f295b Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Tue, 5 Dec 2023 07:36:26 +0400 Subject: [PATCH] get rid of system argument; do not set nixpkgs.hostPlatform --- configuration.nix | 3 +-- flake.nix | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0b04ce1..6b2dc7a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, system, ... }: +{ config, pkgs, lib, ... }: { imports = [ ./variables-module.nix @@ -103,7 +103,6 @@ if lib.versionAtLeast pkgs.nix.version "2.15.2" then pkgs.nix.out else pkgs.nixUnstable.out; - nixpkgs.hostPlatform = system; services.journald.extraConfig = "SystemMaxUse=500M"; boot.kernel.sysctl = { "net.ipv4.ip_forward" = 1; # TODO why is it here by default, for VPN only? diff --git a/flake.nix b/flake.nix index 6ea490c..5960ec5 100644 --- a/flake.nix +++ b/flake.nix @@ -12,8 +12,7 @@ outputs = { self, nixpkgs, selfprivacy-api }: { nixosConfigurations-fun = - { system - , hardware-configuration + { hardware-configuration , deployment , userdata , top-level-flake @@ -21,7 +20,6 @@ }: { sp-nixos = nixpkgs.lib.nixosSystem { - specialArgs = { inherit system; }; modules = [ hardware-configuration deployment