From a8ae6514d5da66c2dc0d3b1be87a178cf212eb1e Mon Sep 17 00:00:00 2001 From: reo101 Date: Fri, 19 Jul 2024 01:37:37 +0300 Subject: [PATCH] chore(nixos): update configs `hardware.opengl` -> `hardware.graphics` Disable `jeeves` `home-assistant` and `ollama` modules `sha-516` -> `sha-512` Add `jeeves` user to `input` group Use `transmission_4` package --- .../x86_64-linux/homix/configuration.nix | 2 +- .../x86_64-linux/jeeves/configuration.nix | 9 ++++---- .../nixos/x86_64-linux/jeeves/jellyfin.nix | 22 +++++++++++++------ 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/machines/nixos/x86_64-linux/homix/configuration.nix b/machines/nixos/x86_64-linux/homix/configuration.nix index fd0a71a..90b4339 100644 --- a/machines/nixos/x86_64-linux/homix/configuration.nix +++ b/machines/nixos/x86_64-linux/homix/configuration.nix @@ -107,7 +107,7 @@ services.xserver = { videoDrivers = [ "nvidia" ]; }; - hardware.opengl.enable = true; + hardware.graphics.enable = true; hardware.nvidia = { open = true; # powerManagement.enable = true; diff --git a/machines/nixos/x86_64-linux/jeeves/configuration.nix b/machines/nixos/x86_64-linux/jeeves/configuration.nix index 0b12a3b..e8958c9 100644 --- a/machines/nixos/x86_64-linux/jeeves/configuration.nix +++ b/machines/nixos/x86_64-linux/jeeves/configuration.nix @@ -10,9 +10,9 @@ ./wireguard.nix ./jellyfin.nix ./mindustry.nix - ./home-assistant + # ./home-assistant ./samba.nix - ./ollama.nix + # ./ollama.nix ]; age.rekey = { @@ -79,12 +79,12 @@ neovim ]; - # NOTE: made with `mkpasswd -m sha-516` + # NOTE: made with `mkpasswd -m sha-512` age.secrets."jeeves.user.password" = { rekeyFile = "${inputs.self}/secrets/home/jeeves/user/password.age"; generator = { script = { pkgs, ... }: '' - ${pkgs.mkpasswd}/bin/mkpasswd -m sha-516 + ${pkgs.mkpasswd}/bin/mkpasswd -m sha-512 ''; }; }; @@ -105,6 +105,7 @@ "audio" "docker" "transmission" + "input" ]; }; }; diff --git a/machines/nixos/x86_64-linux/jeeves/jellyfin.nix b/machines/nixos/x86_64-linux/jeeves/jellyfin.nix index 49e7b04..0015142 100644 --- a/machines/nixos/x86_64-linux/jeeves/jellyfin.nix +++ b/machines/nixos/x86_64-linux/jeeves/jellyfin.nix @@ -4,18 +4,26 @@ tremc ]; - networking.extraHosts = '' - 127.0.0.1 jeeves - ''; + # networking.extraHosts = '' + # 127.0.0.1 jeeves + # ''; - hardware.opengl.extraPackages = with pkgs; [ - vaapiVdpau - libva1 - ]; + hardware.graphics = { + enable = true; + enable32Bit = true; + extraPackages = with pkgs; [ + vaapiVdpau + libva1 + vulkan-loader + vulkan-validation-layers + vulkan-extension-layer + ]; + }; services = { transmission = { enable = true; + package = pkgs.transmission_4; openRPCPort = true; webHome = pkgs.flood-for-transmission; # TODO: `credentialsFile` for RPC password with agenix