aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-02-27 14:04:39 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-02-27 14:04:39 +0100
commit990449536712f886c800e55463aa4d854e34928f (patch)
tree4d3d8b357e9ae7898da4131f62d1b24ca6a52e02 /share
parent264e95ed1c8c7cb9ec8319f51a2c07c8f53b10d1 (diff)
Refactor, test out fish on wonderland
Diffstat (limited to 'share')
-rw-r--r--share/home/fish.nix9
-rw-r--r--share/home/hyprdesktop.nix1
-rw-r--r--share/home/minimal.nix9
-rw-r--r--share/home/shellenv.nix51
-rw-r--r--share/home/zsh.nix65
-rw-r--r--share/system/client-common.nix3
6 files changed, 72 insertions, 66 deletions
diff --git a/share/home/fish.nix b/share/home/fish.nix
new file mode 100644
index 0000000..7206bb9
--- /dev/null
+++ b/share/home/fish.nix
@@ -0,0 +1,9 @@
+{ ... }: {
+ imports = [ ./shellenv.nix ];
+
+ programs.fish = {
+ enable = true;
+ };
+
+ programs.starship.enableFishIntegration = true;
+}
diff --git a/share/home/hyprdesktop.nix b/share/home/hyprdesktop.nix
index 28f5909..5f0ea5d 100644
--- a/share/home/hyprdesktop.nix
+++ b/share/home/hyprdesktop.nix
@@ -151,7 +151,6 @@
fluffychat # matrix client
qbittorrent # bittorrent client
zathura # document reader
- okular # document reader
bitwarden # password manager
heroic # FOSS game launcher for GOG & Epic
diff --git a/share/home/minimal.nix b/share/home/minimal.nix
index b00346e..da519f2 100644
--- a/share/home/minimal.nix
+++ b/share/home/minimal.nix
@@ -1,7 +1,7 @@
# This module contains a bunch of things that make up a minimal environment that
# I want on ALL of my machines.
{ pkgs, config, ... }: {
- imports = [ ./helix.nix ./zsh.nix ];
+ imports = [ ./helix.nix ];
home.packages = with pkgs; [
wget
@@ -11,6 +11,7 @@
ffmpeg
imagemagick
exiftool
+ sl
# Modern unix
ripgrep # grep
@@ -34,6 +35,12 @@
xdg.enable = true;
+ home.shellAliases = {
+ ip = ''ip --color=auto'';
+ tempdir = "cd $(mktemp -d)";
+ sl = "sl -awFc5";
+ };
+
# Lots of these are courtesy of xdg-ninja
# https://github.com/b3nj5m1n/xdg-ninja
#
diff --git a/share/home/shellenv.nix b/share/home/shellenv.nix
new file mode 100644
index 0000000..ae9004c
--- /dev/null
+++ b/share/home/shellenv.nix
@@ -0,0 +1,51 @@
+{ ... }: {
+ home.shellAliases = {
+ ltg = "ls --git --tree";
+ ltgi = "ltg --git-ignore";
+ };
+ programs.eza = {
+ enable = true;
+ enableAliases = true;
+ icons = true;
+ extraOptions = [ "--header" "--group-directories-first" "--long" ];
+ };
+
+ programs.starship = {
+ enable = true;
+ # settings = let
+ # lightblue-bg = "bg:#769ff0";
+ # lightblue-fg = "fg:#e3e5e5";
+ # lightblue = "${lightblue-fg} ${lightblue-bg}";
+ # in {
+ # format = lib.concatStrings [
+ # "[░▒▓](#a3aed2)"
+ # "[$username @ $hostname](${lightblue})"
+ # "$directory"
+ # "$rust"
+ # "$package"
+ # "\n"
+ # "> "
+ # ];
+ #
+ # hostname = {
+ # ssh_only = false;
+ # format = "[$hostname]($style)";
+ # trim_at = ""; # disable trimming
+ # style = lightblue;
+ # };
+ #
+ # username = {
+ # show_always = true;
+ # format = "[$user]($style)";
+ # style_user = lightblue;
+ # style_root = "${lightblue-bg} fg:red bold";
+ # };
+ #
+ # directory = {
+ # format = "[ $path ]($style)";
+ # truncation_length = 3;
+ # truncation_symbol = "…/";
+ # };
+ # }; # end of settings
+ }; # end of programs.starship
+}
diff --git a/share/home/zsh.nix b/share/home/zsh.nix
index 4a52f5c..cbc8428 100644
--- a/share/home/zsh.nix
+++ b/share/home/zsh.nix
@@ -1,4 +1,6 @@
-{ pkgs, ... }: {
+{ ... }: {
+ imports = [ ./shellenv.nix ];
+
programs.zsh = {
enable = true;
enableAutosuggestions = true;
@@ -7,65 +9,6 @@
enableVteIntegration = true;
autocd = true;
dotDir = ".config/zsh";
-
- shellAliases = {
- battery-status = ''
- upower -i $(upower -e | grep BAT) | grep -E "state|to full|percentage"
- '';
- ip = ''ip --color=auto'';
- ltg = "ls --git --tree";
- ltgi = "ltg --git-ignore";
- sl = "sl -awFc5";
- tempdir = "cd $(mktemp -d)";
- };
- };
- home.packages = with pkgs; [ sl ];
-
- programs.eza = {
- enable = true;
- enableAliases = true;
- icons = true;
- extraOptions = [ "--header" "--group-directories-first" "--long" ];
};
-
- programs.starship = {
- enable = true;
- enableZshIntegration = true;
-
- # settings = let
- # lightblue-bg = "bg:#769ff0";
- # lightblue-fg = "fg:#e3e5e5";
- # lightblue = "${lightblue-fg} ${lightblue-bg}";
- # in {
- # format = lib.concatStrings [
- # "[░▒▓](#a3aed2)"
- # "[$username @ $hostname](${lightblue})"
- # "$directory"
- # "$rust"
- # "$package"
- # "\n"
- # "> "
- # ];
- #
- # hostname = {
- # ssh_only = false;
- # format = "[$hostname]($style)";
- # trim_at = ""; # disable trimming
- # style = lightblue;
- # };
- #
- # username = {
- # show_always = true;
- # format = "[$user]($style)";
- # style_user = lightblue;
- # style_root = "${lightblue-bg} fg:red bold";
- # };
- #
- # directory = {
- # format = "[ $path ]($style)";
- # truncation_length = 3;
- # truncation_symbol = "…/";
- # };
- # }; # end of settings
- }; # end of programs.starship
+ programs.starship.enableZshIntegration = true;
}
diff --git a/share/system/client-common.nix b/share/system/client-common.nix
index 59dfa5f..63c5219 100644
--- a/share/system/client-common.nix
+++ b/share/system/client-common.nix
@@ -54,7 +54,4 @@
overpass
inter
];
-
- programs.zsh.enable = true;
- users.defaultUserShell = pkgs.zsh;
}