disable wild temporarily

This commit is contained in:
Tao Tien 2025-07-07 19:05:21 -07:00
parent c087f0aaac
commit d5a9cd1efc
5 changed files with 118 additions and 111 deletions

View file

@ -1,16 +1,16 @@
{pkgs, ...}: { {pkgs, ...}: {
services.desktopManager.plasma6.enable = false; services.desktopManager.plasma6.enable = false;
services.displayManager.sddm.enable = false; services.displayManager.sddm.enable = false;
services.desktopManager.cosmic.enable = true; services.desktopManager.cosmic.enable = true;
services.displayManager.cosmic-greeter.enable = true; services.displayManager.cosmic-greeter.enable = true;
environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1; environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
environment.cosmic.excludePackages = with pkgs; [ environment.cosmic.excludePackages = with pkgs; [
cosmic-edit cosmic-edit
cosmic-player cosmic-player
cosmic-term cosmic-term
cosmic-wallpapers cosmic-wallpapers
]; ];
} }

View file

@ -3,6 +3,7 @@
# aagl.inputs.nixpkgs.follows = "nixpkgs"; # aagl.inputs.nixpkgs.follows = "nixpkgs";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
osu-lazer-bin
easyeffects easyeffects
# parsec-bin # parsec-bin
# yuzu # nintendo can suck the shit out of my asshole # yuzu # nintendo can suck the shit out of my asshole

View file

