added: custom discord rpc

This commit is contained in:
2025-12-13 15:02:29 +00:00
parent dcbc756ac5
commit ba87100421
5 changed files with 140 additions and 5 deletions

91
flake.lock generated
View File

@@ -101,6 +101,21 @@
"type": "github"
}
},
"crane": {
"locked": {
"lastModified": 1765145449,
"narHash": "sha256-aBVHGWWRzSpfL++LubA0CwOOQ64WNLegrYHwsVuVN7A=",
"owner": "ipetkov",
"repo": "crane",
"rev": "69f538cdce5955fcd47abfed4395dc6d5194c1c5",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"disko": {
"inputs": {
"nixpkgs": [
@@ -251,6 +266,24 @@
"type": "github"
}
},
"flake-utils_2": {
"inputs": {
"systems": "systems_4"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"fromYaml": {
"flake": false,
"locked": {
@@ -869,6 +902,22 @@
}
},
"nixpkgs_7": {
"locked": {
"lastModified": 1765472234,
"narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_8": {
"locked": {
"lastModified": 1764950072,
"narHash": "sha256-BmPWzogsG2GsXZtlT+MTcAWeDK5hkbGRZTeZNW42fwA=",
@@ -988,11 +1037,32 @@
"nixpkgs-gamescope": "nixpkgs-gamescope",
"nixvim": "nixvim",
"quickshell": "quickshell",
"rsRPC": "rsRPC",
"sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix",
"stylix": "stylix"
}
},
"rsRPC": {
"inputs": {
"crane": "crane",
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1765636609,
"narHash": "sha256-cE9iWVYclynDGAt24Hgjd2kbSOlTraq8czTfesAQl4M=",
"owner": "Doloro1978",
"repo": "rsRPC",
"rev": "43a7a02a193c65e64f2df63cd123cd4780303a57",
"type": "github"
},
"original": {
"owner": "Doloro1978",
"repo": "rsRPC",
"type": "github"
}
},
"sops-nix": {
"inputs": {
"nixpkgs": [
@@ -1015,8 +1085,8 @@
},
"spicetify-nix": {
"inputs": {
"nixpkgs": "nixpkgs_7",
"systems": "systems_4"
"nixpkgs": "nixpkgs_8",
"systems": "systems_5"
},
"locked": {
"lastModified": 1765082296,
@@ -1045,7 +1115,7 @@
"nixpkgs"
],
"nur": "nur",
"systems": "systems_5",
"systems": "systems_6",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
@@ -1141,6 +1211,21 @@
"type": "github"
}
},
"systems_6": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"tinted-foot": {
"flake": false,
"locked": {

View File

@@ -11,6 +11,7 @@
nixos-wsl.url = "github:nix-community/NixOS-WSL/main";
nix-meow.url = "git+https://git.scug.io/nikkuss/nix-meow.git"; # config manager, meow'd
hyprland.url = "github:hyprwm/Hyprland";
rsRPC.url = "github:Doloro1978/rsRPC";
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";

View File

@@ -41,6 +41,7 @@
unityhub.enable = true;
direnv.enable = true;
git.enable = true;
rsRPC.enable = true;
};
# Home Manager needs a bit of information about you and the paths it should
# manage.
@@ -76,8 +77,9 @@
hello
vim
telegram-desktop
# vesktop
(pkgs.discord.override { withVencord = true; })
vesktop
# (pkgs.discord.override { withVencord = true; })
# webcord-vencord
# spotify
pavucontrol
lazygit

View File

@@ -0,0 +1,4 @@
_: {
home = ./home.nix;
# nixos: ./nixos.nix;
}

43
modules/rsRPC/home.nix Normal file
View File

@@ -0,0 +1,43 @@
{
inputs,
nix-meow,
rsRPC,
config,
lib,
pkgs,
system,
...
}:
let
# rsRPC = pkgs.fetchFromGitHub {
# owner = "Doloro1978";
# repo = "rsRPC";
# rev = "main";
# hash = "sha256-cE9iWVYclynDGAt24Hgjd2kbSOlTraq8czTfesAQl4M=";
# };
rsRPC = inputs.rsRPC.packages.${system}.app;
detectable = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/Doloro1978/arrpc/refs/heads/main/src/process/detectable.json";
hash = "sha256-RglaVHAIVXHnFL9j55r8t5S8tS7LXWZ82A2RvW1mtno=";
};
cfg = config.modules.rsRPC;
in
{
options.modules.rsRPC = {
enable = lib.mkEnableOption "quickshell configuration module";
};
config.systemd.user.services.rsRPC = lib.mkIf cfg.enable {
Unit = {
Description = "discord rpc daemon";
After = [ "hyprland-session.target" ];
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
ExecStart = "${rsRPC}/bin/rsrpc-cli -d ${detectable}";
Restart = "on-failure";
RestartSec = "5s";
};
};
}