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

@@ -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,43 +0,0 @@
{
pkgs,
device,
...
}: {
programs.foot = {
enable = device.hasGui;
server.enable = true;
settings = {
main = {
shell = "${pkgs.fish.outPath}/bin/fish";
# font = "Hasklug Nerd Font Mono:size=13";
font = "Monaspace Krypton:size=13";
initial-window-size-pixels = "1440x800";
};
colors = {
foreground = "f8f8f2";
background = "000000";
alpha = 0.8;
"136" = "af8700";
regular0 = "21222c";
regular1 = "ff5555";
regular2 = "50fa7b";
regular3 = "f1fa8c";
regular4 = "bd93f9";
regular5 = "ff79c6";
regular6 = "8be9fd";
regular7 = "f8f8f2";
bright0 = "6272a4";
bright1 = "ff6e6e";
bright2 = "69ff94";
bright3 = "ffffa5";
bright4 = "d6acff";
bright5 = "ff92df";
bright6 = "a4ffff";
bright7 = "ffffff";
};
};
};
}

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