From b1ac0946b419aca68086ebf5090d403b2f130ee4 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 23 Aug 2023 15:09:52 +0900 Subject: [PATCH] Add more bash aliases --- home-manager/common/software/cli/bash.nix | 5 +++++ nixos/hosts/nixos-laptop/default.nix | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index 6cd908ec..fec31f48 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -94,6 +94,11 @@ nrs = "nixos-rebuild --upgrade switch"; nrt = "nixos-rebuild test"; nrb = "nixos-rebuild build"; + + # Rebuild everything + rebuild-home = "home-manager switch -b backup --flake /etc/nixos//git"; + rebuild-host = "nixos-rebuild switch --flake /etc/nixos/git"; + rebuild-all = "rebuild-home && rebuild-host"; }; }; }; diff --git a/nixos/hosts/nixos-laptop/default.nix b/nixos/hosts/nixos-laptop/default.nix index 32918cea..67820786 100644 --- a/nixos/hosts/nixos-laptop/default.nix +++ b/nixos/hosts/nixos-laptop/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, modulesPath, desktop, username ... }: { imports = [ - ../../common/services/powertop.nix # PowerTop - ../../common/modules/secureboot.nix # SecureBoot + ../../common/services/powertop.nix + ../../common/modules/secureboot.nix ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];