diff --git a/flake.nix b/flake.nix index 50879aa..4952839 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,6 @@ ... } @ inputs: let system = "x86_64-linux"; - lib = nixpkgs.lib; mkConf = import ./lib/mkconf.nix; user = "tristan"; diff --git a/hardware/zenix.nix b/hardware/zenix.nix index c1ec13a..3dfb5a8 100644 --- a/hardware/zenix.nix +++ b/hardware/zenix.nix @@ -65,6 +65,8 @@ networking.useDHCP = lib.mkDefault true; # networking.interfaces.enp5s0.useDHCP = lib.mkDefault true; + networking.networkmanager.insertNameservers = [ "1.1.1.1" "1.0.0.1" ]; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/lib/home.nix b/lib/home.nix index 2f9ec88..1389ac1 100644 --- a/lib/home.nix +++ b/lib/home.nix @@ -4,6 +4,7 @@ work ? false, displays ? [], userName, + inputs, ... }: { config, diff --git a/lib/mkconf.nix b/lib/mkconf.nix index 491cdfd..818e2e6 100644 --- a/lib/mkconf.nix +++ b/lib/mkconf.nix @@ -9,7 +9,7 @@ name: { userName, ... }: -nixpkgs.lib.nixosSystem rec { +nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; inherit system;