fix: Linux packages were being ignored

This commit is contained in:
uttarayan21
2025-02-05 17:42:08 +05:30
parent 9c8d29ed8d
commit e6037d27d3
3 changed files with 7 additions and 14 deletions

View File

@@ -12,6 +12,7 @@
./ironbar
./foot.nix
./mpd.nix
./gui.nix
]);
services.kdeconnect.enable = device.hasGui;

View File

@@ -4,7 +4,7 @@
...
}: {
gtk = {
enable = device.hasGui;
enable = true;
theme = {
name = "catppuccin-mocha-mauve-standard+normal";
package = pkgs.adwaita-icon-theme;
@@ -32,4 +32,8 @@
gtk3.extraConfig = {gtk-application-prefer-dark-theme = 1;};
gtk4.extraConfig = {gtk-application-prefer-dark-theme = 1;};
};
home.packages = [
pkgs.catppuccinThemes.gtk
pkgs.catppuccinThemes.papirus-folders
];
}

49
home/linux/gui.nix Normal file
View File

@@ -0,0 +1,49 @@
{
pkgs,
device,
lib,
...
}:
lib.attrsets.optionalAttrs device.hasGui {
systemd.user.services.onepassword-gui = lib.optionalAttrs pkgs.stdenv.isLinux {
Unit = {
Description = "1Password GUI";
BindsTo = ["graphical-session.target"];
After = ["graphical-session-pre.target"];
};
Service = {
ExecStart = "${pkgs._1password-gui}/bin/1password";
Restart = "always";
};
Install = {
WantedBy = ["graphical-session.target"];
};
};
home.packages = with pkgs;
[]
++ lib.optionals device.hasGui [
discord
(mpv-unwrapped.wrapper {mpv = mpv-unwrapped.override {sixelSupport = true;};})
abaddon
ferdium
gparted
jdk
mullvad-closest
mullvad-vpn
nautilus
nextcloud-client
polkit_gnome
psst
seahorse
signal-desktop
slack
sony-headphones-client
spotify
steam-run
via
wl-clipboard
zed-editor
];
}