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;
|
inherit pkgs;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs attrs;
|
inherit inputs attrs;
|
||||||
|
targets.genericLinux.enable = true;
|
||||||
host = {
|
host = {
|
||||||
hostName = "e";
|
hostName = "e";
|
||||||
inherit (attrs) username;
|
inherit (attrs) username;
|
||||||
|
|
@ -29,6 +30,7 @@
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./home.nix
|
./home.nix
|
||||||
|
./min.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,16 @@
|
||||||
{inputs, ...}: {
|
{
|
||||||
|
inputs,
|
||||||
|
attrs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
nix = {
|
nix = {
|
||||||
registry.nixpkgs.flake = inputs.nixpkgs;
|
registry.nixpkgs.flake = inputs.nixpkgs;
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
|
inherit (attrs) username;
|
||||||
stateVersion = "22.11";
|
stateVersion = "22.11";
|
||||||
|
homeDirectory = "/home/" + attrs.username;
|
||||||
file = {
|
file = {
|
||||||
".local/bin" = {
|
".local/bin" = {
|
||||||
source = ../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,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
attrs,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -9,8 +8,6 @@
|
||||||
../shared/wayland/default.nix
|
../shared/wayland/default.nix
|
||||||
];
|
];
|
||||||
home = {
|
home = {
|
||||||
inherit (attrs) username;
|
|
||||||
homeDirectory = "/home/" + attrs.username;
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# gaming
|
# gaming
|
||||||
steam
|
steam
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue