home-manager: move all config together, allow for multiple users

This commit is contained in:
Katherina Walshe-Grey 2024-08-29 17:55:30 +01:00
parent 8076f91738
commit f5191640f5
14 changed files with 19 additions and 13 deletions

18
common/home-manager.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
{
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
users = {
qenya = { config, lib, pkgs, osConfig, ... }: {
home.homeDirectory = osConfig.users.users.qenya.home;
imports = [
../home/qenya
];
};
};
};
}