flake: use 'username' config value
This commit is contained in:
parent
b90be0acdf
commit
4f1f687eea
|
@ -52,12 +52,12 @@
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
({ config, ... }: {
|
||||||
home-manager.users.ambroisie = import ./home;
|
home-manager.users.${config.my.username} = import ./home;
|
||||||
# Nix Flakes compatibility
|
# Nix Flakes compatibility
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
}
|
})
|
||||||
# Include generic settings
|
# Include generic settings
|
||||||
./modules
|
./modules
|
||||||
# Include bundles of settings
|
# Include bundles of settings
|
||||||
|
|
Loading…
Reference in a new issue