Minecraft + removed nvidia driver on andrej-pc
This commit is contained in:
parent
4c6f30b099
commit
7f7866932c
6 changed files with 40 additions and 11 deletions
34
modules/home/programs/minecraft-bedrock/default.nix
Normal file
34
modules/home/programs/minecraft-bedrock/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
namespace,
|
||||
system,
|
||||
target,
|
||||
format,
|
||||
virtual,
|
||||
systems,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace}; let
|
||||
cfg = config.${namespace}.programs.minecraft-bedrock;
|
||||
impermanence = config.${namespace}.impermanence;
|
||||
in {
|
||||
options.${namespace}.programs.minecraft-bedrock = with types; {
|
||||
enable = mkBoolOpt false "Enable mcpelauncher";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [mcpelauncher-ui-qt];
|
||||
home.persistence = mkIf impermanence.enable {
|
||||
"${impermanence.persistentStorage}".directories = [
|
||||
{
|
||||
directory = ".local/share/mcpelauncher";
|
||||
method = "symlink";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@ in {
|
|||
home.persistence = mkIf impermanence.enable {
|
||||
"${impermanence.persistentStorage}".directories = [
|
||||
{
|
||||
directory = ".local/share/Prismlauncher";
|
||||
directory = ".local/share/PrismLauncher";
|
||||
method = "symlink";
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue