From 309a328833f9dfec385d7f7042fd1ff7c5bd3506 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 10 Dec 2024 01:18:30 -0800 Subject: for stackexchange viewers --- configuration.nix | 18 +++++++++++++++--- home.nix | 8 +++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index fd5fb06..121e5fa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,7 +12,15 @@ systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; - kernelModules = [ "snd-seq" "snd-rawmidi" ]; + kernelModules = [ + "snd-seq" + "snd-rawmidi" + "xhci_hcd" + ]; + kernelParams = [ + "usbcore.autosuspend=-1" + "usbcore.quirks=0763:0015:iou" + ]; # kernelPackages = pkgs.linuxKernel.packages.linux_6_1; }; @@ -359,6 +367,10 @@ time.timeZone = "America/Vancouver"; i18n.defaultLocale = "en_CA.UTF-8"; - - system.stateVersion = "23.11"; + system = { + stateVersion = "23.11"; + nixos = { + tags = [ "fixing-hammer88" ]; + }; + }; } diff --git a/home.nix b/home.nix index bd44a64..747f932 100644 --- a/home.nix +++ b/home.nix @@ -1021,6 +1021,7 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh export QT_QPA_PLATFORM="wayland" ''; + localVariables = { EDITOR = "emacsclient --create-frame --alternate-editor=vim"; INPUT_METHOD = "fcitx"; @@ -1030,6 +1031,7 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config XIM_SERVERS = "fcitx"; WXSUPPRESS_SIZER_FLAGS_CHECK = "1"; }; + shellAliases = { c = "clear"; g = "git"; @@ -1040,9 +1042,9 @@ on-notify=exec mpv /home/preston/sounds/notification.mp3 --no-config i3 = "exec ${pkgs.i3-gaps}/bin/i3"; }; loginExtra = '' -#if [ "$(tty)" = "/dev/tty1" ];then - exec Hyprland -#fi + if [ "$(tty)" = "/dev/tty1" ];then + exec Hyprland + fi ''; }; -- cgit