Make program integrations conditional on shell
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
_: {
|
{shell, ...}: {
|
||||||
programs = {
|
programs = {
|
||||||
nano.enable = true;
|
nano.enable = true;
|
||||||
hyprland = {
|
hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
withUWSM = false;
|
withUWSM = false;
|
||||||
};
|
};
|
||||||
fish.enable = true;
|
fish.enable =
|
||||||
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
seahorse.enable = true;
|
seahorse.enable = true;
|
||||||
fuse.userAllowOther = true;
|
fuse.userAllowOther = true;
|
||||||
|
|||||||
@@ -43,7 +43,10 @@
|
|||||||
username = "${username}";
|
username = "${username}";
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
stateVersion = "25.11";
|
stateVersion = "25.11";
|
||||||
shell.enableFishIntegration = true;
|
shell.enableFishIntegration =
|
||||||
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
# Eza is a ls replacement
|
{shell, ...}: {
|
||||||
{
|
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
icons = "auto";
|
icons = "auto";
|
||||||
enableFishIntegration = true;
|
enableFishIntegration =
|
||||||
enableBashIntegration = true;
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
|
enableBashIntegration =
|
||||||
|
if shell == "bash"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
git = true;
|
git = true;
|
||||||
|
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
|
|||||||
@@ -122,9 +122,7 @@ _: {
|
|||||||
{
|
{
|
||||||
type = "command";
|
type = "command";
|
||||||
key = "│ IN";
|
key = "│ IN";
|
||||||
text =
|
text = ''
|
||||||
#bash
|
|
||||||
''
|
|
||||||
birth_install=$(stat -c %W /)
|
birth_install=$(stat -c %W /)
|
||||||
if [ "$birth_install" -gt 0 ]; then
|
if [ "$birth_install" -gt 0 ]; then
|
||||||
echo "Installed $(date -d @"$birth_install" +"%Y-%m-%d")"
|
echo "Installed $(date -d @"$birth_install" +"%Y-%m-%d")"
|
||||||
@@ -136,9 +134,7 @@ _: {
|
|||||||
{
|
{
|
||||||
type = "command";
|
type = "command";
|
||||||
key = "│ ├ ";
|
key = "│ ├ ";
|
||||||
text =
|
text = ''
|
||||||
#bash
|
|
||||||
''
|
|
||||||
birth_install=$(stat -c %W /)
|
birth_install=$(stat -c %W /)
|
||||||
current=$(date +%s)
|
current=$(date +%s)
|
||||||
delta=$((current - birth_install))
|
delta=$((current - birth_install))
|
||||||
|
|||||||
@@ -20,7 +20,10 @@
|
|||||||
nix-your-shell = {
|
nix-your-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nix-your-shell;
|
package = pkgs.nix-your-shell;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration =
|
||||||
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
nix-output-monitor = {
|
nix-output-monitor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nix-output-monitor;
|
package = pkgs.nix-output-monitor;
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
_: {
|
{shell, ...}: {
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration =
|
||||||
enableBashIntegration = true;
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
|
enableBashIntegration =
|
||||||
|
if shell == "bash"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
defaultOptions = [
|
defaultOptions = [
|
||||||
"--margin=1"
|
"--margin=1"
|
||||||
"--layout=reverse"
|
"--layout=reverse"
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
shell,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.kitty;
|
package = pkgs.kitty;
|
||||||
shellIntegration.enableFishIntegration = true;
|
shellIntegration.enableFishIntegration =
|
||||||
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
{lib, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
shell,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration =
|
||||||
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
settings = {
|
settings = {
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
{host, ...}: {
|
{
|
||||||
|
host,
|
||||||
|
shell,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
stylix.targets = {
|
stylix.targets = {
|
||||||
librewolf.profileNames = ["${host}"];
|
librewolf.profileNames = ["${host}"];
|
||||||
|
|
||||||
@@ -27,7 +31,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable =
|
||||||
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
colors.enable = true;
|
colors.enable = true;
|
||||||
inputs.enable = true;
|
inputs.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
_: {
|
{shell, ...}: {
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration =
|
||||||
enableBashIntegration = true;
|
if shell == "fish"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
|
enableBashIntegration =
|
||||||
|
if shell == "bash"
|
||||||
|
then true
|
||||||
|
else false;
|
||||||
options = [
|
options = [
|
||||||
"--cmd cd"
|
"--cmd cd"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user