This repository has been archived on 2023-07-23. You can view files and clone it, but cannot push or open issues or pull requests.
gpd-configurations/home/user/home.nix
2023-07-04 14:16:34 +08:00

90 lines
2.4 KiB
Nix

{pkgs, ...}: {
home = {
stateVersion = "23.05"; # Static
username = "user";
homeDirectory = "/home/user";
packages = with pkgs; [
btop
bat
thefuck
ranger
icdiff
#rofi
#rofi-rbw
#nwg-launchers
nwg-bar
nwg-drawer
gnumake42
wget
axel
grim
slurp
unzip
p7zip
#appimage-run
cmatrix
gnome-software
];
sessionPath = [
".local/bin"
#"Applications"
];
sessionVariables = {
TERM = "kitty";
#GTK_IM_MODULE = "fcitx";
#QT_IM_MODULE = "fcitx";
#SDL_VIDEODRIVER = "wayland";
#SDL_IM_MODULE = "fcitx";
};
shellAliases = {
cao = "fuck";
top = "btop";
ls = "ls --color=auto";
cat = "bat -p --paging=never -u";
diff = "icdiff";
};
file = {
# hyprland
".config/hypr/hyprland.conf".source = ./files/hyprland.conf;
".config/hypr/hyprpaper.conf".source = ./files/hyprpaper.conf;
# ranger
".config/ranger/rc.conf".source = ./files/ranger-rc.conf;
# nwg
#".config/nwg-launchers".source = ./files/nwg-launchers;
".config/nwg-drawer".source = ./files/nwg-drawer;
".config/nwg-bar".source = ./files/nwg-bar;
# wallpapers
".local/share/wallpapers".source = ./wallpapers;
# Use flatseal to change permissions.
#".local/share/fonts".source = /run/current-system/sw/share/X11/fonts;
# Fix flatpak fonts
".local/share/flatpak/overrides/global".text = ''
[Context]
sockets=wayland
filesystems=/run/current-system/sw/share/X11/fonts:ro;/nix/store:ro;~/.icons;
'';
# Electron global settings
".config/electron-flags.conf".text = ''
--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto
--enable-webrtc-pipewire-capturer
'';
".config/electron13-flags.conf".text = ''
--enable-features=UseOzonePlatform
--ozone-platform=wayland
'';
};
};
}