[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
./goread.nix
./ncmpcpp.nix
# ./neomutt.nix
] ++ lib.optionals device.isLinux [ ../linux ];
home.packages = with pkgs;
@@ -53,6 +54,8 @@
] ++ lib.optionals device.isLinux [
mpv
psst
catppuccinThemes.gtk
catppuccinThemes.papirus-folders
gnome.seahorse
gnome.nautilus
nextcloud-client
@@ -63,16 +66,6 @@
dig
mullvad
steam-run
(pkgs.catppuccin-gtk.override {
variant = "mocha";
size = "standard";
accents = [ "mauve" ];
tweaks = [ "normal" ];
})
(pkgs.catppuccin-papirus-folders.override {
accent = "mauve";
flavor = "mocha";
})
usbutils
handlr-regex
handlr-xdg
@@ -173,7 +166,8 @@
enable = true;
enableFishIntegration = true;
enableNushellIntegration = true;
settings = let flavour = "mocha"; # Replace with your preferred palette
settings =
let flavour = "mocha"; # Replace with your preferred palette
in {
# Check https://starship.rs/config/#prompt
format = "$all$character";
@@ -251,7 +245,8 @@
home = {
username = device.user;
homeDirectory = if device.isMac then
homeDirectory =
if device.isMac then
lib.mkForce "/Users/${device.user}"
else
lib.mkForce "/home/${device.user}";

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;
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: {

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