Compare commits

..

No commits in common. "76ebdad3ce4fa68423326c85ed5ab2fe8aa5bb9e" and "9da67d058db1927bdf52cf488827c323760d49a2" have entirely different histories.

12 changed files with 116 additions and 122 deletions

View File

@ -11,6 +11,7 @@ in
{ {
imports = [ imports = [
inputs.catppuccin.homeManagerModules.catppuccin inputs.catppuccin.homeManagerModules.catppuccin
inputs.nixvim.homeManagerModules.nixvim
./btop.nix ./btop.nix
./cava ./cava
./cursors.nix ./cursors.nix
@ -26,7 +27,7 @@ in
./rofi ./rofi
./wlogout ./wlogout
./hyprland ./hyprland
./spicetify.nix # TODO env conflict on latest version ./spicetify.nix
./yazi ./yazi
]; ];
@ -34,7 +35,9 @@ 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".color-scheme = "prefer-dark"; "org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
}; };
}; };

View File

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

View File

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

View File

@ -1,60 +1,57 @@
{ {
programs = { programs.fastfetch = {
fish.shellAliases.fetch = "fastfetch"; enable = true;
fastfetch = { settings = {
enable = true; logo = {
settings = { source = "${../Catppuccin.png}";
logo = { type = "kitty";
source = "${../Catppuccin.png}"; height = 18;
type = "kitty"; padding.top = 2;
height = 18;
padding.top = 2;
};
display.separator = " ";
modules =
let
keyColor = "34";
module = type: key: {
inherit type key keyColor;
};
formatModule = type: key: format: {
inherit
type
key
format
keyColor
;
};
in
[
"break"
"break"
{
type = "title";
keyWidth = 10;
}
"break"
(module "os" " ")
(module "kernel" " ")
(formatModule "packages" " " "{} (nixpkgs)")
(module "shell" " ")
(module "terminal" " ")
(module "wm" " ")
(module "theme" " ")
(module "cursor" " ")
(module "terminalfont" " ")
(module "uptime" " ")
(formatModule "datetime" " " "{1}-{3}-{11}")
(module "cpu" " ")
(module "gpu" "󰤽 ")
(module "sound" " ")
(module "lm" " ")
"break"
"colors"
"break"
"break"
];
}; };
display.separator = " ";
modules =
let
keyColor = "34";
module = type: key: {
inherit type key keyColor;
};
formatModule = type: key: format: {
inherit
type
key
format
keyColor
;
};
in
[
"break"
"break"
{
type = "title";
keyWidth = 10;
}
"break"
(module "os" " ")
(module "kernel" " ")
(formatModule "packages" " " "{} (nixpkgs)")
(module "shell" " ")
(module "terminal" " ")
(module "wm" " ")
(module "theme" " ")
(module "cursor" " ")
(module "terminalfont" " ")
(module "uptime" " ")
(formatModule "datetime" " " "{1}-{3}-{11}")
(module "cpu" " ")
(module "gpu" "󰤽 ")
(module "sound" " ")
(module "lm" " ")
"break"
"colors"
"break"
"break"
];
}; };
}; };
} }

View File

@ -17,15 +17,9 @@ 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
# https://github.com/BrewingWeasel/fishbang
name = "fishbang"; name = "fishbang";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "BrewingWeasel"; owner = "BrewingWeasel";
@ -35,9 +29,6 @@ in
}; };
} }
]; ];
shellAliases = {
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
};
}; };
starship = { starship = {

View File

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

View File

@ -8,22 +8,13 @@
flavor = theme.flavor; flavor = theme.flavor;
}; };
programs = { programs.mpv = {
fish.shellAliases.mpvl = "mpv --profile=loop"; enable = true;
mpv = { config = {
enable = true; hwdec = "auto-safe";
config = { vo = "gpu";
hwdec = "auto-safe"; profile = "gpu-hq";
vo = "gpu"; gpu-context = "wayland";
profile = "gpu-hq";
gpu-context = "wayland";
};
profiles = {
loop = {
loop-playlist = "inf";
loop-file = "inf";
};
};
}; };
}; };
} }

View File

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

View File

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

View File

@ -1,19 +0,0 @@
# 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

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

View File

@ -0,0 +1,32 @@
# 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";
};
};
};
}