This commit is contained in:
Tao Tien 2023-09-30 22:39:53 -07:00
parent 62fec8cbf5
commit 817238bbf7
5 changed files with 29 additions and 74 deletions

View file

@ -12,6 +12,8 @@
# pkgconfig # pkgconfig
# rustup # rustup
# udev # udev
nixpkgs-fmt
nil
expat expat
fontconfig fontconfig
freetype freetype

View file

@ -1,34 +1,22 @@
{ lib, pkgs, modulesPath, ... }: { { lib, pkgs, modulesPath, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# exfatprogs
# rustup
# appimage-run
bat bat
bottom bottom
cifs-utils
du-dust du-dust
exfatprogs
ffmpeg ffmpeg
firefox firefox
git git
helix helix
mesa mesa
mpv mpv
# nfs-utils
nil
# nixpkgs-fmt
# onlyoffice-bin
ouch ouch
# ripgrep-all ripgrep
skim skim
# snapper
tree tree
# unstable.yazi
# unstable.joshuto
# xunstable.oculante
wezterm wezterm
wget wget
yt-dlp yt-dlp
zathura
zstd zstd
]; ];
programs.partition-manager.enable = lib.mkDefault true; programs.partition-manager.enable = lib.mkDefault true;
@ -49,13 +37,6 @@
VISUAL = "hx"; VISUAL = "hx";
}; };
# xdg.portal = {
# enable = true;
# extraPortals = with pkgs; [
# xdg-desktop-portal-wlr
# ];
# };
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
hardware.bluetooth.enable = lib.mkDefault true; hardware.bluetooth.enable = lib.mkDefault true;
@ -66,20 +47,6 @@
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
# dispatcherScripts = [{
# source = pkgs.writeText "upHook" ''
# logger "event $2"
# if [ "$2" == "vpn-up" ]; then
# iptables -A OUTPUT -o tun0 -j ACCEPT
# iptables -A OUTPUT ! -o tun0 -j DROP
# fi
# if [ "$2" == "vpn-down" ]; then
# iptables -D OUTPUT -o tun0 -j ACCEPT
# iptables -D OUTPUT ! -o tun0 -j DROP
# fi
# '';
# type = "basic";
# }];
}; };
networking.firewall.enable = false; networking.firewall.enable = false;

View file

@ -5,36 +5,33 @@
]; ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4"; fsType = "ext4";
options = [ "noatime" ];
autoResize = true; autoResize = true;
}; };
programs.partition-manager.enable = false; programs.partition-manager.enable = false;
services.tailscale.enable = true;
services.openssh.enable = true;
services.flatpak.enable = false;
services.printing.enable = false; services.printing.enable = false;
services.btrfs.autoScrub.enable = false; services.btrfs.autoScrub.enable = false;
boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ];
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
boot.loader.systemd-boot.enable = false; boot.loader.systemd-boot.enable = false;
boot.loader.efi.canTouchEfiVariables = false;
boot.loader.generic-extlinux-compatible.enable = true; boot.loader.generic-extlinux-compatible.enable = true;
console.enable = false; # console.enable = false;
# powerManagement.cpuFreqGovernor = "ondemand"; # powerManagement.cpuFreqGovernor = "ondemand";
hardware = { hardware = {
raspberry-pi."4" = { raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true; # apply-overlays-dtmerge.enable = true;
# audio.enable = true; # audio.enable = true;
fkms-3d.enable = true; fkms-3d.enable = true;
}; };
deviceTree = { # deviceTree = {
enable = true; # enable = true;
# filter = "*rpi-4-*.dtb"; # filter = "*rpi-4-*.dtb";
}; # };
}; };
nixpkgs.hostPlatform = "aarch64-linux"; nixpkgs.hostPlatform = "aarch64-linux";

View file

