flakes/users/rin/default.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

{ config, lib, modules, pkgs, ... }: {
users.users.rin = {
isNormalUser = true;
2023-01-29 01:29:14 +07:00
extraGroups = [ "adbusers" "audio" "corectrl" "libvirtd" "video" "wheel" ];
shell = pkgs.zsh;
uid = 1001;
2021-09-20 15:09:44 +07:00
passwordFile = config.age.secrets.passwd.path;
};
home-manager.users.rin = { config, enableGUI, lib, pkgs, ... }: {
home = {
username = "rin";
homeDirectory = "/home/rin";
stateVersion = "21.05";
2021-10-23 11:09:00 +07:00
keyboard = null; # see https://github.com/nix-community/home-manager/issues/2219
};
imports = with modules.user; [
./packages.nix
sessionVariables
direnv
git
gpg
neovim
npm
2022-01-16 12:41:30 +07:00
pass
zsh
] ++ lib.optionals enableGUI [
theming
xdg
kitty
mpv
rofi
2023-01-23 22:18:27 +07:00
spicetify
dunst
2022-03-22 23:50:53 +07:00
eww
picom
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;
};
};
}