From 980b108c8284103f1e21120b7d108935fee40f36 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 28 Aug 2023 17:17:01 +0200 Subject: [PATCH] zsh --- yodaTab/configuration.nix | 11 ++++++++--- yodaTab/home-manager.nix | 21 ++++++++++++++++++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/yodaTab/configuration.nix b/yodaTab/configuration.nix index dd6a57e..fedf97a 100644 --- a/yodaTab/configuration.nix +++ b/yodaTab/configuration.nix @@ -24,8 +24,8 @@ # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + #networking.proxy.default = "http://user:password@proxy:port/"; + #networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # Enable networking networking.networkmanager.enable = true; @@ -79,7 +79,7 @@ # If you want to use JACK applications, uncomment this #jack.enable = true; - # use the example session manager (no others are packaged yet so this is enabled by default, + # Use the example session manager (no others are packaged yet so this is enabled by default, # no need to redefine it in your config for now) #media-session.enable = true; }; @@ -87,6 +87,11 @@ # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; + # https://nixos.wiki/wiki/Command_Shell + # https://nixos.wiki/wiki/Zsh + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.yoda = { isNormalUser = true; diff --git a/yodaTab/home-manager.nix b/yodaTab/home-manager.nix index 6f2c3d0..b83645c 100644 --- a/yodaTab/home-manager.nix +++ b/yodaTab/home-manager.nix @@ -14,6 +14,9 @@ in home.stateVersion = "23.05"; /* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ + + #home.username = "yoda"; + #home.homeDirectory = "/home/yoda"; # Git config using Home Manager modules programs.git = { @@ -30,6 +33,22 @@ in # enableSshSupport = true; # defaultCacheTtl = 1800; #}; - + +# xdg = { +# enable = true; +# #dataHome = "${config.xdg.home.homeDirectory}/.local/share"; +# }; + + programs.zsh = { + enable = true; + shellAliases = { + #ll = "ls -l"; + #update = "sudo nixos-rebuild switch"; + }; + history.size = 1000; + #history.path = "${config.xdg.dataHome}/.histfile"; + #history.ignoreDups = true; + #history.ignoreAllDups = true; + }; }; }