mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
Add home-assistant
This commit is contained in:
parent
367385f1bc
commit
715e2f5d46
5 changed files with 47 additions and 0 deletions
|
|
@ -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; [
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./crow
|
||||
./vault
|
||||
./ha
|
||||
];
|
||||
|
||||
config.home-manager = {
|
||||
|
|
|
|||
5
modules/users/ha/default.nix
Normal file
5
modules/users/ha/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{lib, config, ...}: {
|
||||
imports = [
|
||||
./user.nix
|
||||
];
|
||||
}
|
||||
7
modules/users/ha/user.nix
Normal file
7
modules/users/ha/user.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ lib, config, ...}: {
|
||||
config.users.users.ha = lib.mkIf config.users.ha.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [ "wheel" "libvirtd" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue