# Glue for running Home Manager on Ubuntu. { config, ... }: { # Nix-installed apps/fonts/terminfo visible to the host system. targets.genericLinux.enable = true; # GUI apps come from apt/flatpak, so nix packages don't need host GPU drivers. targets.genericLinux.gpu.enable = false; # Things the stock ~/.profile and ~/.bashrc provided that are still needed. # ~/.local/bin: native installers put binaries here. home.sessionPath = [ "$HOME/.local/bin" "$HOME/bin" ]; programs.zsh = { # Keep ~/.zshrc etc. in $HOME dotDir = config.home.homeDirectory; # Ubuntu's /etc/zsh/zshrc runs compinit; Home Manager runs it again. envExtra = '' skip_global_compinit=1 ''; # zsh doesn't read /etc/profile, so /etc/profile.d/* (nix-daemon, /snap/bin, # flatpak XDG_DATA_DIRS, vte) would be skipped for login shells. profileExtra = '' emulate sh -c '. /etc/profile' ''; }; # GNOME's gcr-ssh-agent already owns SSH_AUTH_SOCK; don't start another agent. services.ssh-agent.enable = false; }