Refactor Nix configurations: comment out unused user directories, update default browser to zen_twilight, and adjust package imports for development and gaming

This commit is contained in:
Chris Toph 2025-03-04 23:43:53 -05:00
parent 84d4cd6e4e
commit 42a6d62ccd
13 changed files with 31 additions and 31 deletions

View file

@ -55,12 +55,12 @@
userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/.desktop";
documents = "${config.home.homeDirectory}/doc";
download = "${config.home.homeDirectory}/downloads";
music = "${config.home.homeDirectory}/media/audio";
pictures = "${config.home.homeDirectory}/media/images";
videos = "${config.home.homeDirectory}/media/video";
# desktop = "${config.home.homeDirectory}/.desktop";
# documents = "${config.home.homeDirectory}/doc";
# download = "${config.home.homeDirectory}/downloads";
# music = "${config.home.homeDirectory}/media/audio";
# pictures = "${config.home.homeDirectory}/media/images";
# videos = "${config.home.homeDirectory}/media/video";
# publicshare = "/var/empty"; #using this option with null or "/var/empty" barfs so it is set properly in extraConfig below
# templates = "/var/empty"; #using this option with null or "/var/empty" barfs so it is set properly in extraConfig below

View file

@ -12,9 +12,9 @@
};
xdg.mimeApps.defaultApplications = {
"text/html" = [ "zen.desktop" ];
"text/xml" = [ "zen.desktop" ];
"x-scheme-handler/http" = [ "zen.desktop" ];
"x-scheme-handler/https" = [ "zen.desktop" ];
"text/html" = [ "zen_twilight.desktop" ];
"text/xml" = [ "zen_twilight.desktop" ];
"x-scheme-handler/http" = [ "zen_twilight.desktop" ];
"x-scheme-handler/https" = [ "zen_twilight.desktop" ];
};
}

View file

@ -51,7 +51,7 @@
"org.gnome.Nautilus.desktop"
"org.wezfurlong.wezterm.desktop"
"win11.desktop"
"zen.desktop"
"zen_twilight.desktop"
"spotify.desktop"
"vesktop.desktop"
"org.telegram.desktop.desktop"

View file

@ -5,7 +5,7 @@
...
}:
{
imports = lib.custom.scanPaths ./.;
# imports = lib.custom.scanPaths ./.;
home.packages = lib.flatten [
(builtins.attrValues {
@ -18,6 +18,8 @@
logisim-evolution
mcaselector
prettierd
jetbrains-toolbox
vscode-fhs
# nix
nixpkgs-review
@ -38,7 +40,6 @@
;
inherit (pkgs.jetbrains)
idea-ultimate
jetbrains-toolbox
;
})
];

View file

@ -8,20 +8,20 @@
}:
let
monitor = lib.head (lib.filter (m: m.primary) config.monitors);
# monitor = lib.head (lib.filter (m: m.primary) config.monitors);
steam-session =
let
gamescope = lib.concatStringsSep " " [
(lib.getExe pkgs.gamescope)
"--output-width ${toString monitor.width}"
"--output-height ${toString monitor.height}"
"--framerate-limit ${toString monitor.refreshRate}"
"--prefer-output ${monitor.name}"
# "--output-width ${toString monitor.width}"
# "--output-height ${toString monitor.height}"
# "--framerate-limit ${toString monitor.refreshRate}"
# "--prefer-output ${monitor.name}"
"--adaptive-sync"
"--expose-wayland"
"--steam"
"--hdr-enabled"
# "--hdr-enabled"
];
steam = lib.concatStringsSep " " [
"steam"
@ -37,7 +37,7 @@ let
'';
in
{
home.packages = [
home.packages = with pkgs; [
steam-session
prismlauncher
];

View file

@ -5,7 +5,7 @@
}:
let
# FIXME(xdg): That should use config options and just reference whatever is configured as the default
browser = [ "zen.desktop" ];
browser = [ "zen_twilight.desktop" ];
editor = [ "code.desktop" ];
# Extensive list of associations here:
# https://github.com/iggut/GamiNiX/blob/8070528de419703e13b4d234ef39f05966a7fafb/system/desktop/home-main.nix#L77

View file

@ -32,10 +32,6 @@
## Productivity ##
gimp
inkscape
## Fonts ##
monocraft
nerd-fonts
;
};

View file

@ -10,7 +10,8 @@
## Host-specific Optional Configs ##
../common/optional/browsers
../common/optional/desktops
../common/optional/development
../common/optional/gaming
../common/optional/xdg.nix # file associations
];

View file

@ -33,6 +33,7 @@ in
# System-wide packages, in case we log in as root
environment.systemPackages = with pkgs; [
plocate
openssh
ranger
sshfs

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
# sound.enable = true; #deprecated in 24.11 TODO remove this line when 24.11 release
hardware.pulseaudio.enable = false;
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;

View file

@ -33,7 +33,7 @@
with pkgs;
[
atomix # puzzle game
# epiphany # web browser
epiphany # web browser
evince # document viewer
gedit # text editor
gnome-maps

View file

@ -7,7 +7,7 @@
];
plymouth = {
enable = true;
theme = lib.mkForce "hexagon_hud";
theme = lib.mkForce "motion";
themePackages = [
(pkgs.adi1090x-plymouth-themes.override { selected_themes = [ "motion" ]; })
];

View file

@ -27,8 +27,10 @@ in
## Optional Configs ##
"hosts/common/optional/audio.nix" # pipewire and cli controls
"hosts/common/optional/gaming.nix" # steam, gamescope, gamemode, and related hardware
"hosts/common/optional/gnome.nix" # desktop
# "hosts/common/optional/plymouth.nix" # fancy boot screen
"hosts/common/optional/nvtop.nix" # GPU monitor (not available in home-manager)
"hosts/common/optional/plymouth.nix" # fancy boot screen
## Misc Inputs ##
@ -60,7 +62,6 @@ in
ranger
sshfs
wget
];
# https://wiki.nixos.org/wiki/FAQ/When_do_I_update_stateVersion