tootpc and toothpick nvidia changes and switching to zen

This commit is contained in:
cnst
2024-11-25 18:19:44 +01:00
parent 2fcfba18d7
commit 0beb5b602a
5 changed files with 8 additions and 6 deletions

View File

@@ -26,7 +26,8 @@
}; };
nvidia = { nvidia = {
enable = true; enable = true;
package = "latest"; open = false;
package = "beta";
}; };
}; };
logitech = { logitech = {

View File

@@ -120,8 +120,8 @@ in {
(mkIf (host == "toothpc") { (mkIf (host == "toothpc") {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
"$terminal" = "foot"; "$terminal" = "foot";
"$browser" = "firefox"; "$browser" = "zen";
"$browserinc" = "firefox --private-window"; "$browserinc" = "zen --private-window";
"$mod" = "ALT_L"; "$mod" = "ALT_L";
bind = [ bind = [
# Add more host-specific binds as needed # Add more host-specific binds as needed

View File

@@ -6,7 +6,7 @@
}: let }: let
inherit (lib) mkIf mkEnableOption elem; inherit (lib) mkIf mkEnableOption elem;
browser = browser =
if elem osConfig.networking.hostName ["cnix" "cnixpad"] if elem osConfig.networking.hostName ["cnix" "cnixpad" "toothpc"]
then "zen.desktop" then "zen.desktop"
else "firefox.desktop"; else "firefox.desktop";
cfg = config.home.services.xdg; cfg = config.home.services.xdg;

View File

@@ -20,6 +20,7 @@ in {
options = { options = {
nixos.hardware.graphics.nvidia = { nixos.hardware.graphics.nvidia = {
enable = mkEnableOption "Enables NVidia graphics"; enable = mkEnableOption "Enables NVidia graphics";
open.enable = mkEnableOption "Enables open version of drivers";
package = mkOption { package = mkOption {
type = types.enum ["stable" "beta" "production" "latest"]; type = types.enum ["stable" "beta" "production" "latest"];
default = "stable"; default = "stable";
@@ -64,7 +65,7 @@ in {
enable = false; enable = false;
finegrained = false; finegrained = false;
}; };
open = true; open = cfg.open.enable;
nvidiaSettings = true; nvidiaSettings = true;
}; };
}; };

View File

@@ -14,7 +14,7 @@
filezilla filezilla
]; ];
sessionVariables = { sessionVariables = {
BROWSER = "firefox"; BROWSER = "zen";
EDITOR = "nvim"; EDITOR = "nvim";
TERM = "xterm-256color"; TERM = "xterm-256color";