-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage with NixOS Config #10
Comments
@shadowrylander In advance: pardon me if I misunderstood or oversimplified your problem, I just skimmed through. Flakes support a dedicated output type for nixos configurations. The wiki page demonstrates the interface: { self, ... }@inputs:
{
# ...
packages."<system>"."<packagename>" = /* ... */;
nixosConfigurations."<hostname>" = /* ... */ ;
# ...
} You seem to be putting your packages = flake-utils.lib.flattenTree {
nixosConfigurations = let /* ... */ in nixosSystem /* ... */;
}; If if you want your flake to also provide some packages you probably can merge the output of {
# ...
outputs = inputs@{ self, nixpkgs, flake-utils, ... }: (
with flake-utils.lib; eachSystem allSystems (system: let
pkgs = (import nixpkgs {}).legacyPackages.${system};
in rec {
packages = flake-utils.lib.flattenTree {
/* whatever */
}
defaultPackage = packages./* ... */;
})
) // {
nixosConfigurations.siluam = nixosSystem { /* ... */ };
};
} On the side note, for the |
Fair enough! However, the |
Idk, you could take |
If I use Sorry if this is confusing; basically, I'm worried that, instead of a configuration like |
@shadowrylander I'm not sure, I think |
Hmm... Which means the problem is with the usage of |
Hello!
How would I go about using this as a replacement for my
configuration.nix
file, if at all possible? I would like to make sure my config is as pure as possible; here is my current attempt at integratingflake-utils
with myflake.nix
:Thank you kindly for the help!
The text was updated successfully, but these errors were encountered: