why does nixos require me to commit before rebuilding........

This commit is contained in:
maxstrb 2026-03-14 22:42:57 +01:00
parent 260eed30e3
commit 01b2970436
4 changed files with 38 additions and 22 deletions

View file

@ -10,15 +10,12 @@
description = "Enable games module."; description = "Enable games module.";
}; };
}; };
imports = imports = [
[ ./daily_apps.nix
./daily_apps.nix ./niri.nix
./niri.nix ./nvf.nix
./nvf.nix ./shell
./shell ./create-project/create-project.nix
./create-project/create-project.nix ./games
] ];
++ lib.optionals config.myModules.games.enable [
./games
];
} }

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./minecraft.nix ./minecraft.nix
./heroic.nix
]; ];
} }

View file

@ -0,0 +1,12 @@
{
pkgs,
config,
lib,
...
}: {
config = lib.mkIf config.myModules.games.enable {
home.packages = with pkgs; [
heroic
];
};
}

View file

@ -1,12 +1,18 @@
{pkgs, ...}: { {
home.packages = with pkgs; [ pkgs,
heroic config,
(pkgs.prismlauncher.override { lib,
jdks = [ ...
pkgs.temurin-bin-21 }: {
pkgs.temurin-bin-8 config = lib.mkIf config.myModules.games.enable {
pkgs.temurin-bin-17 home.packages = [
]; (pkgs.prismlauncher.override {
}) jdks = [
]; pkgs.temurin-bin-21
pkgs.temurin-bin-8
pkgs.temurin-bin-17
];
})
];
};
} }