Skip to content
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

configuration.nix NixOS Install #96

Open
Asten-Valentinus opened this issue Jun 25, 2024 · 2 comments
Open

configuration.nix NixOS Install #96

Asten-Valentinus opened this issue Jun 25, 2024 · 2 comments

Comments

@Asten-Valentinus
Copy link

I have found the nix run github:nixified-ai/flake#invokeai-nvidia install method inadequate, as it disappears after running sudo nix-store --optimise.

I am aware that the standard way to install software on NixOS is to add it to the configuration.nix, and while I've gotten partway through the process, I can't find anywhere that tells how to do this with Nixified-AI.

Can you give advice on how to do this? Thanks in advance.

And sorry if this is obvious to other users, I am starting out with NixOS.

System Info: NixOS 24.05 w/ flakes

flake.nix:

{
  description = "System Flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
    nixai.url = "github:nixified-ai/flake/master";
  };

  outputs = { self, nixpkgs, ... }@inputs: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ./configuration.nix
      ];
      specialArgs = { inherit inputs; };
    };
  };
}

configuration.nix:

{ lib, config, options, inputs, pkgs, ... }:

{
  ...
  # What do I put here?
  ...
}
@Airradda
Copy link

Lack of installation and other documentation is long standing issue, see #2 and #26. As of now, to my knowledge, the closet thing and generally the best practice is to use nix build instead, which will build a result folder and pin it to the GC Roots which should prevent it from getting removed.

@Asten-Valentinus
Copy link
Author

Lack of installation and other documentation is long standing issue, see #2 and #26. As of now, to my knowledge, the closet thing and generally the best practice is to use nix build instead, which will build a result folder and pin it to the GC Roots which should prevent it from getting removed.

Thanks! Doing that and testing, it stayed like you said.
Not the neatest solution, but it is way better than nothing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants