{ config, lib, modules, pkgs, ... }: { users.users.rin = { isNormalUser = true; extraGroups = [ "audio" "video" "wheel" ]; shell = pkgs.zsh; uid = 1001; }; home-manager.users.rin = { config, enableGUI, lib, pkgs, ... }: { home = { username = "rin"; homeDirectory = "/home/rin"; stateVersion = "21.05"; }; imports = with modules.user; [ packages-rin sessionVariables direnv git gpg neovim npm zsh ] ++ lib.optionals enableGUI [ theming xdg kitty mpv rofi dunst picom polybar xorg sxhkd bspwm ]; home.file.".local/bin/ipc-bridge.exe".source = builtins.fetchurl { url = "https://github.com/0e4ef622/wine-discord-ipc-bridge/releases/download/v0.0.1/winediscordipcbridge.exe"; sha256 = "1swn9spxpq6blm74kjmfz4ipq6a8qjzccvb2msb25pf5b1z7jnns"; }; home.file.".local/bin/osu" = { executable = true; source = ../scripts/osu; }; }; }