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;