From 47be02d6e12f1dc6ea354a8a9a8af56c253714e4 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Fri, 12 May 2023 18:27:06 +0100 Subject: [PATCH] gendry: install minecraft --- .../default.nix | 15 +++++++++++---- .../persist.nix | 6 ++++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix index 1eb41d6..c425b98 100644 --- a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/default.nix @@ -54,10 +54,6 @@ preAuthKeyFile = config.age.secrets."tailscale/gendry.jakehillion-terminals.ts.hillion.co.uk".path; }; - ## Password (for interactive logins) - age.secrets."passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake".file = ../../secrets/passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake.age; - users.users."jake".passwordFile = config.age.secrets."passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake".path; - security.sudo.wheelNeedsPassword = lib.mkForce true; ## Enable btrfs compression @@ -76,5 +72,16 @@ bitrate = 320; }; }; + + ## Password (for interactive logins) + age.secrets."passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake".file = ../../secrets/passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake.age; + + users.users."${config.custom.user}" = { + passwordFile = config.age.secrets."passwords/gendry.jakehillion-terminals.ts.hillion.co.uk/jake".path; + + packages = with pkgs; [ + prismlauncher + ]; + }; }; } diff --git a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix index 30e1449..95dd823 100644 --- a/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix +++ b/hosts/gendry.jakehillion-terminals.ts.hillion.co.uk/persist.nix @@ -60,4 +60,10 @@ device = "/data/system/var/lib/bluetooth"; options = [ "bind" ]; }; + + ## Minecraft + fileSystems."/home/jake/.local/share/PrismLauncher" = { + device = "/data/users/jake/.local/share/PrismLauncher"; + options = [ "bind" ]; + }; }