nix
This commit is contained in:
parent
30edcfad3f
commit
7a60d0e1a0
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
## Commands
|
||||
1. nixos-rebuild switch --flake#homeControl #Rebuild and Switch
|
@ -3,7 +3,8 @@
|
||||
./bootloader.nix
|
||||
./env.nix
|
||||
./user.nix
|
||||
./virtualization.nix
|
||||
./podman.nix
|
||||
./homeassistant.nix
|
||||
./bluetooth.nix
|
||||
];
|
||||
}
|
14
nixos/modules/homeassistant.nix
Normal file
14
nixos/modules/homeassistant.nix
Normal 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
7
nixos/modules/nfs.nix
Normal 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" ];
|
||||
};
|
||||
}
|
@ -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";
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{ pkgs-stable, ... }: {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.virt-manager = {
|
||||
enable = true;
|
||||
package = pkgs-stable.virt-manager;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user