feat(nix): Move all the gui stuff behind a bool
This commit is contained in:
@@ -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
33
common/gui.nix
Normal 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
|
||||
];
|
||||
}
|
||||
@@ -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 [];
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
device,
|
||||
...
|
||||
}: {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
enable = device.hasGui;
|
||||
font = {
|
||||
name = "Hasklug Nerd Font Mono";
|
||||
size = 13;
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{pkgs, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
device,
|
||||
...
|
||||
}: {
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
enable = device.hasGui;
|
||||
extraConfig =
|
||||
/*
|
||||
lua
|
||||
|
||||
Reference in New Issue
Block a user