From ecfac3e8b27eb2f84c13c66b6cd944ac46509387 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Mon, 21 Oct 2024 03:58:00 -0400 Subject: [PATCH] Small tinkering to the flake, update readme again --- README.md | 8 ++++---- flake.nix | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index a5599d1..50cb3d1 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ ## Jimbo's Nix Systems Thanks for taking a look at my Nix* flake! -While this is primarily organized for my own use, you may find each individual service file or user config useful to read and reference to adapt for your own systems. +While this is primarily organized for my own use, you may find each individual service or config useful to read, reference, learn from, and adapt for your own systems. ### Installation -Installing this flake must be done from an existing system. A minimal install is fastest, but is up to you. After installing NixOS, backup your hardware-config.nix file, and adapt it to fit the format of ``/hosts``, adjusting for your specific system. +Installing this flake is best done from an existing system. A minimal install is fastest, but is up to you. After installing NixOS, backup your hardware-config.nix file, and adapt it to fit the format of ``/hosts``, adjusting for your specific system. -An initial install will can be done with ``nixos-rebuild switch --flake /etc/nixos/.#host``, where ``host`` is a hostname defined in your flake. You may also have to enable "experimental" features with a flag, such as nix-command and flakes. +An initial install will can be done with ``nixos-rebuild switch --flake /etc/nixos/.#host``, where ``host`` is a hostname defined in this flake. You may also have to enable "experimental" features with a flag, such as nix-command and flakes. -Home-Manager is handled separately from the system, despite being in the same folder. A rebuild of a user's home is done with ``home-manager switch --flake /etc/nixos``. This will pull the config as defined in the flake as ``user@host``, where ``user`` is the user running the command. +Home-Manager is handled separately from the system, despite being in the same folder. A rebuild of a user's home is done with ``home-manager switch --flake /etc/nixos/.#user@host``, as defined under ``homeConfigurations`` in the flake. ### Usage My config uses these tools: diff --git a/flake.nix b/flake.nix index de2594b..e130a7d 100644 --- a/flake.nix +++ b/flake.nix @@ -38,22 +38,22 @@ inherit modules; specialArgs = { inherit - unstable - hardware - lanzaboote - mailserver - minecraft - ; + unstable + hardware + lanzaboote + mailserver + minecraft + ; }; }; mkHome = modules: pkgs: home-manager.lib.homeManagerConfiguration { inherit modules pkgs; extraSpecialArgs = { inherit - unstable - nur - blender-bin - ; + unstable + nur + blender-bin + ; }; }; in {