change generic to live
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 {};
|
||||
}
|
||||
@@ -22,7 +22,7 @@
|
||||
}
|
||||
];
|
||||
|
||||
sysconfig.generic.enable = lib.mkForce false;
|
||||
sysconfig.live.enable = lib.mkForce false;
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
}
|
||||
];
|
||||
|
||||
sysconfig.live.enable = lib.mkForce false;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Bootloader.
|
||||
|
||||
24
system/configuration/live/default.nix
Normal file
24
system/configuration/live/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user