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

@ -22,6 +22,7 @@
inherit pkgs;
extraSpecialArgs = {
inherit inputs attrs;
targets.genericLinux.enable = true;
host = {
hostName = "e";
inherit (attrs) username;
@ -29,6 +30,7 @@
};
modules = [
./home.nix
./min.nix
];
};
}

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;

5
home-manager/min.nix Normal file
View file

@ -0,0 +1,5 @@
_: {
home = {
username = "e";
};
}

View file

@ -1,7 +1,6 @@
{
pkgs,
lib,
attrs,
...
}: {
imports = [
@ -9,8 +8,6 @@
../shared/wayland/default.nix
];
home = {
inherit (attrs) username;
homeDirectory = "/home/" + attrs.username;
packages = with pkgs; [
# gaming
steam