Working on reshuffling
This commit is contained in:
+6
-4
@@ -1311,13 +1311,15 @@ This sets up the zsh terminal
|
|||||||
|
|
||||||
let
|
let
|
||||||
username = "henrov";
|
username = "henrov";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.mySystem.terminals.zsh.enable =
|
options.mySystem.terminals.zsh.enable =
|
||||||
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
||||||
|
|
||||||
config = lib.mkIf (config.mySystem.terminals.zsh.enable or false) {
|
# Let op: config komt van NixOS module args, niet top-level
|
||||||
# Home Manager scope
|
config = {
|
||||||
home-manager.users.${username} = {
|
# mkIf kan hier veilig config.mySystem gebruiken
|
||||||
|
home-manager.users.${username} = lib.mkIf (config.mySystem.terminals.zsh.enable or false) {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|||||||
@@ -2,13 +2,15 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
username = "henrov";
|
username = "henrov";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
options.mySystem.terminals.zsh.enable =
|
options.mySystem.terminals.zsh.enable =
|
||||||
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
lib.mkEnableOption "Enable Zsh terminal with Oh-My-Zsh";
|
||||||
|
|
||||||
config = lib.mkIf (config.mySystem.terminals.zsh.enable or false) {
|
# Let op: config komt van NixOS module args, niet top-level
|
||||||
# Home Manager scope
|
config = {
|
||||||
home-manager.users.${username} = {
|
# mkIf kan hier veilig config.mySystem gebruiken
|
||||||
|
home-manager.users.${username} = lib.mkIf (config.mySystem.terminals.zsh.enable or false) {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user