nixos/modules/base/home-manager.nix
Casper V. Kristensen 7536e3a2b1 Base
2023-08-01 15:35:59 +02:00

28 lines
703 B
Nix

{ home-manager, ... }: {
# https://nix-community.github.io/home-manager/index.html#sec-flakes-nixos-module
# https://nixos.wiki/wiki/Home_Manager
imports = [
home-manager.nixosModules.home-manager
];
home-manager = {
# Use the same nixpkgs as the system
useGlobalPkgs = true;
# Install packages to /etc/profiles instead of $HOME/.nix-profile, not sure why
useUserPackages = true;
users.caspervk = {
# Define the user and path Home Manager should manage
home = {
username = "caspervk";
homeDirectory = "/home/caspervk";
};
# Let Home Manager install and manage itself
programs.home-manager.enable = true;
};
};
}