nixos-config/hosts
Gabriel Arazas 6cb1515d91 themes: rename into workflows
More self-descriptive == better. Plus it does imply that themes only
change aesthetics which is not often the case with the usual modules
that are defined here.
2022-08-27 13:41:12 +08:00
..
bootstrap hosts/bootstrap: fix configuration 2022-07-08 09:46:56 +08:00
graphical-installer profiles/desktop: rename into profiles/system 2022-04-17 11:00:38 +08:00
ni themes: rename into workflows 2022-08-27 13:41:12 +08:00
README.adoc docs: update READMEs and comments 2022-07-09 14:04:17 +08:00

These are NixOS configurations that are specific to a machine (e.g., desktop, servers, VMs, containers, installation media). Ideally, it should be made minimal as much as possible considering you also have to manage your users.

Integrating with custom modules

The host configurations placed here most likely use the custom NixOS modules. The custom modules shouldnt be imported manually from the host as this is already taken care of from the flake definition.

It is best practice to assume the host configurations make use of the custom NixOS modules, custom packages, and the flake inputs. In other words, always pay attention to ../flake.nix.

User management

For managing users, there are multiple ways to manage them with this config:

  • The usual users.users.${user} from system configuration (see man configuration.nix.5).

  • If you intend to import users from the ../users/nixos/, you can simply import them through imports in the system module.

    For a convenient option, there is the function getUsers defined from the private custom library. You can use it as follows:

    imports = [ # Your modules ]
        # Import the following NixOS users.
        ++ (lib.attrValues (lib.getUsers "nixos" [ "foo-dogsquared" "polski" ]));