From 56a5ff0204d3fc01ebb5b7d894037c7cc9f726e5 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Thu, 25 Apr 2024 16:38:06 +0200 Subject: [PATCH] virt --- configuration.nix | 2 ++ home-modules/shell/fish.nix | 3 +++ home-modules/theme/gtk.nix | 14 ++++++++++++++ home-modules/virt-manager.nix | 14 ++++++++++++++ home.nix | 6 ++++++ system-modules/virtualisation.nix | 10 ++++++++++ 6 files changed, 49 insertions(+) create mode 100644 home-modules/virt-manager.nix create mode 100644 system-modules/virtualisation.nix diff --git a/configuration.nix b/configuration.nix index 1532cab..67c6c32 100644 --- a/configuration.nix +++ b/configuration.nix @@ -11,6 +11,7 @@ in ./system-modules/grub.nix ./system-modules/dm.nix ./system-modules/networking.nix + ./system-modules/virtualisation.nix ./system-modules/hsmw.nix ./system-modules/docker.nix @@ -78,6 +79,7 @@ in openssl blueman dmidecode + file ]; diff --git a/home-modules/shell/fish.nix b/home-modules/shell/fish.nix index 81579e0..a52431b 100644 --- a/home-modules/shell/fish.nix +++ b/home-modules/shell/fish.nix @@ -51,6 +51,8 @@ nxf = "nxfetch"; nn = "nano"; m = "micro"; + p = "python"; + ipy = "ipython"; c = "codium"; g = "git"; # gst = "git status"; @@ -63,6 +65,7 @@ glg = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all"; gll = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'"; gmt = "git_monitor"; + ns = "nix-shell"; code = "codium"; # ya = "yazi"; # function diff --git a/home-modules/theme/gtk.nix b/home-modules/theme/gtk.nix index 463f1d3..614efcc 100644 --- a/home-modules/theme/gtk.nix +++ b/home-modules/theme/gtk.nix @@ -35,6 +35,19 @@ in gtk4.extraConfig = { gtk-application-prefer-dark-theme = 1; }; + cursorTheme = { + name = "Catppuccin-Mocha-Pink-Cursors"; + package = pkgs.catppuccin-cursors.mochaPink; + size = 20; + }; + }; + + home.pointerCursor = { + gtk.enable = true; + x11.enable = true; + package = pkgs.catppuccin-cursors.mochaPeach; + name = "Catppuccin-Mocha-Pink-Cursors"; + size = 20; }; xdg.configFile = { @@ -45,6 +58,7 @@ in + dconf = { enable = true; settings = { diff --git a/home-modules/virt-manager.nix b/home-modules/virt-manager.nix new file mode 100644 index 0000000..ab62466 --- /dev/null +++ b/home-modules/virt-manager.nix @@ -0,0 +1,14 @@ +{ config, pkgs, ... }: +{ + home.packages = with pkgs; [ + virt-manager + ]; + + # programs.virt-manager.enable = true; # needs this in virtualization.nix + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = [ "qemu:///system" ]; + uris = [ "qemu:///system" ]; + }; + }; +} \ No newline at end of file diff --git a/home.nix b/home.nix index b1d3ec7..56d9cfe 100644 --- a/home.nix +++ b/home.nix @@ -8,6 +8,7 @@ ./home-modules/email.nix ./home-modules/bitwarden.nix ./home-modules/office.nix + ./home-modules/virt-manager.nix # ./home-modules/mutt/neomutt.nix ./home-modules/gestures.nix @@ -52,6 +53,7 @@ zoom-us discord signal-desktop + xfce.thunar obsidian spotify spicetify-cli @@ -70,6 +72,9 @@ gnumake speedtest-go + + glib + gsettings-desktop-schemas ]; xdg = { @@ -99,6 +104,7 @@ "image/webp" = "imv.desktop"; "image/gif" = "imv.desktop"; "application/pdf" = "zathura.desktop"; + "inode/directory" = "thunar.desktop"; }; }; }; diff --git a/system-modules/virtualisation.nix b/system-modules/virtualisation.nix new file mode 100644 index 0000000..94af820 --- /dev/null +++ b/system-modules/virtualisation.nix @@ -0,0 +1,10 @@ +{ config, pkgs, user, ... }: + +{ + environment.systemPackages = with pkgs; [ + virtiofsd + ]; + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + users.users."${user}".extraGroups = [ "libvirtd" ]; +} \ No newline at end of file