diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-04-03 00:37:59 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-04-03 00:37:59 +0530 |
| commit | ead444837d2c9e6d0f73690ffb713d18920523af (patch) | |
| tree | ec7f2d51ed797b0db469209b5f7976f9e24c539f /nixos | |
| parent | 6f836a75007c7d41fa549de78769845d7c9c2a7f (diff) | |
now my entire disk is on nixos + games :)
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/boot.nix | 8 | ||||
| -rw-r--r-- | nixos/configuration.nix | 4 | ||||
| -rw-r--r-- | nixos/games/default.nix | 9 | ||||
| -rw-r--r-- | nixos/games/minecraft.nix | 6 |
4 files changed, 21 insertions, 6 deletions
diff --git a/nixos/boot.nix b/nixos/boot.nix index b3563f9..b94deff 100644 --- a/nixos/boot.nix +++ b/nixos/boot.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, dualbootedwithwindows, ... }: { boot.loader = { grub = { @@ -7,13 +7,13 @@ devices = ["nodev"]; useOSProber = true; extraEntries = '' - GRUB_SAVEDEFAULT=true + GRUB_SAVEDEFAULT=true'' + (if dualbootedwithwindows then '' menuentry "Windows" { insmod part_gpt insmod fat set root=(hd0,gpt1) chainloader /EFI/Microsoft/Boot/bootmgfw.efi - } + }'' else '''') + '' menuentry "Reboot" { reboot } @@ -35,7 +35,7 @@ }; }; efi.canTouchEfiVariables = true; - efi.efiSysMountPoint = "/boot/efi"; + efi.efiSysMountPoint = "/boot"; systemd-boot.enable = false; }; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7bb1948..c17e4c9 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, username, hostname, ... }: +{ config, pkgs, username, hostname, games, ... }: { imports = [ @@ -14,7 +14,7 @@ ./languages ./terminal_workspace ./opt - ]; + ] ++ (if games.enable then [ ./games ] else []); nix.settings = { cores = 6; diff --git a/nixos/games/default.nix b/nixos/games/default.nix new file mode 100644 index 0000000..75103a8 --- /dev/null +++ b/nixos/games/default.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: +{ + imports = + (if games.minecraft then [ ./minecraft.nix ] else []); + programs.steam.enable = true; + environment.systemPackages = with pkgs; [ + steam-run + ]; +} diff --git a/nixos/games/minecraft.nix b/nixos/games/minecraft.nix new file mode 100644 index 0000000..594f8bd --- /dev/null +++ b/nixos/games/minecraft.nix @@ -0,0 +1,6 @@ +{ config, pkgs, ... }: +{ + environment.systemPackages = with pkgs; [ + prismlauncher + ]; +} |
