builder: try gpu computing but GPU doesnt support it
This commit is contained in:
parent
a38299888f
commit
84b1a60fea
@ -6,6 +6,23 @@
|
|||||||
{
|
{
|
||||||
imports = [ ./hardware-configuration.nix ];
|
imports = [ ./hardware-configuration.nix ];
|
||||||
|
|
||||||
|
# hardware.opengl = {
|
||||||
|
# enable = true;
|
||||||
|
# extraPackages = with pkgs; [
|
||||||
|
# rocmPackages.clr.icd
|
||||||
|
# linuxPackages.amdgpu-pro
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
|
# boot.kernelParams = [
|
||||||
|
# "radeon.si_support=0"
|
||||||
|
# "radeon.cik_support=1"
|
||||||
|
# "amdgpu.si_support=0"
|
||||||
|
# "amdgpu.cik_support=1"
|
||||||
|
# ];
|
||||||
|
# boot.extraModulePackages = with config.boot.kernelPackages; [ amdgpu-pro ];
|
||||||
|
# boot.blacklistedKernelModules = [ "radeon" ];
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
@ -65,16 +82,23 @@
|
|||||||
vim
|
vim
|
||||||
htop
|
htop
|
||||||
mc
|
mc
|
||||||
|
|
||||||
|
# # AMD GPU tools
|
||||||
|
# pciutils
|
||||||
|
# nvtopPackages.amd
|
||||||
|
# linuxPackages.amdgpu-pro
|
||||||
];
|
];
|
||||||
|
|
||||||
# services.ollama = {
|
# Ollama used by open-webui as llm backend
|
||||||
# enable = true;
|
services.ollama = {
|
||||||
# acceleration = "cuda";
|
enable = true;
|
||||||
# };
|
# acceleration = "rocm";
|
||||||
|
};
|
||||||
services.open-webui = {
|
services.open-webui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 8080;
|
port = 8080;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
host = "builder.julian-mutter.de";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
|
@ -1,26 +1,35 @@
|
|||||||
# 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,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
boot.initrd.kernelModules = [ ];
|
"ata_piix"
|
||||||
|
"uhci_hcd"
|
||||||
|
"virtio_pci"
|
||||||
|
"virtio_scsi"
|
||||||
|
"sd_mod"
|
||||||
|
"sr_mod"
|
||||||
|
];
|
||||||
|
# boot.initrd.kernelModules = [ "amdgpu" ]; # GPU support
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/f088fe8e-bf3d-4a89-98bd-ead9852d381f";
|
device = "/dev/disk/by-uuid/f088fe8e-bf3d-4a89-98bd-ead9852d381f";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices =
|
swapDevices = [ { device = "/dev/disk/by-uuid/ab60b5f0-caaa-4a7e-803f-c4c1a6a076dd"; } ];
|
||||||
[ { device = "/dev/disk/by-uuid/ab60b5f0-caaa-4a7e-803f-c4c1a6a076dd"; }
|
|
||||||
];
|
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
Loading…
x
Reference in New Issue
Block a user