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

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

View File

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

View File

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