testing with nvidia settings and some modules fixings

This commit is contained in:
cnst
2024-08-17 21:19:07 +02:00
parent 99421b6fa9
commit 4f5af690bd
11 changed files with 81 additions and 97 deletions

View File

@@ -4,7 +4,6 @@
./dconf ./dconf
./polkit ./polkit
./gtk ./gtk
./utility
./xdg ./xdg
]; ];
} }

View File

@@ -1,41 +0,0 @@
{pkgs, ...}: {
programs = {
ssh = {
enable = true;
};
# image viewer
feh = {
enable = true;
};
# system information
fastfetch = {
enable = true;
};
# a monitor of resources
btop = {
enable = true;
settings = {
color_theme = "gruvbox_material_dark";
};
};
};
home.packages = with pkgs; [
file-roller # archiver
gnome-calculator
nwg-look # GTK settings
hyprpicker # Color picker
pavucontrol # GUI sound control
pamixer # TUI sound control
keepassxc
calcurse # calendar
grimblast # screenshot
slurp # select region for screenshot
qbittorrent
networkmanagerapplet # tray icon for NetworkManager
usbimager # write bootable usb images!
chatgpt-cli
exiftool
libnotify
filezilla
];
}

View File

@@ -30,6 +30,7 @@
"${userModules}/utils/rofi" "${userModules}/utils/rofi"
"${userModules}/utils/waybar" "${userModules}/utils/waybar"
"${userModules}/utils/yazi" "${userModules}/utils/yazi"
"${userModules}/utils/misc"
# "${userModules}/wm" # "${userModules}/wm"
]; ];
} }

View File

@@ -0,0 +1,67 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.utils.misc;
in {
options = {
modules.utils.misc.enable = mkEnableOption "Enables miscellaneous utility apps";
};
config = mkIf cfg.enable {
programs = {
ssh = {
enable = true;
};
# image viewer
feh = {
enable = true;
};
# system information
fastfetch = {
enable = true;
};
# a monitor of resources
btop = {
enable = true;
settings = {
color_theme = "gruvbox_material_dark";
};
};
};
home.packages = with pkgs; [
# misc.gui
virt-manager
xfce.thunar
file-roller # archiver
gnome-calculator
keepassxc
networkmanagerapplet # tray icon for NetworkManager
nwg-look # GTK settings
pavucontrol # GUI sound control
qbittorrent
usbimager # write bootable usb images!
# misc.tui
ranger
xcur2png
calcurse # calendar
chatgpt-cli
exiftool
hyprpicker # Color picker
libnotify
pamixer # TUI sound control
slurp # select region for screenshot
# misc.system
adwaita-icon-theme
qt5.qtwayland
qt6.qtwayland
wireguard-tools
wl-clipboard
wpa_supplicant
xfce.thunar-archive-plugin
xfce.thunar-volman
];
};
}

View File

@@ -11,26 +11,9 @@
extraOutputsToInstall = ["doc" "devdoc"]; extraOutputsToInstall = ["doc" "devdoc"];
packages = with pkgs; [ packages = with pkgs; [
# misc.gui
virt-manager
xfce.thunar
# misc.tui
ranger
xcur2png
# misc.system # misc.system
brightnessctl brightnessctl
bun bun
adwaita-icon-theme
qt5.qtwayland
qt6.qtwayland
# thefuck
wireguard-tools
wl-clipboard
wpa_supplicant
xfce.thunar-archive-plugin
xfce.thunar-volman
]; ];
sessionVariables = { sessionVariables = {
BROWSER = "firefox"; BROWSER = "firefox";

View File

@@ -39,6 +39,7 @@
rofi.enable = false; rofi.enable = false;
waybar.enable = true; waybar.enable = true;
yazi.enable = true; yazi.enable = true;
misc.enable = true;
}; };
userd = { userd = {
sops.enable = true; sops.enable = true;

View File

@@ -10,25 +10,8 @@
stateVersion = "23.11"; stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"]; extraOutputsToInstall = ["doc" "devdoc"];
packages = with pkgs; [ packages = with pkgs; [
# misc.gui
virt-manager
xfce.thunar
# misc.tui
ranger
xcur2png
# misc.system # misc.system
bun bun
adwaita-icon-theme
qt5.qtwayland
qt6.qtwayland
# thefuck
wireguard-tools
wl-clipboard
wpa_supplicant
xfce.thunar-archive-plugin
xfce.thunar-volman
]; ];
sessionVariables = { sessionVariables = {
BROWSER = "firefox"; BROWSER = "firefox";

View File

@@ -39,6 +39,7 @@
rofi.enable = false; rofi.enable = false;
waybar.enable = true; waybar.enable = true;
yazi.enable = true; yazi.enable = true;
misc.enable = true;
}; };
userd = { userd = {
sops.enable = true; sops.enable = true;

View File

@@ -7,6 +7,7 @@
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
shellAliases = { shellAliases = {
nixmodules = "nvim /home/cnst/.nix-config/home/profiles/cnst/modules.nix";
nixclean = "sudo nix run .#cleanup-boot"; nixclean = "sudo nix run .#cleanup-boot";
nixdev = "nix develop ~/.nix-config -c $SHELL"; nixdev = "nix develop ~/.nix-config -c $SHELL";
nixconfig = "cd /home/cnst/.nix-config/"; nixconfig = "cd /home/cnst/.nix-config/";

View File

@@ -11,25 +11,9 @@
extraOutputsToInstall = ["doc" "devdoc"]; extraOutputsToInstall = ["doc" "devdoc"];
packages = with pkgs; [ packages = with pkgs; [
# misc.gui # user specific pkgs
virt-manager filezilla
xfce.thunar
# misc.tui
ranger
xcur2png
# misc.system
adwaita-icon-theme
egl-wayland egl-wayland
qt5.qtwayland
qt6.qtwayland
# thefuck
wireguard-tools
wl-clipboard
wpa_supplicant
xfce.thunar-archive-plugin
xfce.thunar-volman
]; ];
sessionVariables = { sessionVariables = {
BROWSER = "firefox"; BROWSER = "firefox";
@@ -37,10 +21,14 @@
TERM = "foot"; TERM = "foot";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/toothpick/.steam/root/compatibilitytools.d"; # proton and steam compat STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/toothpick/.steam/root/compatibilitytools.d"; # proton and steam compat
QT_QPA_PLATFORM = "wayland-egl";
SDL_VIDEODRIVER = "wayland";
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
ELECTRON_OZONE_PLATFORM_HINT = "auto"; NIXOS_OZONE_WL = "1";
MOZ_ENABLE_WAYLAND = "1";
MOZ_DISABLE_RDD_SANDBOX = "1";
WLR_DRM_NO_ATOMIC = "1";
WLR_NO_HARDWARE_CURSORS = "1";
LIBVA_DRIVER_NAME = "nvidia";
EGL_PLATFORM = "wayland";
}; };
}; };
# disable manuals as nmd fails to build often # disable manuals as nmd fails to build often

View File

@@ -39,6 +39,7 @@
rofi.enable = false; rofi.enable = false;
waybar.enable = true; waybar.enable = true;
yazi.enable = true; yazi.enable = true;
misc.enable = true;
}; };
userd = { userd = {
sops.enable = false; sops.enable = false;