change generic to live

This commit is contained in:
2024-10-18 21:39:48 -05:00
parent 3c466571a7
commit 2181795bdb
8 changed files with 708 additions and 67 deletions

View File

@@ -1,14 +1,14 @@
{ config, lib, pkgs, core_inputs, ... }: {
imports = [
./generic
./live
./laptop
./homebox
];
sysconfig.laptop.enable = lib.mkDefault false;
sysconfig.homebox.enable = lib.mkDefault false;
sysconfig.generic.enable = lib.mkDefault true;
sysconfig.live.enable = lib.mkDefault true;
# Set your time zone.
time.timeZone = "America/Chicago";

View File

@@ -1,9 +0,0 @@
{ config, lib, ... }: {
options.sysconfig.generic.enable = lib.options.mkOption {
type = lib.types.bool;
default = true;
};
config = lib.mkIf config.sysconfig.generic.enable {};
}

View File

@@ -22,7 +22,7 @@
}
];
sysconfig.generic.enable = lib.mkForce false;
sysconfig.live.enable = lib.mkForce false;
boot = {
loader = {

View File

@@ -19,6 +19,8 @@
}
];
sysconfig.live.enable = lib.mkForce false;
nixpkgs.config.allowUnfree = true;
# Bootloader.

View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }: {
options.sysconfig.live.enable = lib.options.mkOption {
type = lib.types.bool;
default = true;
};
config = lib.mkIf config.sysconfig.live.enable {
services ={
xserver.enable = true;
displayManager.enable = true;
};
environment = {
shells = with pkgs; [ zsh ];
sessionVariables = {};
};
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
system.stateVersion = "24.05";
};
}