diff --git a/flake.lock b/flake.lock index ce1e248..97dd770 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1716908526, - "narHash": "sha256-Zl6e/sEVDh07K47XxDGPsXTYT4nI6llUDbQ4xMIwp7k=", + "lastModified": 1719827439, + "narHash": "sha256-tneHOIv1lEavZ0vQ+rgz67LPNCgOZVByYki3OkSshFU=", "owner": "nix-community", "repo": "home-manager", - "rev": "373ead20606efa9181cd15ba19a5deac7ead1492", + "rev": "59ce796b2563e19821361abbe2067c3bb4143a7d", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1716881121, - "narHash": "sha256-oTf3enbe/lbiNzsyZ8ria+422hx4e/FB3xQcY2LPnJw=", + "lastModified": 1719895800, + "narHash": "sha256-xNbjISJTFailxass4LmdWeV4jNhAlmJPwj46a/GxE6M=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "806e9d4a933dd1e75592e88894d4bd2f296f5bbf", + "rev": "6e253f12b1009053eff5344be5e835f604bb64cd", "type": "github" }, "original": { @@ -38,11 +38,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1716509168, - "narHash": "sha256-4zSIhSRRIoEBwjbPm3YiGtbd8HDWzFxJjw5DYSDy1n8=", + "lastModified": 1719848872, + "narHash": "sha256-H3+EC5cYuq+gQW8y0lSrrDZfH71LB4DAf+TDFyvwCNA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "bfb7a882678e518398ce9a31a881538679f6f092", + "rev": "00d80d13810dbfea8ab4ed1009b09100cca86ba8", "type": "github" }, "original": { diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 6c63ee1..c9c4cd4 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -61,11 +61,14 @@ # services.xserver.libinput.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. - programs.zsh.enable = true; + programs.nix-ld.enable = true; + programs.nix-ld.libraries = with pkgs; [ + ]; + programs.zsh.enable = true; users.users.k = { isNormalUser = true; description = "k"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "libvirtd" ]; packages = with pkgs; [zsh]; shell = pkgs.zsh; }; diff --git a/hosts/server/service.nix b/hosts/server/service.nix index e1b39d9..59169f1 100644 --- a/hosts/server/service.nix +++ b/hosts/server/service.nix @@ -40,10 +40,14 @@ services.home-assistant = { enable = true; - extraComponents = ["wiz" "fail2ban"]; + extraComponents = ["wiz" "fail2ban" "whisper" "piper" "wyoming"]; config = { - http.server_port=8003; - default_config = {}; + default_config={}; + http = { + use_x_forwarded_for="true"; + trusted_proxies=["127.0.0.1"]; + server_port=8003; + }; }; }; @@ -169,4 +173,20 @@ acceptTerms = true; defaults.email = "markers711@gmail.com"; }; + virtualisation.libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + runAsRoot = true; + swtpm.enable = true; + ovmf = { + enable = true; + packages = [(pkgs.OVMF.override { + secureBoot = true; + tpmSupport = true; + }).fd]; + }; + }; +}; + }