feat: pa-notify and libvirtd configuration

added virt-manager and libvirtd for VMs
added pa-notify autostart command for volume notification
This commit is contained in:
Zhongheng Liu 2024-08-26 23:08:08 +08:00
commit ab9b248551
No known key found for this signature in database
5 changed files with 20 additions and 0 deletions

View file

@ -28,6 +28,7 @@
myAutostartCommands = [ myAutostartCommands = [
"fcitx5" "fcitx5"
"${pkgs.udiskie}/bin/udiskie" "${pkgs.udiskie}/bin/udiskie"
"${pkgs.pa-notify}/bin/pa-notify"
]; ];
myConfigLocation = "/home/${myUserName}/nix-conf"; myConfigLocation = "/home/${myUserName}/nix-conf";
}; };

View file

@ -62,6 +62,7 @@
file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;}; file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
prismlauncher
protonvpn-gui protonvpn-gui
devenv devenv
vlc vlc

View file

@ -40,10 +40,13 @@
]; ];
bind = let bind = let
terminalCmd = "${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}"; terminalCmd = "${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=12' -o colors.alpha=0.85 ${config.myShells.defaultShell}";
screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png";
in in
[ [
"$mod SHIFT, L, exec, ${pkgs.hyprlock}/bin/hyprlock --immediate" "$mod SHIFT, L, exec, ${pkgs.hyprlock}/bin/hyprlock --immediate"
"$mod SHIFT, Print, exec, ${pkgs.grimblast}/bin/grimblast copysave output ${screenshotLocation}"
"$mod, Print, exec, ${pkgs.grimblast}/bin/grimblast copysave area ${screenshotLocation}"
", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area" ", Print, exec, ${pkgs.grimblast}/bin/grimblast copy area"
# special workspace keybinds # special workspace keybinds

View file

@ -14,6 +14,7 @@
./nvidia.nix ./nvidia.nix
./fonts.nix ./fonts.nix
./services/laptop.preset.nix ./services/laptop.preset.nix
./virtualisation.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
environment.variables = { environment.variables = {

14
nixos/virtualisation.nix Normal file
View file

@ -0,0 +1,14 @@
{
pkgs,
lib,
config,
...
}: {
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
#virtualisation.vmware.host.enable = true;
#virtualisation.virtualbox.host = {
# enable = true;
#};
users.users."${config.myUserName}".extraGroups = ["libvirtd"];
}