aboutsummaryrefslogtreecommitdiff
path: root/nixos (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-14home-environment: use per-user profile path in /etcRobert Helgesson1-0/+2
Before the profile directory value would point directly to the build output in the Nix store. Unfortunately this would cause an infinite loop if the user's configuration directly or indirectly refers to the profile directory value. Fixes #1188
2020-07-14nixos, nix-darwin: fix user packages installRobert Helgesson1-1/+1
It is insufficient to install the packages in `home.packages`, it has to be `home.path`, which includes configured extra package outputs or profile commands.
2020-05-26nixos: add mount check for home directoryFinn Behrens1-0/+2
PR #1271
2020-03-07nixos integration: add option 'useGlobalPkgs'Erik Arvstedt1-0/+7
PR #1059
2020-02-02Apply `nixfmt` on many filesRobert Helgesson1-67/+48
2020-01-21Switch to extended Nixpkg's `lib`Robert Helgesson1-16/+26
This change makes use of the `extend` function inside `lib` to inject a new `hm` field containing the Home Manager library functions. This simplifies use of the Home Manager library in the modules and reduces the risk of accidental infinite recursion. PR #994
2019-09-01doc: surround `name?` with fancier charactersRobert Helgesson1-1/+1
2019-08-22Replace use of `stdenv.shell` by `runtimeShell`Robert Helgesson1-1/+1
2019-08-18nixos: pass on warnings to the system configurationRobert Helgesson1-0/+7
Fixes #804
2019-08-18nixos: use non-deprecated fontconfig optionRobert Helgesson1-1/+1
2019-08-18nixos: add backup file extension and verbosity optionsTobias Happ1-0/+22
2019-05-25nixos: use usercfg.home.username for usernameJaka Hudoklin1-20/+23
Use `usercfg.home.username` for username instead of attribute name, as this way we can change username regardless of the name of the attribute.
2019-03-06nixos module: evaluate assertions from Home Manager modulesMaximilian Bosch1-0/+10
2019-02-16fontconfig: make fonts accessible when in NixOS moduleRobert Helgesson1-0/+6
2019-02-16nixos module: support NixOS user packages installRobert Helgesson1-5/+19
When using the NixOS module we cannot guarantee that the Nix store will be writable during startup. Installing the user packages through `nix-env -i` will fail in these cases. This commit adds a NixOS option `home-manager.useUserPackages` that, when enabled, installs user packages through the NixOS users.users.<name?>.packages option. Note, when submodule support and external package install is enabled then the installed packages are not available in `~/.nix-profile`. We therefore set `home.profileDirectory` directly to the HM profile packages.
2019-02-10nixos: use correct username for systemd serviceIngolf Wanger1-1/+1
2019-02-10Clean up support code for Home Manager as a submoduleRobert Helgesson1-4/+2
This removes the `nixosSubmodule` option in favor of a new option `submoduleSupport.enable`. This name better indicates that the submodule mode applies to both NixOS and nix-darwin.
2018-07-21nixos module: we need a running nix-daemonRobert Helgesson1-0/+2
Make sure the nix-daemon is prepared before we attempt to do the user activation otherwise the script may fail due to not being able to communicate.
2018-02-07allow Home Manager to be used as a NixOS moduleRobert Helgesson1-0/+57
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.