nm
This commit is contained in:
@@ -251,7 +251,6 @@
|
|||||||
"jallen-hass" = nixpkgs-unstable.lib.nixosSystem {
|
"jallen-hass" = nixpkgs-unstable.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
nixos-hardware.nixosModules.raspberry-pi-4
|
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
./hosts/homeassistant/configuration.nix
|
./hosts/homeassistant/configuration.nix
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
@@ -260,7 +259,7 @@
|
|||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.hass = import ./hosts/hass/home.nix;
|
home-manager.users.hass = import ./hosts/homeassistant/home.nix;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ in
|
|||||||
boot = {
|
boot = {
|
||||||
kernelModules = [ "nct6775" ];
|
kernelModules = [ "nct6775" ];
|
||||||
loader = {
|
loader = {
|
||||||
|
systemd-boot.enable = true;
|
||||||
efi = {
|
efi = {
|
||||||
canTouchEfiVariables = true;
|
canTouchEfiVariables = true;
|
||||||
efiSysMountPoint = "/boot";
|
efiSysMountPoint = "/boot";
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ let
|
|||||||
user = "hass";
|
user = "hass";
|
||||||
password = "$y$j9T$EkPXmsmIMFFZ.WRrBYCxS1$P0kwo6e4.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
|
password = "$y$j9T$EkPXmsmIMFFZ.WRrBYCxS1$P0kwo6e4.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
|
||||||
SSID = "Joey's Jungle 5G";
|
SSID = "Joey's Jungle 5G";
|
||||||
SSIDpassword = config.sops.templates."wifi-password".content;
|
SSIDpassword = "kR8v&3Qd"; # config.sops.templates."wifi-password".content;
|
||||||
interface = "wlan0";
|
interface = "wlp0s20f3";
|
||||||
timezone = "America/Chicago";
|
timezone = "America/Chicago";
|
||||||
hostname = "jallen-hass";
|
hostname = "jallen-hass";
|
||||||
in
|
in
|
||||||
@@ -34,7 +34,54 @@ in
|
|||||||
time.timeZone = timezone;
|
time.timeZone = timezone;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = lib.mkForce true;
|
networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# Configure the static connection for eno1
|
||||||
|
# ensureProfiles = {
|
||||||
|
# profiles = {
|
||||||
|
# joeys-jungle = {
|
||||||
|
# connection = {
|
||||||
|
# id = "joeys-jungle";
|
||||||
|
# permissions = "";
|
||||||
|
# type = "wifi";
|
||||||
|
# };
|
||||||
|
# ipv4 = {
|
||||||
|
# dns-search = "";
|
||||||
|
# method = "auto";
|
||||||
|
# };
|
||||||
|
# ipv6 = {
|
||||||
|
# addr-gen-mode = "stable-privacy";
|
||||||
|
# dns-search = "";
|
||||||
|
# method = "auto";
|
||||||
|
# };
|
||||||
|
# wifi = {
|
||||||
|
# mac-address-blacklist = "";
|
||||||
|
# mode = "infrastructure";
|
||||||
|
## ssid = SSID;
|
||||||
|
# };
|
||||||
|
# wifi-security = {
|
||||||
|
# auth-alg = "open";
|
||||||
|
# key-mgmt = "wpa-psk";
|
||||||
|
# psk = SSIDpassword;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# "static-eno1" = {
|
||||||
|
# connection = {
|
||||||
|
# id = "static-eno1";
|
||||||
|
# type = "ethernet";
|
||||||
|
# interface-name = "eno1";
|
||||||
|
# };
|
||||||
|
# ipv4 = {
|
||||||
|
# method = "manual";
|
||||||
|
# addresses = "10.0.1.19/24";
|
||||||
|
# gateway = "10.0.1.1";
|
||||||
|
# dns = "10.0.1.1";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
hostName = hostname;
|
hostName = hostname;
|
||||||
wireless = {
|
wireless = {
|
||||||
enable = false;
|
enable = false;
|
||||||
@@ -50,6 +97,18 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Enable Avahi for .local hostname resolution
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns4 = true; # For modern systems, use nssmdns4 instead of nssmdns
|
||||||
|
publish = {
|
||||||
|
enable = true;
|
||||||
|
addresses = true;
|
||||||
|
domain = true;
|
||||||
|
workstation = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user