From e7fc91cb3e3df711e15de0fa99ec39a89012fb79 Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Sun, 17 Mar 2024 16:39:06 -0600 Subject: [PATCH 1/2] add direnv and rpi imager --- nate/desktop-configuration.nix | 1 + nate/modules/home-manager/home.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/nate/desktop-configuration.nix b/nate/desktop-configuration.nix index 413b473..9cdbf2c 100644 --- a/nate/desktop-configuration.nix +++ b/nate/desktop-configuration.nix @@ -73,6 +73,7 @@ in installGaming = deskCfg.installGaming; systemPackages = with pkgs; [ libreoffice + rpi-imager ]; }; diff --git a/nate/modules/home-manager/home.nix b/nate/modules/home-manager/home.nix index 3878d43..e52589b 100644 --- a/nate/modules/home-manager/home.nix +++ b/nate/modules/home-manager/home.nix @@ -157,6 +157,15 @@ userName = fullName; }; + programs = { + direnv = { + enable = true; + enableZshIntegration = true; # see note on other shells below + nix-direnv.enable = true; + }; + + bash.enable = true; # see note on other shells below + }; # Zsh setup programs.zsh = { enable = true; @@ -166,6 +175,7 @@ theme = "half-life"; }; initExtra = '' + eval "$(direnv hook zsh)" alias ask="nix-shell -p python310Packages.openai --run 'python ~/source/python/chat.py'" fzf_projects() { From d7a2371938c7dbaee26d5501f699c349049128ac Mon Sep 17 00:00:00 2001 From: Nathan Anderson Date: Sun, 17 Mar 2024 20:24:39 -0600 Subject: [PATCH 2/2] Added polkit auth to sway config --- nate/dotfiles/sway/config.d/autostart_applications | 2 +- nate/modules/sway/sway_conf.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nate/dotfiles/sway/config.d/autostart_applications b/nate/dotfiles/sway/config.d/autostart_applications index dca4bba..1e35c37 100644 --- a/nate/dotfiles/sway/config.d/autostart_applications +++ b/nate/dotfiles/sway/config.d/autostart_applications @@ -1,5 +1,5 @@ # Auth with polkit-gnome: -exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec lxqt-policykit-agent # Desktop notifications exec mako diff --git a/nate/modules/sway/sway_conf.nix b/nate/modules/sway/sway_conf.nix index fc04db1..ab623f1 100644 --- a/nate/modules/sway/sway_conf.nix +++ b/nate/modules/sway/sway_conf.nix @@ -78,6 +78,7 @@ wofi xdg-utils zsh + lxqt.lxqt-policykit # Fonts ] config.swaywm.systemPackages