diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-12-03 11:00:53 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-12-03 11:00:53 +0100 |
| commit | cfa23cec90f8bd93ac7bdd44a355ae5899edcf04 (patch) | |
| tree | 310e82ba5baa0376fb94b9422d7f56ff5c29c5df | |
| parent | ed247309066957c24aad01cfb41ae3eb294951d0 (diff) | |
factorize path to home-manager config
| -rw-r--r-- | nixos/users.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/users.nix b/nixos/users.nix index 04265e0..724d295 100644 --- a/nixos/users.nix +++ b/nixos/users.nix @@ -1,6 +1,7 @@ -{ ... }: +{ config, ... }: -{ +let cfg = config.users.users; +in { users.users.qaristote = { isNormalUser = true; extraGroups = [ @@ -11,7 +12,7 @@ }; home-manager = { - users.qaristote = import /home/qaristote/.config/nixpkgs; + users.qaristote = import (cfg.qaristote.home + /.config/nixpkgs); useGlobalPkgs = false; useUserPackages = true; # to enable fontconfig inside home-manager }; |
