Something went wrong. Try again.
Flake for my desktop, laptop, and my homelab.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{inputs, ...}: { flake-file.inputs.nixcord = { url = "github:kaylorben/nixcord"; inputs = { # keep-sorted start home-manager.follows = "home-manager"; nixpkgs.follows = "nixpkgs"; treefmt-nix.follows = "treefmt-nix"; # keep-sorted end }; };
flake.aspects.discord.homeManager = { # keep-sorted start config, lib, pkgs, # keep-sorted end ... }: let inherit (lib) # keep-sorted start concatMapStringsSep escapeShellArg genAttrs getExe' mkForce # keep-sorted end ; inherit (lib.hm) dag;
inherit (pkgs) coreutils;
settingsPaths = [ # keep-sorted start "${config.programs.nixcord.equibop.configDir}/settings.json" "${config.programs.nixcord.equibop.configDir}/settings/settings.json" # keep-sorted end ]; in { imports = [inputs.nixcord.homeModules.nixcord];
programs.nixcord = { enable = true; discord.enable = false;
equibop = { enable = true; configDir = "${config.xdg.configHome}/equibop"; }; };
# Let Equibop persist runtime changes to its generated settings. home = { file = genAttrs settingsPaths (_: {enable = mkForce false;});
activation.nixcordEquibopWritableSettings = dag.entryAfter ["writeBoundary"] ( concatMapStringsSep "\n" (path: '' settings=${escapeShellArg path} if [[ -L "$settings" ]]; then run rm "$settings" fi run ${getExe' coreutils "install"} -Dm644 ${escapeShellArg config.home.file.${path}.source} "$settings" '') settingsPaths ); }; };}