mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add vm and boot option
This commit is contained in:
parent
b7d42c340b
commit
5660351d84
4 changed files with 32 additions and 10 deletions
|
|
@ -26,6 +26,9 @@
|
|||
|
||||
# vps
|
||||
mups = utils.mkHost ./hosts/mups/configuration.nix;
|
||||
|
||||
# vm
|
||||
muvm = utils.mkHost ./hosts/muvm/configuration.nix;
|
||||
};
|
||||
|
||||
homeManagerModules.default = ./modules/home;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,12 +1,21 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
boot.loader = lib.mkIf config.mods.xorg.enable {
|
||||
timeout = 0;
|
||||
efi.canTouchEfiVariables = true;
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
gfxmodeEfi = config.mods.monitors.primary.config.mode;
|
||||
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;
|
||||
grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
gfxmodeEfi = config.mods.monitors.primary.config.mode;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue