zsh additions + qol changes (#1)
* flake changes * hm enable by default, omp home-manager * zsh plugins
This commit is contained in:
@@ -19,14 +19,17 @@
|
|||||||
hosts = [
|
hosts = [
|
||||||
{
|
{
|
||||||
name = "wsl-kumatani";
|
name = "wsl-kumatani";
|
||||||
|
architecture = "x86_64-linux";
|
||||||
isWSL = true;
|
isWSL = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "wsl-usahara";
|
name = "wsl-usahara";
|
||||||
|
architecture = "x86_64-linux";
|
||||||
isWSL = true;
|
isWSL = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "tux";
|
name = "tux";
|
||||||
|
architecture = "x86_64-linux";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
@@ -41,7 +44,7 @@
|
|||||||
hostname = host.name;
|
hostname = host.name;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system = "x86_64-linux";
|
system = host.architecture;
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/${host.name}/configuration.nix
|
./hosts/${host.name}/configuration.nix
|
||||||
./modules/default.nix
|
./modules/default.nix
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
nerd-fonts.jetbrains-mono
|
nerd-fonts.jetbrains-mono
|
||||||
];
|
];
|
||||||
|
|
||||||
hm.enable = true;
|
|
||||||
i3.enable = true;
|
i3.enable = true;
|
||||||
kanata.enable = true;
|
kanata.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
wsl.enable = true;
|
wsl.enable = true;
|
||||||
wsl.defaultUser = "luca";
|
wsl.defaultUser = "luca";
|
||||||
networking.hostName = meta.hostname;
|
networking.hostName = meta.hostname;
|
||||||
hm.enable = true;
|
|
||||||
users.users.luca = {
|
users.users.luca = {
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
openssh.authorizedKeys.keys = config.authorized_ssh;
|
openssh.authorizedKeys.keys = config.authorized_ssh;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
wsl.enable = true;
|
wsl.enable = true;
|
||||||
wsl.defaultUser = "luca";
|
wsl.defaultUser = "luca";
|
||||||
networking.hostName = meta.hostname;
|
networking.hostName = meta.hostname;
|
||||||
hm.enable = true;
|
|
||||||
users.users.luca = {
|
users.users.luca = {
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
openssh.authorizedKeys.keys = config.authorized_ssh;
|
openssh.authorizedKeys.keys = config.authorized_ssh;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
curl
|
curl
|
||||||
stow
|
stow
|
||||||
gh
|
gh
|
||||||
oh-my-posh
|
|
||||||
neovim
|
neovim
|
||||||
ripgrep
|
ripgrep
|
||||||
git
|
git
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
hm.enable = lib.mkEnableOption "enable home-manager";
|
hm.enable = lib.mkEnableOption "enable home-manager" // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.hm.enable {
|
config = lib.mkIf config.hm.enable {
|
||||||
|
|||||||
@@ -6,8 +6,9 @@
|
|||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
git = import ./git.nix;
|
git = import ./git.nix;
|
||||||
zsh = import ./zsh.nix;
|
zsh = import ./zsh.nix { inherit pkgs; };
|
||||||
tmux = import ./tmux.nix { inherit pkgs; };
|
tmux = import ./tmux.nix { inherit pkgs; };
|
||||||
|
oh-my-posh = import ./omp.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|||||||
7
nix/users/luca/omp.nix
Normal file
7
nix/users/luca/omp.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = builtins.fromTOML (
|
||||||
|
builtins.unsafeDiscardStringContext (builtins.readFile ../../../.config/ohmyposh/zen.toml)
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,9 +1,23 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
|
history.size = 1000;
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
. "$HOME/.rokit/env"
|
. "$HOME/.rokit/env"
|
||||||
eval "$(oh-my-posh init zsh -c ~/.config/ohmyposh/zen.toml)"
|
|
||||||
'';
|
'';
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"git"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "fzf-tab";
|
||||||
|
src = pkgs.zsh-fzf-tab;
|
||||||
|
file = "share/fzf-tab/fzf-tab.plugin.zsh";
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user