[feat] Move some stuff around

This commit is contained in:
uttarayan21
2024-03-19 15:33:00 +05:30
parent d2b152a771
commit f7deff8130
5 changed files with 65 additions and 30 deletions

View File

@@ -6,6 +6,7 @@
./nvim.nix ./nvim.nix
./goread.nix ./goread.nix
./ncmpcpp.nix ./ncmpcpp.nix
# ./neomutt.nix
] ++ lib.optionals device.isLinux [ ../linux ]; ] ++ lib.optionals device.isLinux [ ../linux ];
home.packages = with pkgs; home.packages = with pkgs;
@@ -53,6 +54,8 @@
] ++ lib.optionals device.isLinux [ ] ++ lib.optionals device.isLinux [
mpv mpv
psst psst
catppuccinThemes.gtk
catppuccinThemes.papirus-folders
gnome.seahorse gnome.seahorse
gnome.nautilus gnome.nautilus
nextcloud-client nextcloud-client
@@ -63,16 +66,6 @@
dig dig
mullvad mullvad
steam-run steam-run
(pkgs.catppuccin-gtk.override {
variant = "mocha";
size = "standard";
accents = [ "mauve" ];
tweaks = [ "normal" ];
})
(pkgs.catppuccin-papirus-folders.override {
accent = "mauve";
flavor = "mocha";
})
usbutils usbutils
handlr-regex handlr-regex
handlr-xdg handlr-xdg
@@ -173,22 +166,23 @@
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = true; enableNushellIntegration = true;
settings = let flavour = "mocha"; # Replace with your preferred palette settings =
in { let flavour = "mocha"; # Replace with your preferred palette
# Check https://starship.rs/config/#prompt in {
format = "$all$character"; # Check https://starship.rs/config/#prompt
palette = "catppuccin_${flavour}"; format = "$all$character";
character = { palette = "catppuccin_${flavour}";
success_symbol = "[[OK](bold green) ](maroon)"; character = {
error_symbol = "[](red)"; success_symbol = "[[OK](bold green) ](maroon)";
vimcmd_symbol = "[](green)"; error_symbol = "[](red)";
}; vimcmd_symbol = "[](green)";
directory = { };
truncation_length = 4; directory = {
style = "bold lavender"; truncation_length = 4;
}; style = "bold lavender";
} // builtins.fromTOML (builtins.readFile };
(pkgs.catppuccinThemes.starship + /palettes/${flavour}.toml)); } // builtins.fromTOML (builtins.readFile
(pkgs.catppuccinThemes.starship + /palettes/${flavour}.toml));
}; };
eza = { eza = {
enable = true; enable = true;
@@ -251,10 +245,11 @@
home = { home = {
username = device.user; username = device.user;
homeDirectory = if device.isMac then homeDirectory =
lib.mkForce "/Users/${device.user}" if device.isMac then
else lib.mkForce "/Users/${device.user}"
lib.mkForce "/home/${device.user}"; else
lib.mkForce "/home/${device.user}";
stateVersion = "23.11"; stateVersion = "23.11";

9
common/neomutt.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs, ... }: {
programs.neomutt = {
enable = true;
vimKeys = true;
editor = "nvim";
# sidebar = {
# };
};
}

View File

@@ -74,6 +74,12 @@ let
src = picat-src; src = picat-src;
cargoLock = { lockFile = "${picat-src}/Cargo.lock"; }; cargoLock = { lockFile = "${picat-src}/Cargo.lock"; };
}; };
psst = (prev.psst.overrideAttrs (final: prev: {
postInstall = (prev.postInstall or "") + ''
patch $out/share/applications/Psst.desktop < ${./patches/psst.patch}
'';
}));
}; };
anyrun-overlay = final: prev: { anyrun-overlay = final: prev: {

13
patches/psst.patch Normal file
View File

@@ -0,0 +1,13 @@
diff --git a/Psst.desktop b/Psst.desktop
index 267da3c..258dba2 100644
--- a/Psst.desktop
+++ b/Psst.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Categories=Audio;AudioVideo
Comment=Fast and multi-platform Spotify client with native GUI
-Exec=psst-gui
+Exec=env WAYLAND_DISPLAY= psst-gui
Icon=psst
Name=Psst
StartupWMClass=psst-gui

View File

@@ -59,4 +59,16 @@ in
rev = "main"; rev = "main";
sha256 = "sha256-czvR3bVZ0NfBmuu0JixalS7B1vf1uEGSTSUVVTclKxI"; sha256 = "sha256-czvR3bVZ0NfBmuu0JixalS7B1vf1uEGSTSUVVTclKxI";
}; };
gtk = (pkgs.catppuccin-gtk.override {
variant = "mocha";
size = "standard";
accents = [ "mauve" ];
tweaks = [ "normal" ];
});
papirus-folders = (pkgs.catppuccin-papirus-folders.override {
accent = "mauve";
flavor = "mocha";
});
} }