From 869f9b5db15d7cc4bdf6651960a2bd15209e6ff7 Mon Sep 17 00:00:00 2001 From: tristan Date: Thu, 28 Dec 2023 15:00:23 +0000 Subject: [PATCH] cloudflare --- flake.nix | 1 - hardware/zenix.nix | 2 ++ lib/home.nix | 1 + lib/mkconf.nix | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) 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;