Shift home config to enable by desktop, work out more details later

This commit is contained in:
Jimbo 2025-01-01 11:30:16 -05:00
parent d873588c59
commit 77168ba9c7
37 changed files with 120 additions and 127 deletions

View file

@ -1,7 +1,7 @@
{ config, ... }:
{
programs.foot = {
enable = true;
enable = config.home.desktop.enable;
server.enable = false;
settings = {
main = {

View file

@ -1,7 +1,7 @@
{ ... }:
{ config, ... }:
{
programs.imv = {
enable = true;
enable = config.home.desktop.enable;
settings.binds = {
h = "prev";
j = "zoom -5";

View file

@ -80,7 +80,7 @@ in {
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@pkgs" ];
definedAliases = [ "@p" ];
};
"MyNixOS" = {
urls = [
@ -137,8 +137,6 @@ in {
commonSettings = {
"general.autoScroll" = true;
"places.history.enabled" = false;
"font.name.serif.x-western" = config.look.fonts.main;
"font.name.sans-serif.x-western" = config.look.fonts.main;
"font.name.monospace.x-western" = config.look.fonts.nerd;
@ -244,7 +242,7 @@ in {
"webgl.disabled" = false;
};
in {
enable = true;
enable = config.home.desktop.enable;
package = pkgs.librewolf;
profiles = {
Main = {

View file

@ -1,8 +1,8 @@
{ pkgs, ... }:
{ config, pkgs, lib, ... }:
{
home = {
packages = with pkgs; [ mangohud ];
file = {
config = lib.mkIf config.home.desktop.enable {
programs.mangohud.enable = true;
home.file = {
# These options exist in Nixlang, but the order is not respected.
".config/MangoHud/MangoHud.conf".text = ''
table_columns=2

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
programs.mpv = {
enable = true;
enable = config.home.desktop.enable;
scripts = with pkgs.mpvScripts; [
mpris
sponsorblock

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
programs.obs-studio = {
enable = true;
enable = config.home.desktop.enable;
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-webkitgtk

View file

@ -1,6 +1,6 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
{
home = {
home = lib.mkIf config.home.desktop.enable {
packages = with pkgs; [
pcmanfm
file-roller

View file

@ -3,7 +3,7 @@
imports = [ ./scripts ];
programs.rofi = {
enable = true;
enable = config.home.desktop.enable;
package = pkgs.rofi-wayland;
terminal = "foot";
font = "${config.look.fonts.main} 14";

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ pkgs, lib, config, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.programs.rofi.enable [
(pkgs.writeScriptBin "rofiscratch" ''
SCRATCHPADS=$(echo -e "Btop\nMusic\nSound\nEasyEffects" | rofi -dmenu -i -p "Scratchpads")
case $SCRATCHPADS in

View file

@ -1,10 +0,0 @@
{ pkgs, ... }:
{
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
}

View file

@ -1,7 +1,7 @@
{ ... }:
{ config, ... }:
{
programs.thunderbird = {
enable = true;
enable = config.home.desktop.enable;
profiles = {
Main = {
isDefault = true;

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
ffmpeg
ffmpegthumbnailer
puddletag

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
dolphin-emu
cemu
ryujinx

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
heroic
prismlauncher
steam

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
bc
fractal
libreoffice

View file

@ -1,10 +1,11 @@
{ pkgs, blender, ... }:
{ config, lib, pkgs, blender, ... }:
{
nixpkgs.overlays = [ blender.overlays.default ];
home.packages = with pkgs; [
audacity
blender_4_3
krita
];
config = lib.mkIf config.home.desktop.enable {
nixpkgs.overlays = [ blender.overlays.default ];
home.packages = with pkgs; [
audacity
blender_4_3
krita
];
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
moonlight-qt
rustdesk-flutter
];

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
freerdp
gpauth
remmina

View file

@ -1,20 +1,22 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [ mpc-cli ];
config = lib.mkIf config.home.desktop.enable {
home.packages = with pkgs; [ mpc-cli ];
programs.ncmpcpp = {
enable = true;
settings = {
browser_sort_mode = "name";
user_interface = "alternative";
programs.ncmpcpp = {
enable = true;
settings = {
browser_sort_mode = "name";
user_interface = "alternative";
};
bindings = [
{ key = "h"; command = "volume_down"; }
{ key = "j"; command = "scroll_down"; }
{ key = "k"; command = "scroll_up"; }
{ key = "l"; command = "volume_up"; }
];
};
bindings = [
{ key = "h"; command = "volume_down"; }
{ key = "j"; command = "scroll_down"; }
{ key = "k"; command = "scroll_up"; }
{ key = "l"; command = "volume_up"; }
];
};
services.mpd-discord-rpc.enable = true;
services.mpd-discord-rpc.enable = true;
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home = {
home = lib.mkIf config.home.desktop.enable {
packages = with pkgs; [ spotdl ];
shellAliases.spotdl = "spotdl --m3u --format opus";
};

View file

@ -1,15 +1,16 @@
{ ... }:
{ config, lib, ... }:
{
programs.yt-dlp = {
enable = true;
settings = {
add-metadata = true;
embed-thumbnail = true;
convert-thumbnails = "jpg";
audio-format = "opus";
output = ''"%(artist)s - %(title)s.%(ext)s"'';
config = lib.mkIf config.home.desktop.enable {
programs.yt-dlp = {
enable = true;
settings = {
add-metadata = true;
embed-thumbnail = true;
convert-thumbnails = "jpg";
audio-format = "opus";
output = ''"%(artist)s - %(title)s.%(ext)s"'';
};
};
home.shellAliases.opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
};
home.shellAliases.opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
}