working on nvidia settings

This commit is contained in:
Matt Nish-Lapidus 2024-10-07 23:39:25 -04:00
parent 36798975c7
commit 1781b9c4ad
9 changed files with 2176 additions and 428 deletions

View file

@ -1,10 +1,6 @@
{ nix-flatpak, lib, pkgs, inputs, ... }:
{
imports = [
./razer-speaker-fix.nix
];
nixpkgs.config.allowUnfree = true;
home = {
@ -91,7 +87,6 @@
nodePackages.svelte-language-server
nodePackages.typescript
nixd
fishPlugins.foreign-env
@ -110,9 +105,12 @@
gnomeExtensions.just-perfection
gnomeExtensions.dash-to-dock
gnomeExtensions.solaar-extension
gnomeExtensions.kmonad-toggle
gnomeExtensions.forge
gnome-software
gnome-tweaks
gnome-photos
sushi
colloid-gtk-theme
colloid-icon-theme
whitesur-gtk-theme
@ -120,10 +118,14 @@
whitesur-icon-theme
graphite-gtk-theme
graphite-cursors
waycorner
icloudpd
squirreldisk
papers
newsflash
planify
fuzzel
wineWowPackages.stagingFull
wineWowPackages.fonts
@ -212,7 +214,7 @@
username = "emenel";
homeDirectory = "/home/emenel";
sessionPath = [ "/home/emenel/.config/emacs/bin" "/home/emenel/.npm-packages/bin" "/home/emenel/Applications" ];
sessionPath = [ "/home/emenel/.config/emacs/bin" "/home/emenel/.npm-packages/bin" "/home/emenel/Applications" "/home/emenel/.local/bin" "/home/emenel/.local/share" ];
sessionVariables = {
EDITOR = "emacsclient -r";
@ -235,6 +237,7 @@
enable = true;
shellAliases = {
"ls" = "eza";
".j" = "just -g";
};
};
starship = {
@ -295,44 +298,6 @@
firefox.enable = true;
};
wayland.windowManager.hyprland = {
enable = true; # enable Hyprland
xwayland.enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
systemd.variables = ["--all"];
# plugins = [
# inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
# ];
settings = {
"$mod" = "SUPER";
bind =
[
"$mod, F, exec, zen"
"$mod, T, exec, wezterm"
", Print, exec, grimblast copy area"
];
# ++ (
# # workspaces
# # binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
# builtins.concatLists (builtins.genList (i:
# let ws = i + 1;
# in [
# "$mod, code:1${toString i}, workspace, ${toString ws}"
# "$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
# ]
# )
# 9)
# );
# terminal = "wezterm";
};
extraConfig = ''
# Monitor
monitor=eDP-1,2560x1600@240,auto,1
'';
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
dconf.settings = {
@ -371,6 +336,31 @@
};
};
# wayland.windowManager.sway = {
# enable = true;
# config = rec {
# modifier = "Mod4";
# terminal = "wezterm";
# startup = [
# # Launch Firefox on start
# {command = "firefox";}
# ];
# };
# };
# kanshi systemd service
# systemd.user.services.kanshi = {
# #description = "kanshi daemon";
# environment = {
# WAYLAND_DISPLAY="wayland-1";
# DISPLAY = ":0";
# };
# serviceConfig = {
# Type = "simple";
# ExecStart = ''${pkgs.kanshi}/bin/kanshi -c kanshi_config_file'';
# };
# };
xdg.systemDirs.data = [
"/home/emenel/.local/share/applications/wine/Programs"
"/home/emenel/.local/share/applications"
@ -389,7 +379,7 @@
home.file.".npmrc".source = ../dotfiles/dot_npmrc;
xdg.configFile."kmonad".source = ../dotfiles/dot_config/kmonad;
xdg.configFile."just".source = ../dotfiles/dot_config/just/justfile;
xdg.configFile."just/justfile".source = ../dotfiles/dot_config/just/justfile;
xdg.configFile."starship.toml".source = ../dotfiles/dot_config/starship.toml;
xdg.configFile."wezterm".source = ../dotfiles/dot_config/wezterm;
xdg.configFile."git".source = ../dotfiles/dot_config/git;
@ -405,37 +395,4 @@
home.file.".mbsyncrc".source = ../dotfiles/dot_mbsyncrc;
home.file.".local/share/flf".source = ../dotfiles/dot_local/share/flf;
############ ACCOUNTS
# accounts.calendar = {
# basePath = ".calendars";
# accounts = {
# emenel = {
# primaryCollection = "Primary";
# name = "matt@emenel.ca";
# primary = true;
# remote = {
# passwordCommand = [ "rbw" "get" "nixos-fastmail" ];
# type = "caldav";
# url = "https://caldav.fastmail.com";
# userName = "matt@emenel.ca";
# };
# local = {
# fileExt = ".ics";
# type = "filesystem";
# };
# vdirsyncer = {
# enable = true;
# collections = [ "87220838-CCD7-11ED-AB3D-F5DBFBDED781" ];
# itemTypes = ["VEVENT"];
# metadata = ["displayname" "color"];
# };
# khal.enable = true;
# khal.color = "dark cyan";
# khal.type = "discover";
# khal.addresses = [ "matt@emenel.ca" ];
# };
# };
# };
}

View file

@ -1,11 +1,13 @@
{ config, lib, pkgs, ... }:
{
systemd.services.razer-speaker-fix = {
description = "Workaround for the Razer Blade 14 internal audio device";
wantedBy = [ "multi-user.target" ];
restartIfChanged = false;
script = ''
systemd.services.razer-speaker-fix = {
enable = true;
# description = "Workaround for the Razer Blade 14 internal audio device";
wantedBy = [ "multi-user.target" ];
after = [ "multi-user.target" ];
script = ''
#!/bin/sh
hda-verb /dev/snd/hwC2D0 0x20 0x500 0x7
hda-verb /dev/snd/hwC2D0 0x20 0x500 0x7
@ -2009,5 +2011,5 @@ hda-verb /dev/snd/hwC2D0 0x20 0x500 0x23
hda-verb /dev/snd/hwC2D0 0x20 0x400 0xdd00
'';
};
};
}