The Blue Update #1
|
@ -1,14 +1,14 @@
|
||||||
## Jimbo's Nix Systems
|
## Jimbo's Nix Systems
|
||||||
|
|
||||||
Thanks for taking a look at my Nix* flake!
|
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
|
### 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
|
### Usage
|
||||||
My config uses these tools:
|
My config uses these tools:
|
||||||
|
|
20
flake.nix
20
flake.nix
|
@ -38,22 +38,22 @@
|
||||||
inherit modules;
|
inherit modules;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit
|
inherit
|
||||||
unstable
|
unstable
|
||||||
hardware
|
hardware
|
||||||
lanzaboote
|
lanzaboote
|
||||||
mailserver
|
mailserver
|
||||||
minecraft
|
minecraft
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mkHome = modules: pkgs: home-manager.lib.homeManagerConfiguration {
|
mkHome = modules: pkgs: home-manager.lib.homeManagerConfiguration {
|
||||||
inherit modules pkgs;
|
inherit modules pkgs;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit
|
inherit
|
||||||
unstable
|
unstable
|
||||||
nur
|
nur
|
||||||
blender-bin
|
blender-bin
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in a new issue