@ -4,13 +4,13 @@
autoLogin.user = "tao"; autoLogin.user = "tao";
}; };
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
[ [
# mesa # mesa
openrgb openrgb
gwe gwe
liquidctl liquidctl
snapper
# egl-wayland # egl-wayland
# nvidia-vaapi-driver # nvidia-vaapi-driver
]; ];
@ -21,7 +21,6 @@
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
}; };
fileSystems."/home" = { fileSystems."/home" = {
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09"; device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
fsType = "btrfs"; fsType = "btrfs";
@ -37,7 +36,6 @@
fsType = "btrfs"; fsType = "btrfs";
options = [ "subvol=games" "nosuid" "nodev" "noatime" "compress-force=zstd:3" "users" "rw" "exec" ]; options = [ "subvol=games" "nosuid" "nodev" "noatime" "compress-force=zstd:3" "users" "rw" "exec" ];
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2B28-151D"; device = "/dev/disk/by-uuid/2B28-151D";
fsType = "vfat"; fsType = "vfat";
@ -59,7 +57,6 @@
}; };
swapDevices = [{ device = "/dev/disk/by-uuid/ca0ed3d7-8758-4ac7-b016-8b4cd9608ded"; }]; swapDevices = [{ device = "/dev/disk/by-uuid/ca0ed3d7-8758-4ac7-b016-8b4cd9608ded"; }];
services.snapper.configs = services.snapper.configs =
{ {
home = { home = {
@ -73,7 +70,6 @@
}; };
services.snapper.snapshotInterval = "*:0/5"; services.snapper.snapshotInterval = "*:0/5";
# systemd.user.services.fans = { # systemd.user.services.fans = {
# description = "NZXT fans to 69% using liquidctl"; # description = "NZXT fans to 69% using liquidctl";
# script = '' # script = ''
@ -82,13 +78,11 @@
# wantedBy = [ "default.target" ]; # wantedBy = [ "default.target" ];
# }; # };
# boot.kernelPackages = pkgs.linuxPackages_latest; # boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.unstable.linuxPackages_latest; boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.kernelModules = [ "i2c-dev" "kvm-amd" ]; boot.kernelModules = [ "i2c-dev" "kvm-amd" ];
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;
@ -110,13 +104,11 @@
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };
services.udev.packages = [ pkgs.openrgb ]; services.udev.packages = [ pkgs.openrgb ];
services.udev.extraRules = '' services.udev.extraRules = ''
KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a3c5", MODE="0666" KERNEL=="hidraw*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a3c5", MODE="0666"
''; '';
time.hardwareClockInLocalTime = true; time.hardwareClockInLocalTime = true;
networking.hostName = "NOcomputer"; networking.hostName = "NOcomputer";
} }

View file

@ -1,24 +1,18 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.tao.packages = with pkgs; [ users.users.tao.packages = with pkgs; [
appimage-run # enchant
nixpkgs-fmt
onlyoffice-bin
ripgrep-all
snapper
unstable.oculante
# expressvpn # expressvpn
# fractal # fractal
# gnumake
# libftdi # libftdi
# libusb # libusb
# nix-prefetch-scripts # mdbook
# nuspell
# partition-manager
# pkg-config # pkg-config
# slack
appimage-run
aspell aspell
aspellDicts.en aspellDicts.en
# enchant
# nuspell
# hunspellDicts.en-us-large
rustdesk
bottles bottles
cider cider
darktable darktable
@ -28,23 +22,26 @@
keepassxc keepassxc
libsForQt5.kcharselect libsForQt5.kcharselect
libsForQt5.kdeconnect-kde libsForQt5.kdeconnect-kde
# mdbook obs-studio
# partition-manager ocs-url
# slack onlyoffice-bin
ripgrep-all
rustdesk
snapper
tectonic tectonic
texlab texlab
tio tio
unstable.typst
ocs-url
typst-lsp typst-lsp
unstable.nushell unstable.nushell
unstable.oculante
unstable.prusa-slicer unstable.prusa-slicer
unstable.starship unstable.starship
unstable.typst
unstable.wezterm unstable.wezterm
virt-manager virt-manager
zathura
zoom-us zoom-us
zoxide zoxide
obs-studio
]; ];
environment.shells = with pkgs; [ unstable.nushell ]; environment.shells = with pkgs; [ unstable.nushell ];