From 61c4520841a8245c626115236ec3d19676c20e92 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:01:15 +0100 Subject: [PATCH] Update flake --- flake.lock | 18 +++++++++--------- nixos-configurations/pc/default.nix | 12 +++++++++--- nixos-configurations/server/default.nix | 1 + nixos-configurations/shared-desktop.nix | 1 + 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index a75b461..f75ecc2 100644 --- a/flake.lock +++ b/flake.lock @@ -113,11 +113,11 @@ ] }, "locked": { - "lastModified": 1704383912, - "narHash": "sha256-Be7O73qoOj/z+4ZCgizdLlu+5BkVvO2KO299goZ9cW8=", + "lastModified": 1706985585, + "narHash": "sha256-ptshv4qXiC6V0GCfpABz88UGGPNwqs5tAxaRUKbk1Qo=", "owner": "nix-community", "repo": "home-manager", - "rev": "26b8adb300e50efceb51fff6859a1a6ba1ade4f7", + "rev": "1ca210648a6ca9b957efde5da957f3de6b1f0c45", "type": "github" }, "original": { @@ -128,11 +128,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1704458188, - "narHash": "sha256-f6BYEuIqnbrs6J/9m1/1VdkJ6d63hO9kUC09kTPuOqE=", + "lastModified": 1706834982, + "narHash": "sha256-3CfxA7gZ+DVv/N9Pvw61bV5Oe/mWfxYPyVQGqp9TMJA=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "172385318068519900a7d71c1024242fa6af75f0", + "rev": "83e571bb291161682b9c3ccd48318f115143a550", "type": "github" }, "original": { @@ -144,11 +144,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1704194953, - "narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=", + "lastModified": 1706732774, + "narHash": "sha256-hqJlyJk4MRpcItGYMF+3uHe8HvxNETWvlGtLuVpqLU0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6", + "rev": "b8b232ae7b8b144397fdb12d20f592e5e7c1a64d", "type": "github" }, "original": { diff --git a/nixos-configurations/pc/default.nix b/nixos-configurations/pc/default.nix index 29989f4..af68b69 100644 --- a/nixos-configurations/pc/default.nix +++ b/nixos-configurations/pc/default.nix @@ -12,11 +12,17 @@ networking = { hostName = "pc"; firewall = { - allowedTCPPorts = [ 5173 8081 ]; - allowedUDPPorts = [ 5173 8081 ]; + allowedTCPPorts = [ 5173 8081 53317 ]; + allowedUDPPorts = [ 5173 8081 53317 ]; }; }; + boot.kernelParams = [ "amd_iommu=on" ]; + + virtualisation.libvirtd.enable = true; + virtualisation.libvirtd.qemu.swtpm.enable = true; + programs.virt-manager.enable = true; + services = { syncthing = { enable = true; @@ -43,7 +49,7 @@ home-manager.users.thiloho = { pkgs, lib, ... }: { programs.git.signing.key = "5ECD00BDC15A987E"; home = { - packages = with pkgs; [ blender inkscape libcec ]; + packages = with pkgs; [ blender inkscape localsend ]; stateVersion = "23.05"; }; }; diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 5820d12..7cb7305 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -66,6 +66,7 @@ difficulty = 3; max-players = 10; motd = "Thilo's SMP"; + white-list = true; }; }; nginx = { diff --git a/nixos-configurations/shared-desktop.nix b/nixos-configurations/shared-desktop.nix index 8872693..eb938ce 100644 --- a/nixos-configurations/shared-desktop.nix +++ b/nixos-configurations/shared-desktop.nix @@ -58,6 +58,7 @@ astro-build.astro-vscode dbaeumer.vscode-eslint bradlc.vscode-tailwindcss + esbenp.prettier-vscode ]; userSettings = { "nix.enableLanguageServer" = true;