init
This commit is contained in:
33
home/cli/fastfetch.nix
Normal file
33
home/cli/fastfetch.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
package = pkgs.fastfetch;
|
||||
settings = {
|
||||
logo.source = "nixos_small";
|
||||
display.separator = " :: ";
|
||||
modules = [
|
||||
{
|
||||
type = "os";
|
||||
key = "dis";
|
||||
}
|
||||
{
|
||||
type = "kernel";
|
||||
key = "krn";
|
||||
}
|
||||
{
|
||||
type = "uptime";
|
||||
key = "upt";
|
||||
}
|
||||
{
|
||||
type = "packages";
|
||||
key = "pks";
|
||||
}
|
||||
{
|
||||
type = "wm";
|
||||
key = "wdm";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
16
home/cli/neovim.nix
Normal file
16
home/cli/neovim.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, config, ... }: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
package = pkgs.neovim-unwrapped;
|
||||
defaultEditor = true;
|
||||
extraPackages = with pkgs; [
|
||||
nil
|
||||
];
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
lazy-nvim
|
||||
nvim-lspconfig
|
||||
nvim-tree-lua
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
28
home/cli/zsh.nix
Normal file
28
home/cli/zsh.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
package = pkgs.zsh;
|
||||
plugins = [{
|
||||
name = "zsh-autosuggestions";
|
||||
src = pkgs.zsh-autosuggestions;
|
||||
}
|
||||
{
|
||||
name = "zsh-highlighting";
|
||||
src = pkgs.zsh-syntax-highlighting;
|
||||
}];
|
||||
shellAliases =
|
||||
let
|
||||
args = "--impure --flake";
|
||||
flake = "/home/fox/conf";
|
||||
in {
|
||||
"switch" = "sudo nixos-rebuild switch ${args} ${flake}#lenovo";
|
||||
"home-switch" = "home-manager switch ${args} ${flake}#fox";
|
||||
"clean-nix" = "sudo nix-collect-garbage -d";
|
||||
"un" = "adb shell pm uninstall -k";
|
||||
};
|
||||
initExtra = ''
|
||||
export PROMPT="%m %2~ %B::%b "
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user