Allow overriding username

More specifically, this assists with the Steam Deck.
This commit is contained in:
Spotlight 2024-01-24 12:48:54 -06:00
parent 252fcc6f6f
commit a2c941ea44
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
3 changed files with 26 additions and 12 deletions

View file

@ -51,6 +51,16 @@
gpg = true;
};
};
# For a special case: with the Steam Deck, we have to assume the user
# is named `deck` due to its immutable system image.
x86_64-linux.homeConfigurations.deck = homeManager {
system = "x86_64-linux";
specialArgs = {
gpg = true;
username = "deck";
};
};
};
nixosModules.default = {