Support generic and minimal home-manager installs

This commit is contained in:
Cal Jurgella 2024-05-29 18:03:52 -05:00
parent 10c6af76f2
commit 61e9f7c417
4 changed files with 14 additions and 4 deletions

View file

@ -1,10 +1,16 @@
{inputs, ...}: {
{
inputs,
attrs,
...
}: {
programs.home-manager.enable = true;
nix = {
registry.nixpkgs.flake = inputs.nixpkgs;
};
home = {
inherit (attrs) username;
stateVersion = "22.11";
homeDirectory = "/home/" + attrs.username;
file = {
".local/bin" = {
source = ../bin;