misc updates
This commit is contained in:
parent
366179053e
commit
7b9ef8fde4
5 changed files with 33 additions and 4 deletions
|
@ -273,7 +273,6 @@
|
|||
specialArgs = mkSpecialArgs system;
|
||||
modules = linuxOfflineGuiModules [
|
||||
./nixos/hosts/trailblazer
|
||||
./nixos/configs/vmware.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -285,7 +284,6 @@
|
|||
modules = linuxOfflineGuiModules [
|
||||
./nixos/hosts/kanbaru.nix
|
||||
./nixos/configs/steam.nix
|
||||
./nixos/configs/vmware.nix
|
||||
./nixos/configs/power-saving.nix
|
||||
];
|
||||
};
|
||||
|
@ -313,7 +311,6 @@
|
|||
|
||||
modules = linuxOfflineGuiModules [
|
||||
./nixos/hosts/hinata.nix
|
||||
./nixos/configs/vmware.nix
|
||||
./nixos/configs/cellular.nix
|
||||
./nixos/configs/power-saving.nix
|
||||
];
|
||||
|
|
|
@ -47,6 +47,9 @@
|
|||
brightnessctl
|
||||
nirilock-fancy
|
||||
|
||||
# required by xdg-desktop-portal-gnome
|
||||
nautilus
|
||||
|
||||
xdg-desktop-portal-gtk
|
||||
xdg-desktop-portal-gnome
|
||||
kdePackages.kwallet
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../overlays/fixup-vmware.nix ];
|
||||
|
||||
# Use VMWare, and not KVM.
|
||||
virtualisation.vmware.host.enable = true;
|
||||
|
|
|
@ -33,13 +33,16 @@ let
|
|||
openrgb -d "Corsair Lighting Node Pro" -m direct -z 1 -s 100 -b 100 -c $1
|
||||
'';
|
||||
|
||||
#mqttServer = "fuuka"
|
||||
mqttServer = "mitsuru";
|
||||
|
||||
commandScript = pkgs.writeScriptBin "trailblazer-command-daemon" ''
|
||||
#!${pkgs.xonsh}/bin/xonsh
|
||||
|
||||
print("[I] Trailblazer command service started. Waiting for command.")
|
||||
print("----------------------------")
|
||||
|
||||
for verb in !(${pkgs.mosquitto}/bin/mosquitto_sub -h fuuka -t trailblazer/command):
|
||||
for verb in !(${pkgs.mosquitto}/bin/mosquitto_sub -h ${mqttServer} -t trailblazer/command):
|
||||
verb = verb.strip()
|
||||
|
||||
if verb == "lights/off":
|
||||
|
|
25
nixos/overlays/fixup-vmware.nix
Normal file
25
nixos/overlays/fixup-vmware.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ ... }:
|
||||
let
|
||||
overlay=
|
||||
(
|
||||
final: prev:
|
||||
let
|
||||
finalAttrs = final.vmware-workstation;
|
||||
baseUrl = "https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${finalAttrs.version}/${finalAttrs.build}/linux";
|
||||
in
|
||||
{
|
||||
vmware-workstation = prev.vmware-workstation.overrideAttrs {
|
||||
src =
|
||||
prev.requireFile rec {
|
||||
name = "VMware-Workstation-${finalAttrs.version}-${finalAttrs.build}.x86_64.bundle.tar";
|
||||
url = "${baseUrl}/core/${name}";
|
||||
hash = "sha256-FzcS/koLJTXiUWH5H1Au0Eiz8VAH8mboidkQeDLRPmQ=";
|
||||
}
|
||||
+ "/VMware-Workstation-${finalAttrs.version}-${finalAttrs.build}.x86_64.bundle";
|
||||
};
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
nixpkgs.overlays = [ overlay ];
|
||||
}
|
Loading…
Add table
Reference in a new issue