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
]
++ lib.optionals config.myModules.games.enable [
./games ./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,6 +1,11 @@
{pkgs, ...}: { {
home.packages = with pkgs; [ pkgs,
heroic config,
lib,
...
}: {
config = lib.mkIf config.myModules.games.enable {
home.packages = [
(pkgs.prismlauncher.override { (pkgs.prismlauncher.override {
jdks = [ jdks = [
pkgs.temurin-bin-21 pkgs.temurin-bin-21
@ -9,4 +14,5 @@
]; ];
}) })
]; ];
};
} }