Add self (nixos config flake) to registry as "nixos"

Don't know why yet, but could be nice to have int the future. Note
this the whole config flake, rather than just the pinned version of nixpkgs
This commit is contained in:
Evie Litherland-Smith 2024-01-14 14:39:07 +00:00
parent 892cc20fd1
commit 49f4725d9a

View file

@ -13,7 +13,7 @@
}; };
}; };
outputs = { nixpkgs, home-manager, stylix, ... }: outputs = { self, nixpkgs, home-manager, stylix, ... }:
let let
default = { default = {
hostName = "Atlas"; hostName = "Atlas";
@ -70,7 +70,10 @@
auto-optimise-store = true; auto-optimise-store = true;
}; };
channel.enable = true; channel.enable = true;
registry.nixpkgs.flake = nixpkgs; registry = {
nixpkgs.flake = nixpkgs;
nixos.flake = self;
};
gc = { gc = {
automatic = true; automatic = true;
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";