1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Improve: Don't hardcode username for HM

This commit is contained in:
RGBCube 2023-05-06 16:21:30 +03:00
parent 812b7b53a1
commit 11c6bc5bb1
6 changed files with 5 additions and 7 deletions

View file

@ -32,7 +32,6 @@
with {
hostName = builtins.baseNameOf configDirectory;
hostPlatform = import (configDirectory + "/platform.nix");
userName = import (configDirectory + "/username.nix");
};
{
@ -46,7 +45,7 @@
};
# Helper function for DRY.
homeManagerConfiguration = attrs: {
homeManagerConfiguration = userName: attrs: {
home-manager.users.${userName} = attrs;
};
};