feat: added command-runner server
This commit is contained in:
@@ -22,9 +22,10 @@
|
||||
{nixpkgs.overlays = overlays;}
|
||||
./${device.name}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
inputs.arion.nixosModules.arion
|
||||
inputs.command-runner.nixosModules.command-runner
|
||||
inputs.lanzaboote.nixosModules.lanzaboote
|
||||
inputs.musnix.nixosModules.musnix
|
||||
inputs.arion.nixosModules.arion
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
home-manager = {
|
||||
|
||||
@@ -7,8 +7,9 @@
|
||||
declarative = true;
|
||||
whitelist = {
|
||||
"AbhinavSE" = "8b6c052e-69b3-4bee-b9dc-12eb94653c9e";
|
||||
"crook0" = "37f79eb4-e95a-4fac-abed-fbbccf821701";
|
||||
"Serveus" = "79882fb6-d594-4073-a3d0-70a01d0abb67";
|
||||
"__Shun__" = "1c7a300f-98e4-402c-8741-432f3494bb25";
|
||||
"shashikant" = "20891e82-203c-4d04-9868-79a5879ecfc3";
|
||||
};
|
||||
serverProperties = {
|
||||
motd = "Servius's Minecraft Server";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-vaapi-driver
|
||||
# intel-vaapi-driver
|
||||
nvidia-vaapi-driver
|
||||
# vaapiVdpau
|
||||
# libvdpau-va-gl
|
||||
|
||||
27
nixos/ryu/services/command-runner.nix
Normal file
27
nixos/ryu/services/command-runner.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.command-runner = {
|
||||
enable = true;
|
||||
port = 5599;
|
||||
user = "servius";
|
||||
commands = let
|
||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||
in
|
||||
{
|
||||
"display_on" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on"];
|
||||
"display_off" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off"];
|
||||
"display_toggle" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle"];
|
||||
"display_status" = [hyprctl "-i" "{instance}" "-j" "monitors"];
|
||||
"hyprland_instance" = [hyprctl "-j" "instances"];
|
||||
}
|
||||
// (builtins.foldl' (acc: elem: acc // elem) {} (lib.map (name: {
|
||||
"display_on_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "on" name];
|
||||
"display_off_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "off" name];
|
||||
"display_toggle_${name}" = [hyprctl "-i" "{instance}" "dispatch" "dpms" "toggle" name];
|
||||
}) ["HDMI-A-1" "DP-3" "DP-1"]));
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
./samba.nix
|
||||
./mullvad.nix
|
||||
./openrgb.nix
|
||||
./command-runner.nix
|
||||
];
|
||||
services = {
|
||||
# hardware.openrgb.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user