flakes/users/rin/default.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

{ config, lib, modules, pkgs, ... }: {
2023-06-18 21:22:36 +07:00
programs.zsh.enable = true;
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
2023-09-13 21:41:36 +07:00
obs
rofi
2024-01-15 23:01:29 +07:00
# spicetify
2024-01-15 23:31:25 +07:00
dunst
2024-01-15 23:01:29 +07:00
# eww
# picom
#
# xorg
# sxhkd
# bspwm
2024-01-15 23:01:29 +07:00
#hyprland
];
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;
};
};
}