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,5 +1,5 @@
{ pkgs, ... }: {
home.file = {
{ config, lib, ... }: {
home.file = lib.mkIf config.home.desktop.enable {
".face".source = ./assets/pfp.png;
".assets/wallpapers".source = ./assets/wallpapers;
".assets/lockscreen".source = ./assets/lockscreen;

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, ... }:
{
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,5 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.home.desktop.enable {
home.packages = with pkgs; [ mpc-cli ];
programs.ncmpcpp = {
@ -17,4 +18,5 @@
};
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,5 +1,6 @@
{ ... }:
{ config, lib, ... }:
{
config = lib.mkIf config.home.desktop.enable {
programs.yt-dlp = {
enable = true;
settings = {
@ -10,6 +11,6 @@
output = ''"%(artist)s - %(title)s.%(ext)s"'';
};
};
home.shellAliases.opusdl = ''yt-dlp -f ba -x --audio-quality 0'';
};
}

View file

@ -1,11 +1,12 @@
{ pkgs, ... }:
{ config, lib, ... }:
{
config = lib.mkIf config.home.desktop.enable {
services.easyeffects = {
enable = true;
preset = "headphones";
};
home.file = {
".config/easyeffects/output/headphones.json".source = ./headphones.json;
};
};
}

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
services.gnome-keyring.enable = true;
services.gnome-keyring.enable = config.home.desktop.enable;
}

View file

@ -1,7 +1,7 @@
{ config, lib, ... }:
{
services.mpd = {
enable = true;
enable = config.home.desktop.enable;
network.startWhenNeeded = true;
musicDirectory = "/home/jimbo/JimboNFS/Music/JimBops";
playlistDirectory = "/home/jimbo/JimboNFS/Music/JimBops/Playlists";

View file

@ -1,7 +1,7 @@
{ ... }:
{ config, ... }:
{
services.udiskie = {
enable = true;
enable = config.home.desktop.enable;
automount = false;
};
}

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
home.pointerCursor = {
home.pointerCursor = lib.mkIf config.home.desktop.enable {
gtk.enable = true;
x11.enable = true;
name = "Simp1e-Dark";

View file

@ -1,5 +1,6 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.home.desktop.enable {
home.packages = with pkgs; [
liberation_ttf
twitter-color-emoji
@ -8,7 +9,6 @@
ubuntu_font_family
(nerdfonts.override { fonts = [ "UbuntuMono" ]; })
];
fonts.fontconfig = {
enable = true;
defaultFonts = {
@ -17,4 +17,5 @@
emoji = [ "Twitter Color Emoji" ];
};
};
};
}

View file

@ -1,7 +1,6 @@
{ ... }:
{
gtk = {
# Disable shadows
gtk3.extraCss = ''
* { outline-width: 0px; }
decoration { box-shadow: none; }

View file

@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
xdg.userDirs = {
enable = true;

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
./grimsnap
@ -9,7 +9,7 @@
./wpaperd
];
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
brightnessctl
clipman
grim

View file

@ -1,6 +1,6 @@
{ pkgs, config, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
(pkgs.writeScriptBin "grimsnap" ''
# Freeze the screen using hyprpicker
hyprpicker -r -z &

View file

@ -5,7 +5,7 @@
];
services.mako = {
enable = true;
enable = config.home.desktop.enable;
borderColor = "#${config.look.colors.accent}";
backgroundColor = "#${config.look.colors.dark}D9";
output = "${config.displays.d1}";

View file

@ -1,6 +1,6 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.services.mako.enable [
(pkgs.writeScriptBin "makotoggle" ''
mode_output=$(makoctl mode)

View file

@ -1,6 +1,6 @@
{ pkgs, config, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
(pkgs.writeScriptBin "wlpicker" ''
# Get color position
position=$(slurp -b 00000000 -p)

View file

@ -1,7 +1,7 @@
{ config, ... }:
{
programs.wpaperd = {
enable = true;
enable = config.home.desktop.enable;
settings = {
default.mode = "center";
any.path = "~/.assets/wallpapers/1.png";

View file

@ -1,6 +1,6 @@
{ pkgs, config, ... }:
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
home.packages = with pkgs; lib.mkIf config.wayland.windowManager.sway.enable [
(pkgs.writeScriptBin "prop-sway" ''
selected_window=$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"' | ${pkgs.slurp}/bin/slurp -r -c ${config.look.colors.prime} -B 00000066 -b 00000000)
if [ -n "$selected_window" ]; then