Set fish as default shell, set home-manager to manage bash, zsh and fish configs

This commit is contained in:
Evie Litherland-Smith 2023-03-29 15:38:01 +01:00
parent 8df45499b8
commit 5b8d1da3f3
8 changed files with 45 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
@ -14,6 +14,7 @@
isNormalUser = true; isNormalUser = true;
description = "Evie Litherland-Smith"; description = "Evie Litherland-Smith";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
}; };
# Enable automatic login for the user. # Enable automatic login for the user.

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
let let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz"; home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
@ -12,8 +12,6 @@ in
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ ];
home-manager.useUserPackages = false; home-manager.useUserPackages = false;
home-manager.useGlobalPkgs = false; home-manager.useGlobalPkgs = false;
@ -22,6 +20,18 @@ in
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
programs.bash.enable = true;
programs.fish.enable = true;
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions = {
enable = true;
};
syntaxHighlighting = {
enable = true;
};
};
nix.gc = { nix.gc = {
automatic = true; automatic = true;

View file

@ -16,9 +16,6 @@
enable = true; enable = true;
userName = "Evie Litherland-Smith"; userName = "Evie Litherland-Smith";
}; };
programs.bash.enable = true;
programs.zsh.enable = true;
programs.fish.enable = true;
programs.starship = { programs.starship = {
enable = true; enable = true;
enableBashIntegration = true; enableBashIntegration = true;

View file

@ -0,0 +1,5 @@
{ ... }:
{
programs.bash.enable = true;
}

View file

@ -2,6 +2,9 @@
{ {
imports = [ imports = [
./bash.nix
./zsh.nix
./fish.nix
./qemu.nix ./qemu.nix
./python310.nix ./python310.nix
]; ];

View file

@ -0,0 +1,5 @@
{ ... }:
{
programs.fish.enable = true;
}

15
nixos/home-manager/packages/env/zsh.nix vendored Normal file
View file

@ -0,0 +1,15 @@
{ config, ... }:
{
programs.zsh = {
enable = true;
shellAliases = {
ll = "ls -l";
update = "sudo nixos-rebuild switch";
};
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
};
};
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
imports = [ imports = [
@ -14,6 +14,7 @@
isNormalUser = true; isNormalUser = true;
description = "Evie Litherland-Smith"; description = "Evie Litherland-Smith";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
}; };
# Enable automatic login for the user. # Enable automatic login for the user.