@ -1,8 +1,8 @@
{ {
lib, lib,
config, config,
pkgs, pkgs,
... ...
}: }:
# let # let
# boostless = pkgs.pipewire.overrideAttrs (old: { # boostless = pkgs.pipewire.overrideAttrs (old: {
@ -13,109 +13,109 @@
# }); # });
# in # in
{ {
environment.etc."alsa-card-profile/analog-input-internal-mic.conf".source = ../extras/analog-input-internal-mic.conf; environment.etc."alsa-card-profile/analog-input-internal-mic.conf".source = ../extras/analog-input-internal-mic.conf;
hardware.graphics.extraPackages = with pkgs; [ hardware.graphics.extraPackages = with pkgs; [
amdvlk amdvlk
]; ];
hardware.graphics.extraPackages32 = with pkgs; [ hardware.graphics.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk driversi686Linux.amdvlk
]; ];
services.xserver.videoDrivers = [ services.xserver.videoDrivers = [
"amdgpu" "amdgpu"
]; ];
# services.pipewire.wireplumber.extraConfig = { # services.pipewire.wireplumber.extraConfig = {
# "wireplumber.settings" = { # "wireplumber.settings" = {
# "device.routes.default-source-volume" = 0.42; # "device.routes.default-source-volume" = 0.42;
# }; # };
# }; # };
services.rsyslogd = { services.rsyslogd = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
module(load="imudp") module(load="imudp")
input(type="imudp" port="514") input(type="imudp" port="514")
THENAS.* -/var/log/THENAS THENAS.* -/var/log/THENAS
'';
};
# nixpkgs.overlays = [
# (final: prev: {
# libinput = prev.libinput.overrideAttrs (old: {
# patches =
# (old.patches or [])
# ++ [
# ../extras/libinput-delay.patch
# ];
# });
# })
# ];
environment.systemPackages = with pkgs; [
fw-ectool
framework-tool
nvtopPackages.amd
lact
];
systemd.services.lactd.wantedBy = ["multi-user.target"];
services.fwupd.enable = true;
services.tailscale.useRoutingFeatures = "client";
systemd.services."backlight@backlight:amdgpu_bl2".enable = false;
nix.buildMachines = [
{
hostName = "nocomputer";
systems = ["x86_64-linux" "i686-linux"];
supportedFeatures = [
"benchmark"
"big-parallel"
"gccarch-znver4"
"kvm"
"nixos-test"
];
}
];
nix.extraOptions = ''
builders-use-substitutes = true
''; '';
}; nix.distributedBuilds = true;
# nixpkgs.overlays = [ services.udev.extraRules = ''
# (final: prev: { # ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness"
# libinput = prev.libinput.overrideAttrs (old: { # ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness"
# patches =
# (old.patches or [])
# ++ [
# ../extras/libinput-delay.patch
# ];
# });
# })
# ];
environment.systemPackages = with pkgs; [ ACTION=="add|change", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", ATTR{power/wakeup}="disabled"
fw-ectool ACTION=="add|change", KERNEL=="i2c", SUBSYSTEM=="i2c", DEVPATH=="/sys/devices/platform/AMDI0010:03/i2c-1/i2c-PIXA3854:00", ATTR{power/wakeup}="disabled"
framework-tool
nvtopPackages.amd
lact
];
systemd.services.lactd.wantedBy = ["multi-user.target"]; # ACTION=="add", SUBSYSTEM=="acpi", DRIVERS=="button", ATTRS{hid}=="PNP0C0D", ATTR{power/wakeup}="disabled"
# ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled"
# ACTION=="add", SUBSYSTEM=="i2c", DRIVERS=="i2c_hid_acpi", ATTRS{name}=="PIXA3854:00", ATTR{power/wakeup}="disabled"
'';
services.fwupd.enable = true; services.fprintd.enable = true;
services.tailscale.useRoutingFeatures = "client";
systemd.services."backlight@backlight:amdgpu_bl2".enable = false;
nix.buildMachines = [ boot.kernelPackages = pkgs.linuxPackages_latest;
{ # boot.initrd.availableKernelModules = [
hostName = "nocomputer"; # "nvme"
systems = ["x86_64-linux" "i686-linux"]; # "sd_mod"
supportedFeatures = [ # "thunderbolt"
"benchmark" # "usb_storage"
"big-parallel" # "xhci_pci"
"gccarch-znver4" # "usbhid"
"kvm" # "uas"
"nixos-test" # ];
]; boot.kernelParams = [
} "amdgpu.abmlevel=1"
]; # "amdgpu.dcdebugmask=0x400"
nix.extraOptions = '' # "mem_sleep_default=deep"
builders-use-substitutes = true ];
''; boot.kernelModules = ["amdgpu"];
nix.distributedBuilds = true; powerManagement.cpuFreqGovernor = "powersave";
systemd.sleep.extraConfig = "HibernateDelaySec=360m";
services.udev.extraRules = '' networking.hostName = "NOlaptop";
# ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness"
# ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness"
ACTION=="add|change", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", ATTR{power/wakeup}="disabled"
ACTION=="add|change", KERNEL=="i2c", SUBSYSTEM=="i2c", DEVPATH=="/sys/devices/platform/AMDI0010:03/i2c-1/i2c-PIXA3854:00", ATTR{power/wakeup}="disabled"
# ACTION=="add", SUBSYSTEM=="acpi", DRIVERS=="button", ATTRS{hid}=="PNP0C0D", ATTR{power/wakeup}="disabled"
# ACTION=="add", SUBSYSTEM=="serio", DRIVERS=="atkbd", ATTR{power/wakeup}="disabled"
# ACTION=="add", SUBSYSTEM=="i2c", DRIVERS=="i2c_hid_acpi", ATTRS{name}=="PIXA3854:00", ATTR{power/wakeup}="disabled"
'';
services.fprintd.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
# boot.initrd.availableKernelModules = [
# "nvme"
# "sd_mod"
# "thunderbolt"
# "usb_storage"
# "xhci_pci"
# "usbhid"
# "uas"
# ];
boot.kernelParams = [
"amdgpu.abmlevel=1"
# "amdgpu.dcdebugmask=0x400"
# "mem_sleep_default=deep"
];
boot.kernelModules = ["amdgpu"];
powerManagement.cpuFreqGovernor = "powersave";
systemd.sleep.extraConfig = "HibernateDelaySec=360m";
networking.hostName = "NOlaptop";
} }

View file

@ -5,7 +5,13 @@
lib, lib,
... ...
}: { }: {
services.syncplay = {
enable = true;
motd = "we only watch kino here";
};
users.users.tao.packages = with pkgs; [ users.users.tao.packages = with pkgs; [
syncplay
# boxxy # boxxy
calibre calibre
# carapace # carapace

View file

@ -35,8 +35,8 @@ lto = "fat"
[target.x86_64-unknown-linux-gnu] [target.x86_64-unknown-linux-gnu]
# linker = "musl-gcc" # linker = "musl-gcc"
linker = "clang" # linker = "clang"
rustflags = ["-Ctarget-cpu=native", "-Clink-arg=-fuse-ld=wild"] # rustflags = ["-Ctarget-cpu=native", "-Clink-arg=--ld-path=wild"]
# jonhoo # jonhoo
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent # https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent