diff --git a/nixos/boxes/homescreen/default.nix b/nixos/boxes/homescreen/default.nix index bd348b0d..c7bdb4f6 100644 --- a/nixos/boxes/homescreen/default.nix +++ b/nixos/boxes/homescreen/default.nix @@ -1,19 +1,13 @@ -{ - config, - pkgs, - inputs, - lib, - ... -}: { - imports = [inputs.nixos-hardware.nixosModules.raspberry-pi-4]; +{ config, pkgs, inputs, lib, ... }: { + imports = [ inputs.nixos-hardware.nixosModules.raspberry-pi-4 ]; networking = { hostName = "homescreen"; - networkmanager = {enable = true;}; + networkmanager = { enable = true; }; }; hardware.enableRedistributableFirmware = true; - environment.systemPackages = with pkgs; [neovim htop btop atop]; + environment.systemPackages = with pkgs; [ neovim htop btop atop ]; services.fail2ban.enable = true; @@ -38,7 +32,7 @@ users = { mutableUsers = false; - users.kiosk = {isNormalUser = true;}; + users.kiosk = { isNormalUser = true; }; }; users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEo4R+6J3h6Ix3xWpOMdU7Es1/YxFchHw0c+kcCOJxFb cyryl@foureighty" @@ -47,12 +41,12 @@ "/" = { device = "/dev/disk/by-label/NIXOS_SD"; fsType = "ext4"; - options = ["noatime"]; + options = [ "noatime" ]; }; "/boot/firmware" = { device = "/dev/disk/by-label/FIRMWARE"; fsType = "vfat"; - options = ["nofail" "noauto"]; + options = [ "nofail" "noauto" ]; }; }; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; @@ -60,7 +54,7 @@ security.allowUserNamespaces = true; time.timeZone = "Europe/London"; - system.stateVersion = "22.05"; + system.stateVersion = "22.11"; nix = { settings.auto-optimise-store = true; diff --git a/nixos/boxes/homescreen/homeassistant.nix b/nixos/boxes/homescreen/homeassistant.nix deleted file mode 100644 index 4609c44c..00000000 --- a/nixos/boxes/homescreen/homeassistant.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - config, - pkgs, - ... -}: { - services.home-assistant = { - enable = true; - openFirewall = true; - - package = - (pkgs.home-assistant.override { - extraPackages = ps: with ps; []; - extraComponents = [ - "api" - "auth" - "cloud" - "config" - "default_config" - "http" - "mobile_app" - "onboarding" - "search" - "ssdp" - "system_log" - "tts" - "websocket_api" - "zeroconf" - "zwave" - ]; - }) - .overridePythonAttrs {doCheck = false;}; - }; -}