diff --git a/flake.nix b/flake.nix index ba9234f8..0cc90b2b 100755 --- a/flake.nix +++ b/flake.nix @@ -154,7 +154,19 @@ ];}; in rec { - inherit + inherit # all let vars should be added here. \/ \/ +# let self = builtins.trace self.outPath { } // { outPath = ./.; }; in self #https://github.com/NixOS/nix/issues/8300#issuecomment-1537501849 +# self +# .\#self.inputs +# .\#self.lastModifiedDate +# .\#self.outPath +# .\#self.packages +# .\#self.sourceInfo +# .\#self.lastModified +# .\#self.narHash +# .\#self.outputs +# .\#self.self +# .\#self._type stateVersion system supportedSystems @@ -162,8 +174,9 @@ forEachSystem pkgsFor overlays - ; # all let vars should be added here. + ; # /\ all let vars should be added here. /\ /\ nixosConfigurations = (import ./hosts) { inherit inputs; outputs = self.outputs; }; +# TODO: rootPath = ./.; # self.outPath # builtins.path # nixosModules = import ./modules/nixos; # homeManagerModules = import ./modules/home-manager; # overlays = import ./overlays {inherit inputs outputs;}; @@ -232,6 +245,7 @@ ]; use-xdg-base-directories = true; builders-use-substitutes = true; +# trusted-users = [ "root" "@wheel" ]; trusted-users = [ "root" ]; substituters = [ "https://cache.nixos.org" diff --git a/hosts/nixos/default.nix b/hosts/nixos/default.nix index f3796315..261b2caa 100644 --- a/hosts/nixos/default.nix +++ b/hosts/nixos/default.nix @@ -2,7 +2,6 @@ { nixos = outputs.lib.nixosSystem { modules = (import ./modules) { inherit inputs outputs; }; - #overlays = overlays; specialArgs = { inherit inputs outputs; }; }; } diff --git a/hosts/nixos/modules/default.nix b/hosts/nixos/modules/default.nix index d8dd94a3..8b3a2395 100644 --- a/hosts/nixos/modules/default.nix +++ b/hosts/nixos/modules/default.nix @@ -39,14 +39,7 @@ let #nix-topology.nixosModules.default { nixpkgs = { - - overlays = [ - # zig-overlay.overlays.default - #alejandra.overlay - #nix-software-center.overlay - inputs.vim.overlay.x86_64-linux # .${system} - #nix-topology.overlays.default - ]; # overlays; # are overlays needed in home manager? document which/why? + overlays = outputs.overlays.${outputs.system}; config = { #allowUnfree = true;