Support generic and minimal home-manager installs
This commit is contained in:
parent
10c6af76f2
commit
61e9f7c417
4 changed files with 14 additions and 4 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
5
home-manager/min.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
home = {
|
||||
username = "e";
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue