Compare commits

...

2 Commits

Author SHA1 Message Date
76ebdad3ce
🧹 Mpv loop config, moved fish aliases to proper files 2025-02-02 15:06:34 +01:00
bd2f725029
🪛 Comments, git safe dir, moved nixvim import
- Moved nixvim import to nixvim directory
- Added git safe directory to /etc/nixos
2025-02-02 13:16:51 +01:00
12 changed files with 122 additions and 116 deletions

View File

@ -11,7 +11,6 @@ in
{
imports = [
inputs.catppuccin.homeManagerModules.catppuccin
inputs.nixvim.homeManagerModules.nixvim
./btop.nix
./cava
./cursors.nix
@ -27,7 +26,7 @@ in
./rofi
./wlogout
./hyprland
./spicetify.nix
./spicetify.nix # TODO env conflict on latest version
./yazi
];
@ -35,9 +34,7 @@ in
enable = true;
settings = {
# Prefer dark mode for all GTK apps
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
};

View File

@ -11,6 +11,7 @@
extraConfig = {
push.autoSetupRemote = true;
safe.directory = "/etc/nixos";
};
};
}

View File

@ -1,5 +1,11 @@
# Neovim configuration for Nix
{ inputs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
catppuccin.nvim.enable = true;
home.sessionVariables.EDITOR = "nvim";

View File

@ -1,5 +1,7 @@
{
programs.fastfetch = {
programs = {
fish.shellAliases.fetch = "fastfetch";
fastfetch = {
enable = true;
settings = {
logo = {
@ -54,4 +56,5 @@
];
};
};
};
}

View File

@ -17,9 +17,15 @@ in
programs = {
fish = {
enable = true;
# Start starship when creating a new shell
interactiveShellInit = ''
starship init fish | source
fortune | cowsay -f tux
'';
plugins = [
{
# !! to get the previous command
# https://github.com/BrewingWeasel/fishbang
name = "fishbang";
src = pkgs.fetchFromGitHub {
owner = "BrewingWeasel";
@ -29,6 +35,9 @@ in
};
}
];
shellAliases = {
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
};
};
starship = {

View File

@ -8,7 +8,10 @@ in
flavor = theme.flavor;
};
programs.kitty = {
programs = {
# Transfer shell config to target device
fish.shellAliases.ssh = "kitty +kitten ssh";
kitty = {
enable = common.default.terminal == "kitty";
font.name = theme.nerdFont;
settings = {
@ -18,4 +21,5 @@ in
window_padding_width = 10;
};
};
};
}

View File

@ -8,7 +8,9 @@
flavor = theme.flavor;
};
programs.mpv = {
programs = {
fish.shellAliases.mpvl = "mpv --profile=loop";
mpv = {
enable = true;
config = {
hwdec = "auto-safe";
@ -16,5 +18,12 @@
profile = "gpu-hq";
gpu-context = "wayland";
};
profiles = {
loop = {
loop-playlist = "inf";
loop-file = "inf";
};
};
};
};
}

View File

@ -10,8 +10,8 @@
./hyprland
./sddm.nix
./security.nix
./shell.nix
./steam.nix
./terminal
./qt.nix
];
}

View File

@ -6,6 +6,7 @@
xdg-desktop-portal-hyprland
hyprpolkitagent # Auth deamon providing modals for password auth
hyprshot # Screenshots
# unstable.hyprsysteminfo TODO requires flake update
];
programs = {

19
modules/shell.nix Normal file
View 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;
};
}

View File

@ -1,11 +0,0 @@
{ pkgs, ... }:
{
imports = [
./shell.nix
];
environment.systemPackages = with pkgs; [
kitty
];
}

View File

@ -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";
};
};
};
}