formatting and hooks
This commit is contained in:
1 parent
7d5ddd9013
commit
2d956525cc
15 files changed
+146
-65
No files matched your search
@@ -193,6 +193,7 @@ in
|
||||
code-cursor-fhs
|
||||
nix-prefetch
|
||||
orca-slicer
|
||||
devcontainer
|
||||
|
||||
# Run macos apps
|
||||
darling-dmg
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "xhci_pci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
@@ -10,42 +11,48 @@
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/sdb"; # install GRUB to MBR
|
||||
enable = true;
|
||||
device = "/dev/sdb"; # install GRUB to MBR
|
||||
efiSupport = false;
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/5bf4a352-412f-47e1-9455-68f3aa629722";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/5bf4a352-412f-47e1-9455-68f3aa629722";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@root" "compress=zstd" "noatime" ];
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/ccc80fd2-b38b-412b-9988-12a3194a5b57";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/ccc80fd2-b38b-412b-9988-12a3194a5b57";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/var" =
|
||||
{ device = "/dev/disk/by-uuid/5bf4a352-412f-47e1-9455-68f3aa629722";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/5bf4a352-412f-47e1-9455-68f3aa629722";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "subvol=@var" "noatime" ];
|
||||
};
|
||||
|
||||
fileSystems."/nix" =
|
||||
{ device = "/dev/disk/by-uuid/8cd6e560-4db9-4cf1-8048-27a7c6308965";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/8cd6e560-4db9-4cf1-8048-27a7c6308965";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "subvol=@nix" "noatime" ];
|
||||
};
|
||||
|
||||
fileSystems."/home" =
|
||||
{ device = "/dev/disk/by-uuid/6f4b2adc-5818-41ea-a4ba-720fb96b8f98";
|
||||
{
|
||||
device = "/dev/disk/by-uuid/6f4b2adc-5818-41ea-a4ba-720fb96b8f98";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "subvol=@home" "noatime" ];
|
||||
};
|
||||
|
||||
fileSystems."/data/fourTerra" =
|
||||
{ device = "/dev/sde1";
|
||||
{
|
||||
device = "/dev/sde1";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "subvol=@data" "noatime" ];
|
||||
};
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
ports = {
|
||||
nixServe = 5000;
|
||||
lockdPort = 4001;
|
||||
mountdPort = 4002;
|
||||
statdPort = 4000;
|
||||
};
|
||||
openPorts = builtins.attrValues ports;
|
||||
ports = {
|
||||
nixServe = 5000;
|
||||
lockdPort = 4001;
|
||||
mountdPort = 4002;
|
||||
statdPort = 4000;
|
||||
};
|
||||
openPorts = builtins.attrValues ports;
|
||||
in
|
||||
{
|
||||
skyg = {
|
||||
|
||||
+8
-8
@@ -11,7 +11,7 @@ let
|
||||
comfyui = 8188;
|
||||
};
|
||||
openPorts = [
|
||||
ports.ollama
|
||||
ports.ollama
|
||||
ports.tabby
|
||||
ports.fastWhisper
|
||||
ports.piper
|
||||
@@ -143,11 +143,11 @@ in
|
||||
|
||||
environmentVariables = {
|
||||
# Stability fix — SDMA is buggy on Strix Halo unified memory
|
||||
HSA_ENABLE_SDMA = "0";
|
||||
HSA_ENABLE_SDMA = "0";
|
||||
# Flash attention for better performance
|
||||
OLLAMA_FLASH_ATTENTION = "1";
|
||||
# Keep models loaded
|
||||
OLLAMA_KEEP_ALIVE = "24h";
|
||||
OLLAMA_KEEP_ALIVE = "24h";
|
||||
};
|
||||
};
|
||||
hardware.graphics.enable = true;
|
||||
@@ -175,11 +175,11 @@ in
|
||||
streaming = true;
|
||||
};
|
||||
faster-whisper.servers.todd = {
|
||||
enable = true;
|
||||
uri = "tcp://0.0.0.0:${toString ports.fastWhisper}";
|
||||
model = "tiny.en";
|
||||
language = "en";
|
||||
device = "auto";
|
||||
enable = true;
|
||||
uri = "tcp://0.0.0.0:${toString ports.fastWhisper}";
|
||||
model = "tiny.en";
|
||||
language = "en";
|
||||
device = "auto";
|
||||
};
|
||||
};
|
||||
virtualisation.docker = {
|
||||
|
||||
@@ -53,7 +53,7 @@ in
|
||||
openFirewall = true;
|
||||
port = ports.audiobookshelf;
|
||||
configDir = "/mnt/Data/audiobookshelf/config";
|
||||
metadtaDir = "/mnt/Data/audiobookshelf/metadata";
|
||||
metadataDir = "/mnt/Data/audiobookshelf/metadata";
|
||||
};
|
||||
};
|
||||
services.dockerRegistry = {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
openPorts = [
|
||||
openPorts = [
|
||||
# nfs
|
||||
111
|
||||
2049
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
# Networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Skyg Settings
|
||||
# Skyg Settings
|
||||
skyg = {
|
||||
user.enable = true;
|
||||
nixos.common = {
|
||||
@@ -26,7 +26,7 @@
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Disk tools
|
||||
parted
|
||||
gparted # GUI partitioner
|
||||
gparted # GUI partitioner
|
||||
cryptsetup
|
||||
btrfs-progs
|
||||
dosfstools
|
||||
|
||||
Reference in new issue
Block a user