about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--flake.nix3
-rw-r--r--machines/t14/configuration.nix6
-rw-r--r--rebuild/rebuild.nix2
3 files changed, 6 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 6a1b9f8..e9465c1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,8 +30,7 @@
 				specialArgs = {inherit inputs;};
 				modules = [
 					./machines/t14/configuration.nix
-	
-						inputs.home-manager.nixosModules.default
+					inputs.home-manager.nixosModules.default
 						{
 							home-manager.useGlobalPkgs = true;
 							home-manager.useUserPackages = true;
diff --git a/machines/t14/configuration.nix b/machines/t14/configuration.nix
index 07fe3fc..7e7bff1 100644
--- a/machines/t14/configuration.nix
+++ b/machines/t14/configuration.nix
@@ -1,6 +1,7 @@
 { config, pkgs, ... }:
-
-{
+let
+	rebuild = pkgs.writeShellScriptBin "rebuild" (builtins.readFile ../../rebuild/rebuild.sh);
+in {
 	imports =
 		[ # Include the results of the hardware scan.
 		../base.nix
@@ -47,6 +48,7 @@
 	environment.systemPackages = with pkgs; [
 #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
 #  wget
+		rebuild
 	];
 
 # Some programs need SUID wrappers, can be configured further or are
diff --git a/rebuild/rebuild.nix b/rebuild/rebuild.nix
index f4b5e39..2073b43 100644
--- a/rebuild/rebuild.nix
+++ b/rebuild/rebuild.nix
@@ -2,4 +2,4 @@
 pkgs.runCommand "rebuild" ''
   mkdir -p $out/bin
   cp ${./rebuild.sh} $out/bin/rebuild
-'';
+''