feat: Clean up the imports
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{...}: {
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user