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 = [
@ -14,6 +14,7 @@
isNormalUser = true;
description = "Evie Litherland-Smith";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
};
# Enable automatic login for the user.

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
@ -12,8 +12,6 @@ in
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ ];
home-manager.useUserPackages = false;
home-manager.useGlobalPkgs = false;
@ -22,6 +20,18 @@ in
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
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 = {
automatic = true;

View file

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

View file

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

View file

@ -2,6 +2,9 @@
{
imports = [
./bash.nix
./zsh.nix
./fish.nix
./qemu.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 = [
@ -14,6 +14,7 @@
isNormalUser = true;
description = "Evie Litherland-Smith";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
};
# Enable automatic login for the user.