+chromium inhibit session storage, +.profile as home.file

This commit is contained in:
sascha.koenig 2025-11-11 13:14:15 +01:00
parent e997ec0d49
commit 93af889536

View File

@ -67,6 +67,9 @@
"--password-store=basic" "--password-store=basic"
"--start-fullscreen" "--start-fullscreen"
"--ozone-platform=x11" "--ozone-platform=x11"
"--disable-restore-session-state"
"--disable-logging"
"--disable-session-storage"
]; ];
}; };
@ -151,11 +154,6 @@
"float, class:confirmreset" "float, class:confirmreset"
"float, title:Open File" "float, title:Open File"
"float, title:branchdialog" "float, title:branchdialog"
"float, class:pavucontrol-qt"
"float, class:pavucontrol"
"fullscreen, class:wlogout"
"float, title:wlogout"
"fullscreen, title:wlogout"
"bordercolor rgb(ffffff),xwayland:1" "bordercolor rgb(ffffff),xwayland:1"
"workspace 1,class:(chromium-browser)" "workspace 1,class:(chromium-browser)"
"fullscreen,class:(chromium-browser)" "fullscreen,class:(chromium-browser)"
@ -195,6 +193,40 @@
# Home Manager is pretty good at managing dotfiles. The primary way to manage # Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { home.file = {
".profile".text = ''
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
if [[ -z $DISPLAY ]] && [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) == /dev/tty1 ]]; then
exec nixGL Hyprland
fi
'';
# # Building this configuration will create a copy of 'dotfiles/screenrc' in # # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a # # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy. # # symlink to the Nix store copy.