Small tinkering to the flake, update readme again
This commit is contained in:
parent
507049314f
commit
ecfac3e8b2
|
@ -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:
|
||||
|
|
20
flake.nix
20
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 {
|
||||
|
|
Loading…
Reference in a new issue