mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
docs: update README
This commit is contained in:
parent
f30be27328
commit
1d0eb3c32c
@ -191,7 +191,7 @@ Sudden changes can happen at any point.
|
|||||||
This has been moved into its own dedicated page at the website.
|
This has been moved into its own dedicated page at the website.
|
||||||
But still, we'll list it here.
|
But still, we'll list it here.
|
||||||
|
|
||||||
include::./docs/content/en-US/08-acknowledgement/index.adoc[tag=acknowledgement]
|
include::./docs/website/content/en/08-acknowledgement/index.adoc[tag=acknowledgement]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,7 +71,8 @@ Take note, it requires `foo-dogsquared` to be defined in `setups.home-manager.co
|
|||||||
setups.nixos.ni = {
|
setups.nixos.ni = {
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
formats = null;
|
formats = null;
|
||||||
homeManagerUsers = {
|
home-manager = {
|
||||||
|
branch = "home-manager-unstable";
|
||||||
nixpkgsInstance = "global";
|
nixpkgsInstance = "global";
|
||||||
users.foo-dogsquared = {
|
users.foo-dogsquared = {
|
||||||
userConfig = {
|
userConfig = {
|
||||||
@ -99,10 +100,10 @@ Take note, it requires `foo-dogsquared` to be defined in `setups.home-manager.co
|
|||||||
|
|
||||||
Points of interests include:
|
Points of interests include:
|
||||||
|
|
||||||
* `homeManagerUsers.nixpkgsInstance = "global";` option where it enforces the system to use the same nixpkgs instance throughout all of the home-manager users.
|
* `home-manager.nixpkgsInstance = "global";` option where it enforces the system to use the same nixpkgs instance throughout all of the home-manager users.
|
||||||
As an effect, it will apply of the home-manager users' overlays into the nixpkgs instance of the NixOS system instead.
|
As an effect, it will apply of the home-manager users' overlays into the nixpkgs instance of the NixOS system instead.
|
||||||
|
|
||||||
* `homeManagerUsers.users.<name>.userConfig` where it simply maps the home-manager user into a NixOS system by applying `users.users.<name>` with the given `userConfig` value.
|
* `home-manager.users.<name>.userConfig` where it simply maps the home-manager user into a NixOS system by applying `users.users.<name>` with the given `userConfig` value.
|
||||||
|
|
||||||
While this method makes for an incomplete system declaration in the config file and fully relies on the declarative host module to handle it, it isn't that much of a problem especially that you have to import third-party modules somewhere, regardless if it's with flakes or not. footnote:[Similar to the <<design-constraints, following design constraints for NixOS systems>>, home-manager configurations also don't allow for `inputs` to be part of the module arguments.]
|
While this method makes for an incomplete system declaration in the config file and fully relies on the declarative host module to handle it, it isn't that much of a problem especially that you have to import third-party modules somewhere, regardless if it's with flakes or not. footnote:[Similar to the <<design-constraints, following design constraints for NixOS systems>>, home-manager configurations also don't allow for `inputs` to be part of the module arguments.]
|
||||||
--
|
--
|
||||||
@ -119,6 +120,9 @@ This set of NixOS configuration have some constraints mainly for consistency (ea
|
|||||||
If you want to add home-manager users to it, make sure the included home-manager user is only buildable with the baseline home-manager configuration.
|
If you want to add home-manager users to it, make sure the included home-manager user is only buildable with the baseline home-manager configuration.
|
||||||
Otherwise, you'll have to use the `setups.nixos.configs.<name>.homeManagerUsers.users.<name>` interface for that.
|
Otherwise, you'll have to use the `setups.nixos.configs.<name>.homeManagerUsers.users.<name>` interface for that.
|
||||||
|
|
||||||
|
* Configuring nixpkgs instance is not allowed.
|
||||||
|
This is because the setup module for NixOS sets the nixpkgs instance themselves and NixOS systems doesn't allow further configuring the nixpkgs instance if `pkgs` is set externally.
|
||||||
|
|
||||||
* Private libraries and modules are allowed to be used here.
|
* Private libraries and modules are allowed to be used here.
|
||||||
Both custom-made libraries and modules are easy to setup both with flake and non-flake way so it isn't limiting us to lean one over the other.
|
Both custom-made libraries and modules are easy to setup both with flake and non-flake way so it isn't limiting us to lean one over the other.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user