From 39ab1a3fc8bbd476d4f136b0cb07c1c8d1042685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 13 Sep 2024 23:34:58 +0200 Subject: [PATCH] Fri 13 Sep 23:34:58 CEST 2024 --- home/Aloria.nix | 6 ++++-- home/zsh/default.nix | 2 +- hosts/Aloria/default.nix | 10 +++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/home/Aloria.nix b/home/Aloria.nix index a341612..b642d10 100644 --- a/home/Aloria.nix +++ b/home/Aloria.nix @@ -8,6 +8,7 @@ programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519"; home.packages = with pkgs; [ + distrobox texliveFull nmap arp-scan @@ -23,6 +24,7 @@ zip yubioath-flutter obsidian + OVMFFull ]; services.hyprpaper = { @@ -58,7 +60,7 @@ programs.alacritty.settings.font.size = 13; programs.zsh.initExtra = pkgs.lib.mkForce '' - LOCAL_SEARCH_DIRS=(~/.dotfiles/ ~/Workspace) - REMOTE_SEARCH_DIRS=() + LOCAL_SEARCH_DIRS=(~/.dotfiles/) + REMOTE_SEARCH_DIRS=( ~/Workspace) ''; } diff --git a/home/zsh/default.nix b/home/zsh/default.nix index fab4301..bdcd608 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -76,7 +76,6 @@ source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh source ${./files/functions.zsh} function zvm_after_init() { - source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh source ${./files/term.zsh} source ${./files/completion.zsh} if [ -n "\$\{commands[fzf-share]\}" ]; then @@ -85,6 +84,7 @@ fi source ${./files/keys.zsh} eval "$(direnv hook zsh)" + export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH } function run() { NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1" -- "''${@:2}" diff --git a/hosts/Aloria/default.nix b/hosts/Aloria/default.nix index fe1a81e..9024f1e 100644 --- a/hosts/Aloria/default.nix +++ b/hosts/Aloria/default.nix @@ -4,6 +4,7 @@ (import ../Common/default.nix { inherit inputs pkgs config; }) (import ../Common/nvidia.nix { inherit inputs pkgs config; }) (import ../Common/desktop.nix { inherit inputs pkgs config; }) + (import ../Common/nfs.nix { inherit inputs pkgs config; }) ]; hardware.graphics.extraPackages = [ pkgs.intel-compute-runtime @@ -15,6 +16,13 @@ # services.ollama = { # enable = true; # }; + programs.nix-ld.enable = true; + + virtualisation.libvirtd.enable = true; + virtualisation.libvirtd.qemu.ovmf.enable = true; + virtualisation.spiceUSBRedirection.enable = true; + programs.virt-manager.enable = true; + users.users.user.extraGroups = [ "libvirtd" ]; networking.wg-quick.interfaces = { Tunnel = { @@ -46,7 +54,7 @@ }]; }; }; - # fileSystems."/home/server".device = pkgs.lib.mkForce "10.0.0.1:/home/server"; + fileSystems."/home/server".device = pkgs.lib.mkForce "10.0.0.1:/home/server"; services.upower.enable = true; networking.wireless.iwd.enable = true;