Set fish as default shell, set home-manager to manage bash, zsh and fish configs
This commit is contained in:
parent
8df45499b8
commit
5b8d1da3f3
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
5
nixos/home-manager/packages/env/bash.nix
vendored
Normal file
5
nixos/home-manager/packages/env/bash.nix
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.bash.enable = true;
|
||||
}
|
3
nixos/home-manager/packages/env/default.nix
vendored
3
nixos/home-manager/packages/env/default.nix
vendored
|
@ -2,6 +2,9 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
./bash.nix
|
||||
./zsh.nix
|
||||
./fish.nix
|
||||
./qemu.nix
|
||||
./python310.nix
|
||||
];
|
||||
|
|
5
nixos/home-manager/packages/env/fish.nix
vendored
Normal file
5
nixos/home-manager/packages/env/fish.nix
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.fish.enable = true;
|
||||
}
|
15
nixos/home-manager/packages/env/zsh.nix
vendored
Normal file
15
nixos/home-manager/packages/env/zsh.nix
vendored
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue