Fri 13 Sep 23:34:58 CEST 2024

This commit is contained in:
Thomas Avé 2024-09-13 23:34:58 +02:00
parent 1a82154359
commit 39ab1a3fc8
3 changed files with 14 additions and 4 deletions

View File

@ -8,6 +8,7 @@
programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519"; programs.ssh.matchBlocks."*".identityFile = "/home/user/.secrets/SSH/Aloria/id_ed25519";
home.packages = with pkgs; [ home.packages = with pkgs; [
distrobox
texliveFull texliveFull
nmap nmap
arp-scan arp-scan
@ -23,6 +24,7 @@
zip zip
yubioath-flutter yubioath-flutter
obsidian obsidian
OVMFFull
]; ];
services.hyprpaper = { services.hyprpaper = {
@ -58,7 +60,7 @@
programs.alacritty.settings.font.size = 13; programs.alacritty.settings.font.size = 13;
programs.zsh.initExtra = pkgs.lib.mkForce '' programs.zsh.initExtra = pkgs.lib.mkForce ''
LOCAL_SEARCH_DIRS=(~/.dotfiles/ ~/Workspace) LOCAL_SEARCH_DIRS=(~/.dotfiles/)
REMOTE_SEARCH_DIRS=() REMOTE_SEARCH_DIRS=( ~/Workspace)
''; '';
} }

View File

@ -76,7 +76,6 @@
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
source ${./files/functions.zsh} source ${./files/functions.zsh}
function zvm_after_init() { function zvm_after_init() {
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
source ${./files/term.zsh} source ${./files/term.zsh}
source ${./files/completion.zsh} source ${./files/completion.zsh}
if [ -n "\$\{commands[fzf-share]\}" ]; then if [ -n "\$\{commands[fzf-share]\}" ]; then
@ -85,6 +84,7 @@
fi fi
source ${./files/keys.zsh} source ${./files/keys.zsh}
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
} }
function run() { function run() {
NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1" -- "''${@:2}" NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1" -- "''${@:2}"

View File

@ -4,6 +4,7 @@
(import ../Common/default.nix { inherit inputs pkgs config; }) (import ../Common/default.nix { inherit inputs pkgs config; })
(import ../Common/nvidia.nix { inherit inputs pkgs config; }) (import ../Common/nvidia.nix { inherit inputs pkgs config; })
(import ../Common/desktop.nix { inherit inputs pkgs config; }) (import ../Common/desktop.nix { inherit inputs pkgs config; })
(import ../Common/nfs.nix { inherit inputs pkgs config; })
]; ];
hardware.graphics.extraPackages = [ hardware.graphics.extraPackages = [
pkgs.intel-compute-runtime pkgs.intel-compute-runtime
@ -15,6 +16,13 @@
# services.ollama = { # services.ollama = {
# enable = true; # 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 = { networking.wg-quick.interfaces = {
Tunnel = { 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; services.upower.enable = true;
networking.wireless.iwd.enable = true; networking.wireless.iwd.enable = true;