This commit is contained in:
Errol Sancaktar 2024-08-22 10:05:14 -06:00
parent 30edcfad3f
commit 7a60d0e1a0
6 changed files with 30 additions and 12 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
## Commands
1. nixos-rebuild switch --flake#homeControl #Rebuild and Switch

View File

@ -3,7 +3,8 @@
./bootloader.nix
./env.nix
./user.nix
./virtualization.nix
./podman.nix
./homeassistant.nix
./bluetooth.nix
];
}

View File

@ -0,0 +1,14 @@
{
virtualisation.oci-containers = {
backend = "podman";
containers.homeassistant = {
volumes = [ "home-assistant:/config/hass" ];
environment.TZ = "America/Denver";
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [
"--network=host"
"--device=/dev/ttyACM0:/dev/ttyACM0"
];
};
};
}

7
nixos/modules/nfs.nix Normal file
View File

@ -0,0 +1,7 @@
{
fileSystems."/config/hass" = {
device = "10.10.9.14:/mnt/Storage/apps/homeassistant/hass-config";
fsType = "nfs";
options = [ "nfsvers=4.2" ];
};
}

View File

@ -4,14 +4,14 @@
users = {
defaultUserShell = pkgs.zsh;
users.amper = {
users.errol = {
isNormalUser = true;
description = "Ampersand";
extraGroups = [ "networkmanager" "wheel" "input" "libvirtd" ];
description = "Errol Sancaktar";
extraGroups = [ "networkmanager" "wheel" "input" "docker" ];
packages = with pkgs; [];
};
};
# Enable automatic login for the user.
services.getty.autologinUser = "amper";
# services.getty.autologinUser = "errol";
}

View File

@ -1,7 +0,0 @@
{ pkgs-stable, ... }: {
virtualisation.libvirtd.enable = true;
programs.virt-manager = {
enable = true;
package = pkgs-stable.virt-manager;
};
}