forked from colonelpanic/dotfiles
[NixOS] Move nixified config into importable file
This commit is contained in:
parent
69b33ce1ad
commit
9f6816ffd0
@ -1,8 +1,9 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../full.nix
|
||||
../kat.nix
|
||||
../nixified.ai.nix
|
||||
];
|
||||
|
||||
networking.hostName = "nixquick";
|
||||
|
@ -3,21 +3,13 @@
|
||||
{
|
||||
imports = [
|
||||
../full.nix
|
||||
inputs.nixified-ai.nixosModules.invokeai
|
||||
../nixified.ai.nix
|
||||
];
|
||||
|
||||
services.invokeai = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
nsfwChecker = false;
|
||||
package = inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia;
|
||||
};
|
||||
|
||||
networking.hostName = "ryzen-shine";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
linuxPackages_latest.perf
|
||||
inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
16
nixos/nixified.ai.nix
Normal file
16
nixos/nixified.ai.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{ inputs, config }: {
|
||||
imports = [
|
||||
inputs.nixified-ai.nixosModules.invokeai
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia
|
||||
];
|
||||
|
||||
services.invokeai = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
nsfwChecker = false;
|
||||
package = inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user