mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +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
|
# vps
|
||||||
mups = utils.mkHost ./hosts/mups/configuration.nix;
|
mups = utils.mkHost ./hosts/mups/configuration.nix;
|
||||||
|
|
||||||
|
# vm
|
||||||
|
muvm = utils.mkHost ./hosts/muvm/configuration.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManagerModules.default = ./modules/home;
|
homeManagerModules.default = ./modules/home;
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,13 @@ in {
|
||||||
mods.desktop.enable = true;
|
mods.desktop.enable = true;
|
||||||
mods.desktop.wayland.enable = false;
|
mods.desktop.wayland.enable = false;
|
||||||
mods.desktop.gaming.enable = true;
|
mods.desktop.gaming.enable = true;
|
||||||
|
mods.boot.enable = true;
|
||||||
|
|
||||||
mods.theme.enable = true;
|
mods.theme.enable = true;
|
||||||
mods.theme.scheme = "woodland";
|
mods.theme.scheme = "woodland";
|
||||||
mods.theme.wallpaper = ./wallpaper.png;
|
mods.theme.wallpaper = ./wallpaper.png;
|
||||||
|
|
||||||
mods.containers.steam.enable = true;
|
mods.containers.steam.enable = false;
|
||||||
mods.server.media.enable = true;
|
mods.server.media.enable = true;
|
||||||
mods.server.astral.enable = true;
|
mods.server.astral.enable = true;
|
||||||
mods.server.astral.autoStart = false;
|
mods.server.astral.autoStart = false;
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,20 @@ in {
|
||||||
|
|
||||||
# System
|
# System
|
||||||
mods.user.name = "muon";
|
mods.user.name = "muon";
|
||||||
networking.hostName = "mups";
|
networking.hostName = "muvm";
|
||||||
mods.home.file = ./home.nix;
|
mods.home.file = ./home.nix;
|
||||||
|
|
||||||
|
users.users.muon.initialPassword = "changeme";
|
||||||
|
|
||||||
|
boot.loader.grub = {
|
||||||
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
};
|
||||||
|
|
||||||
# Modules
|
# Modules
|
||||||
mods.desktop.enable = true;
|
mods.desktop.enable = true;
|
||||||
|
mods.boot.enable = false;
|
||||||
|
|
||||||
mods.theme.enable = true;
|
mods.theme.enable = true;
|
||||||
mods.theme.scheme = "woodland";
|
mods.theme.scheme = "woodland";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
{ pkgs, lib, config, ... }: {
|
{ 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 {
|
boot.loader = lib.mkIf config.mods.xorg.enable {
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
|
|
@ -9,4 +17,5 @@
|
||||||
gfxmodeEfi = config.mods.monitors.primary.config.mode;
|
gfxmodeEfi = config.mods.monitors.primary.config.mode;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue