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

@@ -4,7 +4,7 @@
...
}: {
programs.firefox = {
enable = device.isLinux;
enable = device.hasGui;
profiles.default = {
userChrome = let
# TODO: Move to subflake

33
common/gui.nix Normal file
View File

@@ -0,0 +1,33 @@
{
pkgs,
device,
lib,
...
}:
lib.attrsets.optionalAttrs device.hasGui {
home.packages = with pkgs;
[]
++ lib.optionals device.isLinux [
ferdium
psst
sony-headphones-client
abaddon
catppuccinThemes.gtk
catppuccinThemes.papirus-folders
gnome.seahorse
gnome.nautilus
nextcloud-client
gparted
polkit_gnome
mullvad-vpn
mullvad-closest
mullvad-browser
steam-run
webcord-vencord
spotify
wl-clipboard
];
}

View File

@@ -35,13 +35,15 @@ in {
imports =
[
inputs.nix-index-database.hmModules.nix-index
./tmux.nix
./wezterm.nix
./kitty.nix
./gui.nix
./tmux.nix
./nvim.nix
./goread.nix
./ncmpcpp.nix
./zellij.nix
./kitty.nix
../modules
]
++ lib.optionals device.isLinux [../linux];
@@ -95,32 +97,14 @@ in {
(pkgs.mpv-unwrapped.override {sixelSupport = true;}) {})
]
++ lib.optionals device.isLinux [
ferdium
psst
sony-headphones-client
abaddon
rr
catppuccinThemes.gtk
catppuccinThemes.papirus-folders
gnome.seahorse
gnome.nautilus
nextcloud-client
sbctl
gparted
gptfdisk
polkit_gnome
dig
mullvad-vpn
mullvad-closest
mullvad-browser
steam-run
usbutils
handlr-regex
handlr-xdg
webcord-vencord
spotify
lsof
wl-clipboard
ncpamixer
]
++ lib.optionals device.isMac [];

View File

@@ -1,6 +1,10 @@
{pkgs, ...}: {
{
pkgs,
device,
...
}: {
programs.kitty = {
enable = true;
enable = device.hasGui;
font = {
name = "Hasklug Nerd Font Mono";
size = 13;

View File

@@ -1,6 +1,10 @@
{pkgs, ...}: {
{
pkgs,
device,
...
}: {
programs.wezterm = {
enable = true;
enable = device.hasGui;
extraConfig =
/*
lua