flake: use 'username' config value

This commit is contained in:
Bruno BELANYI 2021-05-30 01:20:14 +02:00
parent b90be0acdf
commit 4f1f687eea

View file

@ -52,12 +52,12 @@
];
}
home-manager.nixosModules.home-manager
{
home-manager.users.ambroisie = import ./home;
({ config, ... }: {
home-manager.users.${config.my.username} = import ./home;
# Nix Flakes compatibility
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
})
# Include generic settings
./modules
# Include bundles of settings