nixos-config/users
Gabriel Arazas 024102c45c home-manager/foo-dogsquared: get config into home
Now that I have time, I've learnt that Git submodules are not supported
well with flake-based setup. Instead, I'll use my dotfiles repo as one
of the inputs as a non-flake which is exactly what I want. NICE!
2022-07-06 07:46:40 +08:00
..
home-manager/foo-dogsquared home-manager/foo-dogsquared: get config into home 2022-07-06 07:46:40 +08:00
nixos/nixos Modularize nixos user 2022-02-05 18:52:19 +08:00
README.adoc Update documentation 2021-12-21 14:29:27 +08:00

This is where user-specific configurations comes in. Similar to modules, the top-level of this directory contains users for various types (e.g., home-manager, NixOS) where it contains individual users for that type.

Take note of the following structure:

users/
├── home-manager/
│   ├── foo-dogsquared/
│   ├── harepoint/
│   └── polski/
├── nixos/
│   ├── foo-dogsquared/
│   ├── harepoint/
│   ├── polski/
│   └── vmguest/
└── README.adoc

It doesnt require to have users to be present for all types. There are conventions for setting in each user type.

  • For NixOS user configuration, it is expect to only have one user with their respective user-specific configuration. This includes user-specific packages, home-manager-specific configuration (even importing them from ./home-manager users), and so forth. If you want to set users from the host, see Host-specific configurations for more details.

  • home-manager users are just home-manager configurations (i.e., $XDG_CONFIG_HOME/nix/home.nix). Thats pretty much it.