feat: add zsh as default shell
This commit is contained in:
parent
f0a423f2f4
commit
466697be14
7 changed files with 28 additions and 6 deletions
|
@ -1,4 +1,10 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./networking.nix
|
||||||
|
./shell.nix
|
||||||
|
./stylix.nix
|
||||||
|
];
|
||||||
|
|
||||||
users.users.rafiq = {
|
users.users.rafiq = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "rafiq";
|
description = "rafiq";
|
||||||
|
|
7
systems/modules/programs/zsh.nix
Normal file
7
systems/modules/programs/zsh.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
environment.pathsToLink = ["/share/zsh"]; # enables completion
|
||||||
|
}
|
5
systems/modules/shell.nix
Normal file
5
systems/modules/shell.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./programs/zsh.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,12 +1,10 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hw-nemesis.nix
|
./hw-nemesis.nix
|
||||||
./modules/bootloaders/systemd-boot.nix
|
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
./modules/desktop.nix
|
./modules/desktop.nix
|
||||||
|
./modules/bootloaders/systemd-boot.nix
|
||||||
./modules/hardware/nvidia.nix
|
./modules/hardware/nvidia.nix
|
||||||
./modules/networking.nix
|
|
||||||
./modules/stylix.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "nemesis";
|
networking.hostName = "nemesis";
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
./hw-orpheus.nix
|
./hw-orpheus.nix
|
||||||
./modules/bootloaders/extlinux.nix
|
./modules/bootloaders/extlinux.nix
|
||||||
./modules/common.nix
|
./modules/common.nix
|
||||||
./modules/networking.nix
|
|
||||||
./modules/stylix.nix
|
|
||||||
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
"${inputs.nixpkgs}/nixos/modules/profiles/minimal.nix"
|
"${inputs.nixpkgs}/nixos/modules/profiles/minimal.nix"
|
||||||
];
|
];
|
||||||
|
|
8
users/modules/programs/zsh.nix
Normal file
8
users/modules/programs/zsh.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
enableVteIntegration = true;
|
||||||
|
# TODO: Look into whether we need to add the history attribute
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
# Default shell utilities and programs
|
# Default shell utilities and programs
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./programs/bash.nix
|
|
||||||
./programs/btop.nix
|
./programs/btop.nix
|
||||||
./programs/direnv.nix
|
./programs/direnv.nix
|
||||||
./programs/fzf.nix
|
./programs/fzf.nix
|
||||||
|
@ -11,6 +10,7 @@
|
||||||
./programs/tealdeer.nix
|
./programs/tealdeer.nix
|
||||||
./programs/tmux.nix
|
./programs/tmux.nix
|
||||||
./programs/yazi.nix
|
./programs/yazi.nix
|
||||||
|
./programs/zsh.nix
|
||||||
./scripts
|
./scripts
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue