From 513a2df379d64d960ee31c33bdabace9819163e6 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 26 Feb 2024 08:34:45 +0000 Subject: [PATCH] Switch to using nushell as default again Keep zsh as defaultUserShell (so same for root user), ensure emacs also uses zsh instead of nu for POSIX compliance Switch nu tables back to rounded configuration --- flake.nix | 7 ++++--- home/default.nix | 2 +- home/emacs/default.nix | 2 ++ home/nushell/config.nu | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 66ffd911..eb6ca6a7 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,7 @@ systemModules ? [], homeModules ? [], }: let - shell = "zsh"; + defaultUserShell = "zsh"; specialArgs = { inherit hostName user; accentColour = "base0E"; # magenta @@ -72,7 +72,7 @@ }; nixpkgs.config.allowUnfree = true; networking = {inherit hostName;}; - programs.${shell}.enable = true; + programs.${defaultUserShell}.enable = true; system = { inherit stateVersion; autoUpgrade = { @@ -88,7 +88,7 @@ }; }; users = { - defaultUserShell = pkgs.${shell}; + defaultUserShell = pkgs.${defaultUserShell}; users = let authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINI1dWlS16Keil0MGPWmMsBzx8F9ylfz+fRwxUr8/tZ/ ion" @@ -100,6 +100,7 @@ root.openssh = {inherit authorizedKeys;}; ${user} = { group = "users"; + shell = pkgs.nushell; isNormalUser = true; description = "Evie Litherland-Smith"; extraGroups = ["networkmanager" "wheel" "video" "input" "uinput"]; diff --git a/home/default.nix b/home/default.nix index 30127ddb..13f625d6 100644 --- a/home/default.nix +++ b/home/default.nix @@ -30,7 +30,7 @@ enable = true; git = true; icons = true; - enableAliases = true; + enableAliases = false; extraOptions = ["--octal-permissions"]; }; readline = { diff --git a/home/emacs/default.nix b/home/emacs/default.nix index e4b0ab40..2cec0124 100644 --- a/home/emacs/default.nix +++ b/home/emacs/default.nix @@ -11,9 +11,11 @@ package = pkgs.emacs29-pgtk; extraConfig = with builtins; with config; let + shell = "${pkgs.zsh}/bin/zsh"; font = "${stylix.fonts.monospace.name}-${toString stylix.fonts.sizes.applications}"; alpha = "${toString (floor (mul stylix.opacity.applications 100))}"; in '' + (customize-set-variable 'shell-file-name "${shell}") (add-to-list 'initial-frame-alist '(font . "${font}")) (add-to-list 'default-frame-alist '(font . "${font}")) (add-to-list 'initial-frame-alist '(alpha-background . ${alpha})) diff --git a/home/nushell/config.nu b/home/nushell/config.nu index 83318c62..0f89da5c 100644 --- a/home/nushell/config.nu +++ b/home/nushell/config.nu @@ -2,6 +2,6 @@ $env.config = { show_banner: false, edit_mode: emacs, table: { - mode: compact, + mode: rounded, }, }