feat: Configure workshop VM with bash and Abra utilities
This commit is contained in:
10
common.nix
10
common.nix
@@ -25,7 +25,7 @@ isoConfig // {
|
|||||||
services.getty.autologinUser = "workshop";
|
services.getty.autologinUser = "workshop";
|
||||||
users.users.workshop = {
|
users.users.workshop = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.bash; # Simple bash instead of zsh
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||||
password = "";
|
password = "";
|
||||||
};
|
};
|
||||||
@@ -84,9 +84,10 @@ isoConfig // {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh = {
|
# Simple bash configuration with custom functions
|
||||||
enable = true;
|
programs.bash = {
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
# Workshop welcome and command definitions
|
||||||
echo "CODE CRISPIES Workshop Environment"
|
echo "CODE CRISPIES Workshop Environment"
|
||||||
echo "Mode: Local Development + Cloud Access"
|
echo "Mode: Local Development + Cloud Access"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -226,8 +227,6 @@ isoConfig // {
|
|||||||
echo " 2. Try local: recipes → deploy wordpress → browser"
|
echo " 2. Try local: recipes → deploy wordpress → browser"
|
||||||
echo " 3. Try cloud: connect hopper → same abra commands"
|
echo " 3. Try cloud: connect hopper → same abra commands"
|
||||||
}
|
}
|
||||||
|
|
||||||
export -f setup-traefik deploy connect recipes browser desktop help
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -235,7 +234,6 @@ isoConfig // {
|
|||||||
enable = true;
|
enable = true;
|
||||||
desktopManager.xfce.enable = true;
|
desktopManager.xfce.enable = true;
|
||||||
displayManager.lightdm.enable = true;
|
displayManager.lightdm.enable = true;
|
||||||
# Don't set autoLogin here - it conflicts with the VM config
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Don't auto-start GUI, let user choose
|
# Don't auto-start GUI, let user choose
|
||||||
|
|||||||
Reference in New Issue
Block a user