refresh homescreen

This commit is contained in:
Cyryl Płotnicki 2023-04-29 12:59:16 +01:00
parent 935535f629
commit 0ba7ded953
2 changed files with 8 additions and 47 deletions

View file

@ -1,19 +1,13 @@
{ { config, pkgs, inputs, lib, ... }: {
config, imports = [ inputs.nixos-hardware.nixosModules.raspberry-pi-4 ];
pkgs,
inputs,
lib,
...
}: {
imports = [inputs.nixos-hardware.nixosModules.raspberry-pi-4];
networking = { networking = {
hostName = "homescreen"; hostName = "homescreen";
networkmanager = {enable = true;}; networkmanager = { enable = true; };
}; };
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
environment.systemPackages = with pkgs; [neovim htop btop atop]; environment.systemPackages = with pkgs; [ neovim htop btop atop ];
services.fail2ban.enable = true; services.fail2ban.enable = true;
@ -38,7 +32,7 @@
users = { users = {
mutableUsers = false; mutableUsers = false;
users.kiosk = {isNormalUser = true;}; users.kiosk = { isNormalUser = true; };
}; };
users.extraUsers.root.openssh.authorizedKeys.keys = [ users.extraUsers.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEo4R+6J3h6Ix3xWpOMdU7Es1/YxFchHw0c+kcCOJxFb cyryl@foureighty" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEo4R+6J3h6Ix3xWpOMdU7Es1/YxFchHw0c+kcCOJxFb cyryl@foureighty"
@ -47,12 +41,12 @@
"/" = { "/" = {
device = "/dev/disk/by-label/NIXOS_SD"; device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4"; fsType = "ext4";
options = ["noatime"]; options = [ "noatime" ];
}; };
"/boot/firmware" = { "/boot/firmware" = {
device = "/dev/disk/by-label/FIRMWARE"; device = "/dev/disk/by-label/FIRMWARE";
fsType = "vfat"; fsType = "vfat";
options = ["nofail" "noauto"]; options = [ "nofail" "noauto" ];
}; };
}; };
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
@ -60,7 +54,7 @@
security.allowUserNamespaces = true; security.allowUserNamespaces = true;
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
system.stateVersion = "22.05"; system.stateVersion = "22.11";
nix = { nix = {
settings.auto-optimise-store = true; settings.auto-optimise-store = true;

View file

@ -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;};
};
}