Skip to content

Commit

Permalink
overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
dezren39 committed Jul 23, 2024
1 parent fd13f07 commit 5fd3592
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
18 changes: 16 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,29 @@
];};
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
lib
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;};
Expand Down Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion hosts/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
nixos = outputs.lib.nixosSystem {
modules = (import ./modules) { inherit inputs outputs; };
#overlays = overlays;
specialArgs = { inherit inputs outputs; };
};
}
9 changes: 1 addition & 8 deletions hosts/nixos/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5fd3592

Please sign in to comment.