Skip to content

Commit

Permalink
configuration tweaks for nvidia with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ironicbadger committed Dec 15, 2024
1 parent 55eecbf commit 3f01375
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions hosts/nixos/nix-nvllama/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
targetHost = name;
targetUser = "root";
buildOnTarget = true;
allowLocalDeployment = true;
tags = [ "nix-nvllama" ];
};

Expand Down Expand Up @@ -41,7 +42,7 @@
firewall.enable = false;
hostName = "nix-nvllama";
interfaces = {
enp13s0 = {
ens18 = {
useDHCP = false;
ipv4.addresses = [ {
address = "10.42.1.12";
Expand Down Expand Up @@ -75,22 +76,23 @@
home-manager
];
};
#programs.bash.interactiveShellInit = "fastfetch";

nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
ansible
#fastfetch
colmena
htop
inxi
just
ripgrep
pciutils
python3
tmux
wget
];

hardware.opengl.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.nvidia.modesetting.enable = true;
hardware.nvidia.open = false;
hardware.nvidia.nvidiaSettings = true;
Expand All @@ -103,11 +105,8 @@
services.tailscale.enable = true;

virtualisation = {
#containers.enable = true;
docker = {
enable = true;
package = pkgs.docker_27;
#enableNvidia = true;
autoPrune = {
enable = true;
dates = "weekly";
Expand Down

0 comments on commit 3f01375

Please sign in to comment.