From 93af88953695ef0f082a7b7d221ebec07129c5d1 Mon Sep 17 00:00:00 2001 From: "sascha.koenig" Date: Tue, 11 Nov 2025 13:14:15 +0100 Subject: [PATCH] +chromium inhibit session storage, +.profile as home.file --- home/logistik/home.nix | 42 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/home/logistik/home.nix b/home/logistik/home.nix index f11821e..5484b92 100644 --- a/home/logistik/home.nix +++ b/home/logistik/home.nix @@ -67,6 +67,9 @@ "--password-store=basic" "--start-fullscreen" "--ozone-platform=x11" + "--disable-restore-session-state" + "--disable-logging" + "--disable-session-storage" ]; }; @@ -151,11 +154,6 @@ "float, class:confirmreset" "float, title:Open File" "float, title:branchdialog" - "float, class:pavucontrol-qt" - "float, class:pavucontrol" - "fullscreen, class:wlogout" - "float, title:wlogout" - "fullscreen, title:wlogout" "bordercolor rgb(ffffff),xwayland:1" "workspace 1,class:(chromium-browser)" "fullscreen,class:(chromium-browser)" @@ -195,6 +193,40 @@ # Home Manager is pretty good at managing dotfiles. The primary way to manage # plain files is through '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 # # the Nix store. Activating the configuration will then make '~/.screenrc' a # # symlink to the Nix store copy.