diff --git a/devshells/satellite.nix b/devshells/satellite.nix index a8be4b8..9138271 100644 --- a/devshells/satellite.nix +++ b/devshells/satellite.nix @@ -1,10 +1,11 @@ -{ pkgs, ... }: +{ pkgs, upkgs, ... }: pkgs.mkShell { - packages = with pkgs; [ - just - python3 - sops - ssh-to-age - age + packages = [ + pkgs.just # script runner + pkgs.python3 # used throughout a bunch of just recipes + pkgs.sops # just sops-rekey + pkgs.ssh-to-age # just ssh-to-age + pkgs.age # just age-public-key + upkgs.nixos-rebuild-ng ]; } diff --git a/home/features/desktop/firefox/default.nix b/home/features/desktop/firefox/default.nix index 2e7a036..629c727 100644 --- a/home/features/desktop/firefox/default.nix +++ b/home/features/desktop/firefox/default.nix @@ -106,7 +106,7 @@ }; in { - "Google".metaData.alias = "@g"; + "google".metaData.alias = "@g"; } // lib.attrsets.mapAttrs (_: mkBasicSearchEngine) (lib.importTOML ./engines.toml); # }}} diff --git a/home/features/neovim/config/spell/en.utf-8.add b/home/features/neovim/config/spell/en.utf-8.add index 518536e..488da2a 100644 --- a/home/features/neovim/config/spell/en.utf-8.add +++ b/home/features/neovim/config/spell/en.utf-8.add @@ -53,3 +53,4 @@ observenat/! SHA256 Fatalis CNAME +homotopically diff --git a/hosts/nixos/common/optional/pipewire.nix b/hosts/nixos/common/optional/pipewire.nix index c26e096..97c2b27 100644 --- a/hosts/nixos/common/optional/pipewire.nix +++ b/hosts/nixos/common/optional/pipewire.nix @@ -1,7 +1,7 @@ # This handles audio stuff { security.rtkit.enable = true; - hardware.pulseaudio.enable = false; + services.pulseaudio.enable = false; services.pipewire = { enable = true; diff --git a/justfile b/justfile index e500bfc..e44adf6 100644 --- a/justfile +++ b/justfile @@ -5,12 +5,13 @@ default: hostname := `hostname` # {{{ Nixos rebuilds -[doc("Wrapper around `nixos-rebuild`, taking care of the generic arguments")] +[doc("Wrapper around `nixos-rebuild`")] [group("nix")] -nixos-rebuild action="switch" host=hostname: +nixos-rebuild action="switch" host=hostname ng="1": #!/usr/bin/env python3 import subprocess + ng = "{{ng}}" != "0" host = "{{host}}" users = { 'tethys': 'adrielus', @@ -19,25 +20,31 @@ nixos-rebuild action="switch" host=hostname: } args = [ - "nixos-rebuild", + "nixos-rebuild-ng" if ng else "nixos-rebuild", "{{action}}", "--show-trace", - "--fast", "--accept-flake-config", "--flake", - ".#{{host}}" + ".#{{host}}", + "--no-reexec" if ng else "--fast" ] - if "{{host}}" == "{{hostname}}": + if host == "{{hostname}}": print("🧬 Switching nixos configuration (locally) for '{{BLUE + host + NORMAL}}'") - args = ["sudo", *args] + args = [ "sudo", *args ] else: print("🧬 Switching nixos configuration (remotely) for '{{BLUE + host + NORMAL}}'") - args.append("--use-remote-sudo") - args += ["--target-host", f"{users[host]}@{host}"] + args += [ "--target-host", f"{users[host]}@{host}" ] + if ng: + args += [ "--sudo", "--ask-sudo-password" ] + else: + args += [ "--use-remote-sudo" ] - subprocess.run(args, check=True) - print("🚀 All done!") + try: + subprocess.run(args, check=True) + print("🚀 All done!") + except KeyboardInterrupt: + print("🪓 Command cancelled") # }}} # {{{ Miscellaneous nix commands [doc("Build the custom ISO provided by the flake")]