🧹 Mpv loop config, moved fish aliases to proper files
This commit is contained in:
parent
bd2f725029
commit
76ebdad3ce
@ -26,7 +26,7 @@ in
|
|||||||
./rofi
|
./rofi
|
||||||
./wlogout
|
./wlogout
|
||||||
./hyprland
|
./hyprland
|
||||||
./spicetify.nix
|
./spicetify.nix # TODO env conflict on latest version
|
||||||
./yazi
|
./yazi
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -34,9 +34,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
# Prefer dark mode for all GTK apps
|
# Prefer dark mode for all GTK apps
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
programs.fastfetch = {
|
programs = {
|
||||||
|
fish.shellAliases.fetch = "fastfetch";
|
||||||
|
fastfetch = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
logo = {
|
logo = {
|
||||||
@ -54,4 +56,5 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,11 @@ in
|
|||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Start starship when creating a new shell
|
||||||
|
interactiveShellInit = ''
|
||||||
|
starship init fish | source
|
||||||
|
fortune | cowsay -f tux
|
||||||
|
'';
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
# !! to get the previous command
|
# !! to get the previous command
|
||||||
@ -30,6 +35,9 @@ in
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
shellAliases = {
|
||||||
|
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
starship = {
|
starship = {
|
||||||
|
@ -8,7 +8,10 @@ in
|
|||||||
flavor = theme.flavor;
|
flavor = theme.flavor;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
programs = {
|
||||||
|
# Transfer shell config to target device
|
||||||
|
fish.shellAliases.ssh = "kitty +kitten ssh";
|
||||||
|
kitty = {
|
||||||
enable = common.default.terminal == "kitty";
|
enable = common.default.terminal == "kitty";
|
||||||
font.name = theme.nerdFont;
|
font.name = theme.nerdFont;
|
||||||
settings = {
|
settings = {
|
||||||
@ -18,4 +21,5 @@ in
|
|||||||
window_padding_width = 10;
|
window_padding_width = 10;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
flavor = theme.flavor;
|
flavor = theme.flavor;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mpv = {
|
programs = {
|
||||||
|
fish.shellAliases.mpvl = "mpv --profile=loop";
|
||||||
|
mpv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
hwdec = "auto-safe";
|
hwdec = "auto-safe";
|
||||||
@ -16,5 +18,12 @@
|
|||||||
profile = "gpu-hq";
|
profile = "gpu-hq";
|
||||||
gpu-context = "wayland";
|
gpu-context = "wayland";
|
||||||
};
|
};
|
||||||
|
profiles = {
|
||||||
|
loop = {
|
||||||
|
loop-playlist = "inf";
|
||||||
|
loop-file = "inf";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
./hyprland
|
./hyprland
|
||||||
./sddm.nix
|
./sddm.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
|
./shell.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
./terminal
|
|
||||||
./qt.nix
|
./qt.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
19
modules/shell.nix
Normal file
19
modules/shell.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# For Fish dotfiles, see: /home-manager/fish.nix
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
bash = {
|
||||||
|
# Starts the OS using Bash, then starts fish if it's not running
|
||||||
|
interactiveShellInit = ''
|
||||||
|
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
||||||
|
then
|
||||||
|
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
||||||
|
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
fish.enable = true;
|
||||||
|
};
|
||||||
|
}
|
@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./shell.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
kitty
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
# For Fish dotfiles, see: /home-manager/fish.nix and home-manager/starship.nix
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
bash = {
|
|
||||||
# Starts the OS using Bash, then starts fish if it's not running
|
|
||||||
interactiveShellInit = ''
|
|
||||||
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
|
||||||
then
|
|
||||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
||||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
# Start starship when creating a new shell
|
|
||||||
interactiveShellInit = ''
|
|
||||||
starship init fish | source
|
|
||||||
fortune | cowsay -f tux
|
|
||||||
'';
|
|
||||||
shellAliases = {
|
|
||||||
# Transfer shell config to target device
|
|
||||||
ssh = "kitty +kitten ssh";
|
|
||||||
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
|
||||||
fetch = "fastfetch";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user