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:
parent
812b7b53a1
commit
11c6bc5bb1
6 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue