diff options
author | Preston Pan <preston@nullring.xyz> | 2024-12-10 01:18:30 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-12-10 01:18:30 -0800 |
commit | 309a328833f9dfec385d7f7042fd1ff7c5bd3506 (patch) | |
tree | c9991c1d1f0be8527a6d3aef71a3f75300155b2d | |
parent | e3f59289e1f1dc20702fa6e9b64fdfdba67f4666 (diff) |
for stackexchange viewers
-rw-r--r-- | configuration.nix | 18 | ||||
-rw-r--r-- | 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" ]; + }; + }; } @@ -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 ''; }; |