mirror of
https://github.com/nix-community/home-manager
synced 2024-11-04 18:29:45 +01:00
1bc59f7290
This is a NixOS module that is intended to be imported into a NixOS system configuration. It allows the system users to be set up directly from the system configuration. The actual profile switch is performed by a oneshot systemd unit per configured user that acts much like the regular `home-manager switch` command. With this implementation, the NixOS module does not work properly with the `nixos-rebuild build-vm` command. This can be solved by using the `users.users.<name?>.packages` option to install packages but this does not work flawlessly with certain Nixpkgs packages. In particular, for programs using the Qt libraries.
14 lines
242 B
Nix
14 lines
242 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
rec {
|
|
home-manager = import ./home-manager {
|
|
inherit pkgs;
|
|
path = toString ./.;
|
|
};
|
|
|
|
install = import ./home-manager/install.nix {
|
|
inherit home-manager pkgs;
|
|
};
|
|
|
|
nixos = import ./nixos;
|
|
}
|