feat(nix): Move all the gui stuff behind a bool

This commit is contained in:
uttarayan21
2024-04-04 21:51:27 +05:30
parent ae43c82e5c
commit 03a24ae5e6
13 changed files with 75 additions and 43 deletions

View File

@@ -7,7 +7,7 @@
}: {
imports = [inputs.anyrun.nixosModules.home-manager];
programs.anyrun = {
enable = true;
enable = device.hasGui;
config = {
plugins = with inputs.anyrun.packages.${pkgs.system}; [
inputs.anyrun-nixos-options.packages.${pkgs.system}.default

View File

@@ -1,8 +1,6 @@
{
pkgs,
device,
nur,
inputs,
...
}: {
imports = [
@@ -15,11 +13,11 @@
../linux/mpd.nix
];
services.kdeconnect.enable = true;
services.kdeconnect.indicator = true;
services.swayosd.enable = true;
services.kdeconnect.enable = device.hasGui;
services.kdeconnect.indicator = device.hasGui;
services.swayosd.enable = device.hasGui;
services.nextcloud-client = {
enable = true;
enable = device.hasGui;
startInBackground = true;
};

View File

@@ -1,6 +1,10 @@
{pkgs, ...}: {
{
pkgs,
device,
...
}: {
programs.foot = {
enable = pkgs.stdenv.isLinux;
enable = device.hasGui;
server.enable = true;
settings = {
main = {

View File

@@ -1,6 +1,6 @@
{pkgs, ...}: {
{pkgs, device, ...}: {
gtk = {
enable = true;
enable = device.hasGui;
theme = {
name = "Catppuccin-Mocha-Standard-Mauve-Dark";
package = pkgs.catppuccin-gtk.override {

View File

@@ -1,6 +1,7 @@
{
pkgs,
inputs,
device,
...
}: {
imports = [../modules/hyprpaper.nix inputs.hyprlock.homeManagerModules.hyprlock];
@@ -8,7 +9,7 @@
programs.hyprpaper = let
wallpapers = import ../utils/wallhaven.nix {inherit pkgs;};
in {
enable = true;
enable = device.hasGui;
systemd.enable = true;
systemd.target = "hyprland-session.target";
settings.preload = wallpapers.all;

View File

@@ -1,11 +1,12 @@
{
inputs,
pkgs,
device,
...
}: {
imports = [inputs.ironbar.homeManagerModules.default];
programs.ironbar = {
enable = true;
enable = device.hasGui;
config.monitors = {
DP-1 = {
position = "bottom";

View File

@@ -1,8 +1,4 @@
{
# pkgs,
# config,
...
}: {
{...}: {
services.mpd = {
enable = true;
};