From cf9b2896e0095ead6594bbba108594306fb42cf8 Mon Sep 17 00:00:00 2001 From: Kristian Date: Thu, 31 Aug 2023 14:59:22 +0200 Subject: [PATCH] alias for per device home-manager swithing --- laptop.nix | 4 ++++ pc.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/laptop.nix b/laptop.nix index aa6d917..f957c33 100644 --- a/laptop.nix +++ b/laptop.nix @@ -5,6 +5,10 @@ gnome-console ]; + config.programs.bash.shellAliases = { + hms = "home-manager switch --flake $HOME/.config/home-manager#laptop"; + }; + # Changes specific to the laptop config.dconf.settings = { "org/gnome/settings-daemon/plugins/power" = { diff --git a/pc.nix b/pc.nix index 8da81db..bb8e3de 100644 --- a/pc.nix +++ b/pc.nix @@ -9,6 +9,10 @@ osu-lazer ]; + config.programs.bash.shellAliases = { + hms = "home-manager switch --flake $HOME/.config/home-manager#pc"; + }; + config.dconf.settings = { "org/gnome/settings-daemon/plugins/power" = { sleep-inactive-ac-type = "nothing"; # Automatic suspend/hibernation creates a suspend/hibernation loop