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

@@ -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";
};
}