provides.<username> does not work when username is literal "user"
#647
Answered
by
sini
wtf9880
asked this question in
Help - Issues / Problem Solving / How To
|
Hi, I was struggling with my Nix config to find out why { denTest, ... }:
{
flake.tests.mybug = {
test-something = denTest (
{ den, igloo, ... }:
{
den.hosts.x86_64-linux.igloo.users.user = { };
den.aspects.igloo = {
provides.user = {
nixos.networking.hostName = "myhostname";
};
};
expr = igloo.networking.hostName;
expected = "myhostname";
}
);
};
}results: but when i change |
Answered by
sini
Aug 6, 2026
Replies: 1 comment 8 replies
|
That's because user is a reserved class keyword. |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@wtf9880 I have a workaround for you in #650 as it would seem it was a different bug than the one i described hitting your specific use-case; so if you must keep your user named user you're unblocked for now; but it'll break when den v2 lands later unless I find an elegant workaround for terminals
I recommend /not/ naming your user
user.