From 7b4878925123523393013c3116bb8cbc5d15516c Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Thu, 9 Jul 2026 16:17:27 +0200 Subject: [PATCH] Add virtualization support and adjust defaults MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Disable printing by setting `printEnable = false`. - Add a new `virualization` module enabling libvirtd, virt‑manager, qemuGuest and spice‑vdagentd; enable it on the desktop host. - Change default applications: enable GIMP, disable Pixieditor. - Bump Helium AppImage to version 0.14.4.1 with updated hash. - Lower notification sound volume from 0.5 to 0.1. - Refactor Bash and Fish aliases: `upd` now updates flakes, `upg` performs OS switch, and new helper aliases are added. --- hosts/Garand-Desktop/printers.nix | 2 +- hosts/Garand-Desktop/system-modules.nix | 5 +++-- hosts/Garand-Laptop/system-modules.nix | 1 + hosts/default/system-modules.nix | 1 + modules/core/default.nix | 1 + modules/core/packages/appimages/helium.nix | 4 ++-- modules/core/virualization.nix | 18 +++++++++++++++++ modules/home/bash/aliases.nix | 20 +++++++++---------- modules/home/fish/aliases.nix | 20 +++++++++---------- .../settings/notifications/default.nix | 2 +- 10 files changed, 48 insertions(+), 26 deletions(-) create mode 100644 modules/core/virualization.nix diff --git a/hosts/Garand-Desktop/printers.nix b/hosts/Garand-Desktop/printers.nix index 905dffb..52aae7f 100644 --- a/hosts/Garand-Desktop/printers.nix +++ b/hosts/Garand-Desktop/printers.nix @@ -1,5 +1,5 @@ { - printEnable = true; + printEnable = false; ensureDefaultPrinter = "Brother-T525W"; diff --git a/hosts/Garand-Desktop/system-modules.nix b/hosts/Garand-Desktop/system-modules.nix index 77a9ecd..c7400fa 100644 --- a/hosts/Garand-Desktop/system-modules.nix +++ b/hosts/Garand-Desktop/system-modules.nix @@ -4,6 +4,7 @@ _: { */ docker.enable = true; # Docker: container runtime and management virtualbox.enable = false; # VirtualBox: PC emulator + virualization.enable = true; # GUI application for managing local and remote virtual machines through libvirt flatpak = { enable = true; # Flatpak: universal packaging system for Linux packages = { @@ -97,9 +98,9 @@ _: { eyeOfGnome.enable = true; # Eye of GNOME: image viewer switcheroo.enable = false; # Switcheroo: file conversion tool freetube.enable = false; # FreeTube: privacy‑friendly YouTube client - gimp.enable = false; # GIMP: GNU Image Manipulation Program + gimp.enable = true; # GIMP: GNU Image Manipulation Program kdenlive.enable = true; # Kdenlive: video editing software - pixieditor.enable = true; # Pixieditor: Universal editor for all your 2D needs + pixieditor.enable = false; # Pixieditor: Universal editor for all your 2D needs plex.enable = false; # Plex: media player and server client jellyfin.enable = true; # Jellyfin: foss media player appImages.losslesscut.enable = true; # Losslesscut: Swiss army knife of lossless video/audio editing diff --git a/hosts/Garand-Laptop/system-modules.nix b/hosts/Garand-Laptop/system-modules.nix index f2c5e78..3acf814 100644 --- a/hosts/Garand-Laptop/system-modules.nix +++ b/hosts/Garand-Laptop/system-modules.nix @@ -4,6 +4,7 @@ _: { */ docker.enable = true; # Docker: container runtime and management virtualbox.enable = false; # VirtualBox: PC emulator + virualization.enable = false; # GUI application for managing local and remote virtual machines through libvirt flatpak = { enable = true; # Flatpak: universal packaging system for Linux packages = { diff --git a/hosts/default/system-modules.nix b/hosts/default/system-modules.nix index a1cf53a..0643942 100644 --- a/hosts/default/system-modules.nix +++ b/hosts/default/system-modules.nix @@ -4,6 +4,7 @@ _: { */ docker.enable = false; # Docker: container runtime and management virtualbox.enable = false; # VirtualBox: PC emulator + virualization.enable = false; # GUI application for managing local and remote virtual machines through libvirt flatpak = { enable = false; # Flatpak: universal packaging system for Linux packages = { diff --git a/modules/core/default.nix b/modules/core/default.nix index 9153bf8..9802433 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -25,6 +25,7 @@ ./user.nix ./ventoy.nix ./virtualbox.nix + ./virualization.nix ./xdg.nix ./xserver.nix ./zram.nix diff --git a/modules/core/packages/appimages/helium.nix b/modules/core/packages/appimages/helium.nix index 7919a8a..e335ffd 100644 --- a/modules/core/packages/appimages/helium.nix +++ b/modules/core/packages/appimages/helium.nix @@ -4,8 +4,8 @@ fetchurl, }: let pname = "helium"; - version = "0.14.3.1"; - hash = "sha256-umRDXcHlDRDWpdP4wxr81q+cUXkjiIxyg2AcJRFQaMA="; + version = "0.14.4.1"; + hash = "sha256-91hO0NtjUxEZwUyMYe7RD1RfFIelYa8ExzLKRsLaZZo="; src = fetchurl { url = "https://github.com/imputnet/helium-linux/releases/download/${version}/helium-${version}-x86_64.AppImage"; diff --git a/modules/core/virualization.nix b/modules/core/virualization.nix new file mode 100644 index 0000000..8c33e65 --- /dev/null +++ b/modules/core/virualization.nix @@ -0,0 +1,18 @@ +{ + lib, + config, + ... +}: { + options.virualization.enable = lib.mkEnableOption "Enable QEMU/KVM"; + + config = lib.mkIf config.virualization.enable { + virtualisation.libvirtd.enable = true; + + programs.virt-manager.enable = true; + + services = { + qemuGuest.enable = true; + spice-vdagentd.enable = true; + }; + }; +} diff --git a/modules/home/bash/aliases.nix b/modules/home/bash/aliases.nix index cc275a3..9373acd 100644 --- a/modules/home/bash/aliases.nix +++ b/modules/home/bash/aliases.nix @@ -6,16 +6,16 @@ programs.bash.shellAliases = { # GarandOS aliases pullos = "git -C /home/${username}/garandos pull"; - upd = "nh os switch -H ${host} -d always"; - upg = "nh os switch -H ${host} --update -d always"; - upf = "sudo nix flake update --flake /home/${username}/garandos"; - upf-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos"; - upf-pkgs = "sudo nix flake update --flake /home/${username}/garandos nixpkgs"; - upf-pkgs-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos nixpkgs"; - upf-undo = "git -C /home/${username}/garandos restore /home/${username}/garandos/flake.lock"; - upd-bt = "nh os boot -H ${host} -d always"; - upd-ts = "nh os test -H ${host} -d always"; - upd-bd = "nh os build -H ${host} -d always"; + upd = "sudo nix flake update --flake /home/${username}/garandos"; + upd-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos"; + upd-pkgs = "sudo nix flake update --flake /home/${username}/garandos nixpkgs"; + upd-pkgs-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos nixpkgs"; + upd-undo = "git -C /home/${username}/garandos restore /home/${username}/garandos/flake.lock"; + upg = "nh os switch -H ${host} -d always"; + upg-upd = "nh os switch -H ${host} --update -d always"; + upg-bt = "nh os boot -H ${host} -d always"; + upg-ts = "nh os test -H ${host} -d always"; + upg-bd = "nh os build -H ${host} -d always"; tui = "garandos-tui"; ncg = "nh clean all --optimise"; diff --git a/modules/home/fish/aliases.nix b/modules/home/fish/aliases.nix index b070967..37e62e8 100644 --- a/modules/home/fish/aliases.nix +++ b/modules/home/fish/aliases.nix @@ -6,16 +6,16 @@ programs.fish.shellAliases = { # GarandOS aliases pullos = "git -C /home/${username}/garandos pull"; - upd = "nh os switch -H ${host} -d always"; - upg = "nh os switch -H ${host} --update -d always"; - upf = "sudo nix flake update --flake /home/${username}/garandos"; - upf-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos"; - upf-pkgs = "sudo nix flake update --flake /home/${username}/garandos nixpkgs"; - upf-pkgs-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos nixpkgs"; - upf-undo = "git -C /home/${username}/garandos restore /home/${username}/garandos/flake.lock"; - upd-bt = "nh os boot -H ${host} -d always"; - upd-ts = "nh os test -H ${host} -d always"; - upd-bd = "nh os build -H ${host} -d always"; + upd = "sudo nix flake update --flake /home/${username}/garandos"; + upd-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos"; + upd-pkgs = "sudo nix flake update --flake /home/${username}/garandos nixpkgs"; + upd-pkgs-gh = "nix flake update --option access-tokens \"github.com=$(gh auth token)\" --flake /home/${username}/garandos nixpkgs"; + upd-undo = "git -C /home/${username}/garandos restore /home/${username}/garandos/flake.lock"; + upg = "nh os switch -H ${host} -d always"; + upg-upd = "nh os switch -H ${host} --update -d always"; + upg-bt = "nh os boot -H ${host} -d always"; + upg-ts = "nh os test -H ${host} -d always"; + upg-bd = "nh os build -H ${host} -d always"; tui = "garandos-tui"; ncg = "nh clean all --optimise"; diff --git a/modules/home/noctalia/settings/notifications/default.nix b/modules/home/noctalia/settings/notifications/default.nix index 215cd08..b0d4c4c 100644 --- a/modules/home/noctalia/settings/notifications/default.nix +++ b/modules/home/noctalia/settings/notifications/default.nix @@ -21,7 +21,7 @@ }; sounds = { enabled = true; - volume = 0.5; + volume = 0.1; separateSounds = false; criticalSoundFile = "/home/${username}/garandos/modules/home/noctalia/settings/notifications/payday-2-new-objective-sound-effect.mp3"; normalSoundFile = "/home/${username}/garandos/modules/home/noctalia/settings/notifications/payday-2-new-objective-sound-effect.mp3";