Add vm and boot option

This commit is contained in:
muon 2024-08-23 10:53:58 +00:00
parent b7d42c340b
commit 5660351d84
4 changed files with 32 additions and 10 deletions

View file

@ -26,6 +26,9 @@
# vps
mups = utils.mkHost ./hosts/mups/configuration.nix;
# vm
muvm = utils.mkHost ./hosts/muvm/configuration.nix;
};
homeManagerModules.default = ./modules/home;

View file

@ -17,12 +17,13 @@ in {
mods.desktop.enable = true;
mods.desktop.wayland.enable = false;
mods.desktop.gaming.enable = true;
mods.boot.enable = true;
mods.theme.enable = true;
mods.theme.scheme = "woodland";
mods.theme.wallpaper = ./wallpaper.png;
mods.containers.steam.enable = true;
mods.containers.steam.enable = false;
mods.server.media.enable = true;
mods.server.astral.enable = true;
mods.server.astral.autoStart = false;

View file

@ -10,11 +10,20 @@ in {
# System
mods.user.name = "muon";
networking.hostName = "mups";
networking.hostName = "muvm";
mods.home.file = ./home.nix;
users.users.muon.initialPassword = "changeme";
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
# Modules
mods.desktop.enable = true;
mods.boot.enable = false;
mods.theme.enable = true;
mods.theme.scheme = "woodland";

View file

@ -1,4 +1,12 @@
{ pkgs, lib, config, ... }: {
options.mods = {
boot.enable = lib.mkEnableOption {
description = "enables grub";
default = true;
};
};
config = lib.mkIf config.mods.boot.enable {
boot.loader = lib.mkIf config.mods.xorg.enable {
timeout = 0;
efi.canTouchEfiVariables = true;
@ -9,4 +17,5 @@
gfxmodeEfi = config.mods.monitors.primary.config.mode;
};
};
};
}