ender-ml change, update flake, added tmux config
This commit is contained in:
@@ -10,4 +10,5 @@ AGENTS.md
|
|||||||
opencode.jsonc
|
opencode.jsonc
|
||||||
.agents
|
.agents
|
||||||
.serena
|
.serena
|
||||||
|
.claude
|
||||||
skills-lock.json
|
skills-lock.json
|
||||||
|
|||||||
@@ -76,6 +76,7 @@
|
|||||||
yazi
|
yazi
|
||||||
yt-dlp
|
yt-dlp
|
||||||
zstd
|
zstd
|
||||||
|
pkgs-unstable.herdr
|
||||||
]
|
]
|
||||||
# Desktop-specific packages (Linux desktops and macOS)
|
# Desktop-specific packages (Linux desktops and macOS)
|
||||||
++ lib.optionals (!(hostTypes.isServer hostname)) (with pkgs; [
|
++ lib.optionals (!(hostTypes.isServer hostname)) (with pkgs; [
|
||||||
@@ -178,10 +179,10 @@
|
|||||||
]
|
]
|
||||||
# ender-ml specific
|
# ender-ml specific
|
||||||
++ lib.optionals (hostname == "ender-ml") [
|
++ lib.optionals (hostname == "ender-ml") [
|
||||||
pkgs-unstable.stable-diffusion-cpp-cuda
|
# pkgs-unstable.stable-diffusion-cpp-cuda
|
||||||
(pkgs-unstable.llama-cpp.override {cudaSupport = true;})
|
# (pkgs-unstable.llama-cpp.override {cudaSupport = true;})
|
||||||
pkgs-unstable.witr
|
# pkgs-unstable.witr
|
||||||
pkgs-unstable.comfy-ui-cuda
|
# pkgs-unstable.comfy-ui-cuda
|
||||||
]
|
]
|
||||||
# acheron specific
|
# acheron specific
|
||||||
++ lib.optionals (hostname == "acheron") [
|
++ lib.optionals (hostname == "acheron") [
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Kernel
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
#Kernel
|
#Kernel
|
||||||
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
boot.kernelPackages = pkgs-unstable.linuxKernel.packages.linux_zen;
|
# boot.kernelPackages = pkgs-unstable.linuxKernel.packages.linux_zen;
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
@@ -75,6 +76,15 @@
|
|||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.interfaces.ens18.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "192.168.8.126";
|
||||||
|
prefixLength = 24; # Subnet Mask
|
||||||
|
}
|
||||||
|
];
|
||||||
|
networking.defaultGateway = "192.168.8.1";
|
||||||
|
networking.nameservers = ["192.168.8.1" "1.1.1.1"];
|
||||||
|
|
||||||
# Virtualisation
|
# Virtualisation
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
@@ -109,8 +119,8 @@
|
|||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
|
|
||||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||||
#package = config.boot.kernelPackages.nvidiaPackages.latest;
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
package = pkgs-unstable.linuxKernel.packages.linux_zen.nvidia_x11;
|
# package = pkgs-unstable.linuxKernel.packages.linux_zen.nvidia_x11;
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
@@ -172,49 +182,50 @@
|
|||||||
openssl
|
openssl
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable ollama
|
# # Enable ollama
|
||||||
services.ollama = {
|
# services.ollama = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
host = "0.0.0.0";
|
# host = "0.0.0.0";
|
||||||
openFirewall = true;
|
# openFirewall = true;
|
||||||
package = pkgs.ollama-cuda;
|
# package = pkgs.ollama-cuda;
|
||||||
environmentVariables = {
|
# environmentVariables = {
|
||||||
CUDA_VISIBLE_DEVICES = "0,1";
|
# CUDA_VISIBLE_DEVICES = "0,1";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
services.comfyui = {
|
# services.comfyui = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
enableManager = true;
|
# enableManager = true;
|
||||||
port = 8188;
|
# port = 8188;
|
||||||
openFirewall = true;
|
# openFirewall = true;
|
||||||
listenAddress = "0.0.0.0";
|
# listenAddress = "0.0.0.0";
|
||||||
dataDir = "/home/rogueking/models/comfyui-data";
|
# dataDir = "/home/rogueking/models/comfyui-data";
|
||||||
user = "rogueking";
|
# user = "rogueking";
|
||||||
group = "users";
|
# group = "users";
|
||||||
package = pkgs-unstable.comfy-ui-cuda;
|
# package = pkgs-unstable.comfy-ui-cuda;
|
||||||
#createUser = true; # Use existing user
|
# #createUser = true; # Use existing user
|
||||||
# If dataDir is on a separate mount (NFS, ZFS dataset, etc.):
|
# # If dataDir is on a separate mount (NFS, ZFS dataset, etc.):
|
||||||
# requiresMounts = [ "home-myuser-comfyui\\x2ddata.mount" ];
|
# # requiresMounts = [ "home-myuser-comfyui\\x2ddata.mount" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Enable llama-cpp server
|
# Enable llama-cpp server
|
||||||
services.llama-cpp = {
|
# services.llama-cpp = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
package = pkgs-unstable.llama-cpp.override {cudaSupport = true;};
|
# package = pkgs-unstable.llama-cpp.override {cudaSupport = true;};
|
||||||
model = "/home/rogueking/models";
|
# model = "/home/rogueking/models";
|
||||||
host = "0.0.0.0";
|
# host = "0.0.0.0";
|
||||||
port = 8080;
|
# port = 8080;
|
||||||
# extraFlags = [
|
# # extraFlags = [
|
||||||
# "n-gpu-layers 99"
|
# # "n-gpu-layers 99"
|
||||||
# ];
|
# # ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
users.users.rogueking = {
|
users.users.rogueking = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "rogueking";
|
description = "rogueking";
|
||||||
|
hashedPassword = "$y$j9T$acC7H6j3hHlc9RBftDGvd.$5irPc2XAuYCwDx3lqtcSPEUBY31SGI/ZmcP/t9SbKq0";
|
||||||
extraGroups = ["networkmanager" "wheel" "docker"];
|
extraGroups = ["networkmanager" "wheel" "docker"];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
|
|||||||
@@ -1,21 +1,17 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
imports =
|
||||||
lib,
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
pkgs,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = ["uhci_hcd" "ehci_pci" "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
|
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user