From 0ba7ded953841196ba24852493c777eb07333cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 29 Apr 2023 12:59:16 +0100 Subject: [PATCH] refresh homescreen --- nixos/boxes/homescreen/default.nix | 22 ++++++---------- nixos/boxes/homescreen/homeassistant.nix | 33 ------------------------ 2 files changed, 8 insertions(+), 47 deletions(-) delete mode 100644 nixos/boxes/homescreen/homeassistant.nix 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;}; - }; -}