From 3350174e8aaf0ac2909da4d50a055061689a10ef Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:13:06 +0100 Subject: [PATCH] enable vmware --- flake.nix | 1 + modules/graphical/hyprland.nix | 28 ++++++++++++++-------------- modules/graphical/shared.nix | 2 +- modules/vmware-host.nix | 3 +++ 4 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 modules/vmware-host.nix diff --git a/flake.nix b/flake.nix index b5ae866..3120de3 100644 --- a/flake.nix +++ b/flake.nix @@ -144,6 +144,7 @@ ./laptop/configuration.nix ./modules/cli-tools.nix ./modules/virt-manager.nix + ./modules/vmware-host.nix ./modules/ssh.nix #./modules/static-ip.nix #./modules/no-sleep-lid-closed.nix diff --git a/modules/graphical/hyprland.nix b/modules/graphical/hyprland.nix index 4bb3ede..15018d4 100644 --- a/modules/graphical/hyprland.nix +++ b/modules/graphical/hyprland.nix @@ -292,25 +292,25 @@ in submap = notes # below - bind = $mainMod, B, exec, ${wl-paste} | grep -B 15 -i -f - ~/Nextcloud/old_gdrive/fh/risikomanagement/crisam.txt | sed 's/[ \t]*$//' | ${wl-copy} + bind = $mainMod, B, exec, ${wl-paste} | grep -B 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy} # above - bind = $mainMod, A, exec, ${wl-paste} | grep -A 15 -i -f - ~/Nextcloud/old_gdrive/fh/risikomanagement/crisam.txt | sed 's/[ \t]*$//' | ${wl-copy} + bind = $mainMod, A, exec, ${wl-paste} | grep -A 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy} # context - bind = $mainMod, C, exec, ${wl-paste} | grep -C 15 -i -f - ~/Nextcloud/old_gdrive/fh/risikomanagement/crisam.txt | sed 's/[ \t]*$//' | ${wl-copy} + bind = $mainMod, C, exec, ${wl-paste} | grep -C 15 -i -f - ~/Nextcloud/test.txt | sed 's/[ \t]*$//' | ${wl-copy} # trim bind = $mainMod, T, exec, ${wl-paste} | sed 's/[ \t]*$//' | sed 's/^[ \t]*//' | ${wl-copy} bind = $mainMod, N, exec, ${dunstify} "$(${wl-paste})" bind = $mainMod, D, exec, ${dunstctl} close-all # notes - bind = $mainMod, 1, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/1.txt | ${wl-copy} - bind = $mainMod, 2, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/2.txt | ${wl-copy} - bind = $mainMod, 3, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/3.txt | ${wl-copy} - bind = $mainMod, 4, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/4.txt | ${wl-copy} - bind = $mainMod, 5, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/5.txt | ${wl-copy} - bind = $mainMod, 6, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/6.txt | ${wl-copy} - bind = $mainMod, 7, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/7.txt | ${wl-copy} - bind = $mainMod, 8, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/8.txt | ${wl-copy} - bind = $mainMod, 0, exec, cat ~/Nextcloud/old_gdrive/fh/risikomanagement/0.txt | ${wl-copy} + bind = $mainMod, 1, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 2, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 3, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 4, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 5, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 6, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 7, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 8, exec, cat ~/Nextcloud/test.txt | ${wl-copy} + bind = $mainMod, 0, exec, cat ~/Nextcloud/test.txt | ${wl-copy} bind = , escape, submap, reset submap = reset @@ -322,8 +322,8 @@ in global = { width = "(0,1000)"; height = "1000"; - offset = "10x50"; - origin = "top-right"; + offset = "0x0"; + origin = "bottom-center"; transparency = -1; frame_color = "#1a1c1b"; font = "Monospace 8"; diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 3c21dc2..d9dbe19 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -22,7 +22,7 @@ in ]; networking.firewall = { - enable = true; + enable = false; allowedTCPPortRanges = [ { from = 1714; to = 1764; } # KDE Connect ]; diff --git a/modules/vmware-host.nix b/modules/vmware-host.nix new file mode 100644 index 0000000..ed881ea --- /dev/null +++ b/modules/vmware-host.nix @@ -0,0 +1,3 @@ +{ + virtualisation.vmware.host.enable = true; +}