From f692217356aa724d17a34ce24c021068d10ea04c Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 22 Feb 2024 14:36:21 -0600 Subject: [PATCH 1/3] Thablet to kde --- nixos/thablet.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos/thablet.nix b/nixos/thablet.nix index dc859d9..31971f6 100644 --- a/nixos/thablet.nix +++ b/nixos/thablet.nix @@ -14,7 +14,8 @@ inputs.hardware.nixosModules.lenovo-thinkpad-x1-yoga desktop-usage fonts - gnome + # gnome + kde-plasma wifi flanfam flanfamkiosk @@ -39,8 +40,10 @@ #with pkgs; []; - programs.steam.enable = true; - programs.steam.remotePlay.openFirewall = true; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; + }; # https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Yoga_(Gen_3)#Using_acpi_call systemd.services.activate-touch-hack = { From 86de1944fe002e0a6e3294e2a63a377ace2f599c Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 22 Feb 2024 15:11:36 -0600 Subject: [PATCH 2/3] Make flanilla a family-friendly (creative and peaceful) server --- modules/nixos/common.nix | 1 + nixos/beefcake.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 44ca581..e6827e1 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -28,6 +28,7 @@ in { services.journald.extraConfig = "SystemMaxUse=1G"; home-manager.useGlobalPkgs = true; + # home-manager.useUserPkgs = true; # wut is this? environment = { variables = { diff --git a/nixos/beefcake.nix b/nixos/beefcake.nix index 245e69f..e557935 100644 --- a/nixos/beefcake.nix +++ b/nixos/beefcake.nix @@ -815,6 +815,10 @@ in { STOP_SERVER_ANNOUNCE_DELAY = "20"; TZ = "America/Chicago"; VERSION = "1.20.4"; + OPS = "lytedev"; + MODE = "creative"; + DIFFICULTY = "peaceful"; + ONLINE_MODE = "false"; MEMORY = "8G"; MAX_MEMORY = "16G"; ALLOW_FLIGHT = "true"; From fd4757d6978b32a3099084c29147d8cc264060fc Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 22 Feb 2024 15:28:52 -0600 Subject: [PATCH 3/3] prohibitpassword for root ssh though I doubt this actually changes anything --- modules/nixos/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index e6827e1..acf6fa7 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix @@ -138,7 +138,7 @@ in { settings = { PasswordAuthentication = false; KbdInteractiveAuthentication = false; - PermitRootLogin = "yes"; + PermitRootLogin = "prohibit-password"; }; openFirewall = lib.mkDefault true;