Add home-assistant

This commit is contained in:
TheWanderingCrow 2024-09-24 20:29:20 -04:00
parent 367385f1bc
commit 715e2f5d46
5 changed files with 47 additions and 0 deletions

View file

@ -26,6 +26,9 @@
vault = {
enable = lib.mkEnableOption "enable vault";
};
ha = {
enable = lib.mkEnableOption "enable home assistant user";
};
};
};
@ -48,6 +51,9 @@
vault = {
enable = lib.mkDefault false;
};
ha = {
enable = lib.mkDefault false;
};
};
fonts.packages = with pkgs; [

View file

@ -2,6 +2,7 @@
imports = [
./crow
./vault
./ha
];
config.home-manager = {

View file

@ -0,0 +1,5 @@
{lib, config, ...}: {
imports = [
./user.nix
];
}

View file

@ -0,0 +1,7 @@
{ lib, config, ...}: {
config.users.users.ha = lib.mkIf config.users.ha.enable {
isNormalUser = true;
initialPassword = "changeme";
extraGroups = [ "wheel" "libvirtd" ];
};
}