feat: Clean up the imports

This commit is contained in:
uttarayan21
2025-03-26 01:44:41 +05:30
parent 11ade0d192
commit 50a0033557
14 changed files with 36 additions and 36 deletions

View File

@@ -18,5 +18,6 @@ lib.optionalAttrs device.hasGui {
./wezterm.nix
./zathura.nix
./zed.nix
./gimp.nix
];
}

View File

@@ -4,7 +4,7 @@
...
}: {
programs.foot = {
enable = device.hasGui;
enable = device.hasGui && pkgs.stdenv.isLinux;
server.enable = true;
settings = {
main = {

View File

@@ -14,7 +14,7 @@
./linux
./programs
./scripts.nix
./services
# ./services
];
xdg.enable = true;

View File

@@ -7,7 +7,7 @@
}: {
imports = [inputs.anyrun.homeManagerModules.default];
programs.anyrun = {
enable = device.hasGui;
enable = device.hasGui && pkgs.stdenv.isLinux;
config = {
plugins = with inputs.anyrun.packages.${pkgs.system}; [
inputs.anyrun-nixos-options.packages.${pkgs.system}.default

View File

@@ -1,24 +1,22 @@
{
lib,
device,
pkgs,
device,
...
}:
lib.optionalAttrs (pkgs.stdenv.isLinux && device.hasGui) {
}: let
linux_gui = device.hasGui && pkgs.stdenv.isLinux;
in {
imports = [
./hyprland.nix
./gtk.nix
./anyrun.nix
./ironbar
./foot.nix
./mpd.nix
./gui.nix
];
services.kdeconnect.enable = device.hasGui;
services.kdeconnect.indicator = device.hasGui;
services.swayosd.enable = device.hasGui;
services.swaync.enable = device.hasGui;
services.kdeconnect.enable = linux_gui;
services.kdeconnect.indicator = linux_gui;
services.swayosd.enable = linux_gui;
services.swaync.enable = linux_gui;
# services.nextcloud-client = {
# enable = device.hasGui;
# startInBackground = true;

View File

@@ -1,10 +1,11 @@
{
pkgs,
lib,
device,
...
}: {
gtk = {
enable = true;
enable = device.hasGui && pkgs.stdenv.isLinux;
theme = {
name = "catppuccin-mocha-mauve-standard+normal";
package = pkgs.catppuccinThemes.gtk;
@@ -32,8 +33,11 @@
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
];
home.packages =
lib.optionals
(device.hasGui
&& pkgs.stdenv.isLinux) [
# pkgs.catppuccinThemes.gtk
pkgs.catppuccinThemes.papirus-folders
];
}

View File

@@ -3,8 +3,7 @@
device,
lib,
...
}:
lib.attrsets.optionalAttrs device.hasGui {
}: {
systemd.user.services.onepassword-gui = lib.optionalAttrs pkgs.stdenv.isLinux {
Unit = {
Description = "1Password GUI";
@@ -20,10 +19,8 @@ lib.attrsets.optionalAttrs device.hasGui {
WantedBy = ["graphical-session.target"];
};
};
home.packages = with pkgs;
[]
++ lib.optionals device.hasGui [
lib.optionals pkgs.stdenv.isLinux [
discord
jdk
mullvad-closest

View File

@@ -10,7 +10,7 @@
programs.hyprpaper = let
wallpapers = import ../../utils/wallhaven.nix {inherit pkgs;};
in {
enable = device.hasGui;
enable = device.hasGui && pkgs.stdenv.isLinux;
# enable = true;
systemd.enable = true;
systemd.target = "hyprland-session.target";
@@ -22,10 +22,10 @@
};
};
programs.hyprlock = {
enable = device.hasGui;
enable = device.hasGui && pkgs.stdenv.isLinux;
};
wayland.windowManager.hyprland = {
enable = device.hasGui;
enable = device.hasGui && pkgs.stdenv.isLinux;
settings = {
source = "${pkgs.catppuccinThemes.hyprland}/themes/mocha.conf";

View File

@@ -6,7 +6,7 @@
}: {
imports = [inputs.ironbar.homeManagerModules.default];
programs.ironbar = {
enable = device.hasGui;
enable = device.hasGui && pkgs.stdenv.isLinux;
config.monitors = {
"${device.monitors.secondary}" = {
position = "bottom";

View File

@@ -1,5 +0,0 @@
{...}: {
services.mpd = {
enable = true;
};
}

View File

@@ -31,7 +31,7 @@
# ./zellij.nix
./zoxide.nix
#./template.nix
./gimp.nix
./mpd.nix
];
home.packages = with pkgs;
[

5
home/programs/mpd.nix Normal file
View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
services.mpd = {
enable = pkgs.stdenv.isLinux;
};
}