This commit is contained in:
Tao Tien 2024-02-27 10:26:58 -08:00
parent 94008569ec
commit cffa274b7b
7 changed files with 39 additions and 33 deletions

View file

@ -6,7 +6,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# freecad # freecad
# vulkan-loader # vulkan-loader
# etcher etcher
hyperfine hyperfine
inputs.helix.packages.${pkgs.system}.default inputs.helix.packages.${pkgs.system}.default
jq jq

View file

@ -90,6 +90,7 @@
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = lib.mkDefault true;
}; };
security.sudo-rs.enable = true; security.sudo-rs.enable = true;

View file

@ -6,6 +6,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# egl-wayland # egl-wayland
# gpt4all-chat
# nvidia-vaapi-driver # nvidia-vaapi-driver
foldingathome foldingathome
gwe gwe
@ -23,14 +24,14 @@
extraArgs = ["--passkey=76ba03d55acf116776ba03d55acf1167"]; extraArgs = ["--passkey=76ba03d55acf116776ba03d55acf1167"];
}; };
environment.sessionVariables = { # environment.sessionVariables = {
# wayland chromium workaround # # wayland chromium workaround
NIXOS_OZONE_WL = "1"; # NIXOS_OZONE_WL = "1";
# firefox nvidia-vaapi-driver # # firefox nvidia-vaapi-driver
# MOZ_DISABLE_RDD_SANDBOX = "1"; # # MOZ_DISABLE_RDD_SANDBOX = "1";
# LIBVA_DRIVER_NAME = "nvidia"; # # LIBVA_DRIVER_NAME = "nvidia";
}; # };
fileSystems."/home" = { fileSystems."/home" = {
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09"; device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";

View file

@ -25,19 +25,12 @@
swapDevices = [{device = "/dev/disk/by-uuid/ca55d0ea-c0db-44c5-af3a-e38eec803929";}]; swapDevices = [{device = "/dev/disk/by-uuid/ca55d0ea-c0db-44c5-af3a-e38eec803929";}];
# services.fstrim.enable = true;
services.fprintd.enable = true; services.fprintd.enable = true;
services.fwupd.enable = true; services.fwupd.enable = true;
# services.fstrim.enable = true;
powerManagement.powertop.enable = true; powerManagement.powertop.enable = true;
hardware.sensor.iio.enable = true; hardware.sensor.iio.enable = true;
# hardware.sane = {
# enable = true;
# extraBackends = [ pkgs.epkowa ];
# };
services.xserver.displayManager.defaultSession = "plasmawayland";
# systemd.user.services.backlight = { # systemd.user.services.backlight = {
# # description = ""; # # description = "";
# ExecStart = "${pkgs.prescurve}/bin/prescurve_backlight"; # ExecStart = "${pkgs.prescurve}/bin/prescurve_backlight";
@ -45,6 +38,13 @@
# wantedBy = [ "default.target" ]; # wantedBy = [ "default.target" ];
# }; # };
services.xserver.displayManager.defaultSession = "plasmawayland";
# hardware.sane = {
# enable = true;
# extraBackends = [ pkgs.epkowa ];
# };
services.udev.extraRules = '' services.udev.extraRules = ''
# Ethernet expansion card # Ethernet expansion card
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20" ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0bda", ATTR{idProduct}=="8156", ATTR{power/autosuspend}="20"
@ -75,7 +75,5 @@
# boot.kernel.sysctl."net.ipv4.ip_forward" = "1"; # boot.kernel.sysctl."net.ipv4.ip_forward" = "1";
# boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1"; # boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1";
services.pipewire.wireplumber.enable = true;
networking.hostName = "NOlaptop"; networking.hostName = "NOlaptop";
} }

View file

@ -11,16 +11,21 @@
# expressvpn # expressvpn
# fractal # fractal
# gh # gh
# joshuto
# libftdi # libftdi
# libusb # libusb
# mdbook
# mendeley # mendeley
# nuspell # nuspell
# ocs-url # ocs-url
# oculante # oculante
# ollama
# onefetch
# partition-manager # partition-manager
# slack # slack
# tectonic
# texlab
# tio # tio
# toastify
# vial # vial
# wkhtmltopdf # wkhtmltopdf
# yazi # yazi
@ -32,23 +37,20 @@
darktable darktable
deluge deluge
discord discord
gpt4all-chat
jellyfin-media-player jellyfin-media-player
jellyfin-mpv-shim jellyfin-mpv-shim
joshuto
keepassxc keepassxc
leetcode-cli leetcode-cli
libsForQt5.kcharselect libsForQt5.kcharselect
libsForQt5.kdeconnect-kde libsForQt5.kdeconnect-kde
libsForQt5.plasma-integration
libsForQt5.plasma-vault libsForQt5.plasma-vault
miniserve miniserve
nushell nushell
obs-studio obs-studio
# ollama
onefetch
onlyoffice-bin onlyoffice-bin
pandoc pandoc
plasma-integration pipe-rename
prusa-slicer prusa-slicer
pueue pueue
qmk qmk
@ -57,8 +59,6 @@
snapper snapper
starship starship
syncthingtray syncthingtray
tectonic
texlab
thunderbird thunderbird
typst typst
typst-fmt typst-fmt
@ -85,10 +85,10 @@
}; };
hardware.keyboard.qmk.enable = true; hardware.keyboard.qmk.enable = true;
services.udev.extraRules = '' # services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" # KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" # KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
''; # '';
# obs virtual camera # obs virtual camera
boot.extraModulePackages = with config.boot.kernelPackages; [ boot.extraModulePackages = with config.boot.kernelPackages; [

View file

@ -218,7 +218,13 @@ $env.config = {
env_change: { env_change: {
PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input
} }
display_output: { table } # run before the output of a command is drawn, example: `{ if (term size).columns >= 100 { table -e } else { table } }` display_output: {
if (term size).columns >= 80 {
table -e
} else {
table
}
}
command_not_found: { null } # return an error message when a command is not found command_not_found: { null } # return an error message when a command is not found
} }

View file

@ -35,8 +35,8 @@
j = "move_line_up"; j = "move_line_up";
}; };
keys.select = { keys.select = {
k = "move_line_down"; k = "extend_line_down";
j = "move_line_up"; j = "extend_line_up";
}; };
}; };
languages = { languages = {