NixOS / nixos-hardware

A collection of NixOS modules covering hardware quirks.
Creative Commons Zero v1.0 Universal
2.07k stars 641 forks source link

Module build error on System76 Pangolin #1168

Closed kylegortych closed 2 weeks ago

kylegortych commented 1 month ago

Need help or update on current system76 module build error. Is it just a mater of waiting for the next module update or is there something else that should be done?

Thank you in advance for any help and assistance.

stderr ```fish sudo nix-channel --update unpacking channels... sudo nixos-rebuild boot --upgrade unpacking channels... building Nix... building the system configuration... these 38 derivations will be built: /nix/store/01zgzfq8ybhws42vdqq2jcx0aya7nbl3-google-chrome-stable_129.0.6668.89-1_amd64.deb.drv /nix/store/0nk08b4y5did06nwbhfc8ifny7p9wy1x-system76-module-1.0.13-6.11.1.drv /nix/store/bprg3am8fasaj21vqk1nrj8zpdwv7a4b-system-path.drv /nix/store/wkfvwcirj4wimww28w517n41jb6id6j1-X-Restart-Triggers-polkit.drv /nix/store/0xpyp0wjsf69qncqvazph3lxfbprvg4h-unit-polkit.service.drv /nix/store/2blw38xnc6s4a1ssmfr72kzz3dv13ga4-unit-accounts-daemon.service.drv /nix/store/q1l7581m6mnhpnk64is1zv0864rh0f08-dbus-1.drv /nix/store/5jyrni12hzb8v08nvakfd96z6w21fxrx-X-Restart-Triggers-dbus.drv /nix/store/2qx6l4w17ym28z458inms5yd9adwm2sg-unit-dbus.service.drv /nix/store/rfa3kxf8rn14kiphjlf19dsqq6dr3hma-man-paths.drv /nix/store/gsw9xgrvdmdikphdy8kzjvs6575qskjx-man-cache.drv /nix/store/2svjwsx973h6fqfqqpvjsk8lxhggqpmq-etc-man_db.conf.drv /nix/store/5l3fdnajh9765l336l6v7hzrvfp9g4fr-nixos-configuration-reference-manpage_fish-completions.drv /nix/store/dcn6lf282sjq7k4w92xpr893snb75fy8-nixos-help_fish-completions.drv /nix/store/q152i4h2hfg59pska74nc399kxaqlmna-kdeplasma-addons-6.1.5_fish-completions.drv /nix/store/z4vx4cdyq7mslwvjba1qydc2vr4was69-plasma-desktop-6.1.5_fish-completions.drv /nix/store/2y9h37g2yz1yy91wqr388lcmfplwzp7y-system_fish-completions.drv /nix/store/6ksbzv9a9m3bbaifphfpy5vbzaxlc0a2-user-units.drv /nix/store/ajbjhlb4mww1kj606dicx9h8b8gx7ixz-udev-rules.drv /nix/store/g5bl46qjbdpvl0p5c2hjypdsjx063afd-google-chrome-129.0.6668.89.drv /nix/store/dlpzmqxxhkyg9yj6nv42464zffrh5vp6-kicad-base-8.0.5.drv /nix/store/xk1qkpic5nv0qasxnyggvwjl5lk8cc6z-kicad-small-8.0.5.drv /nix/store/zdymhx1bzgz1s1mxrksbawb77pmzgdk1-home-configuration-reference-manpage.drv /nix/store/h8ccb5vnz0kdf297xq8sxncrqn8r9mvm-home-manager-path.drv /nix/store/nnz2xp0bx8skmgjzjc47faj350014ig1-activation-script.drv /nix/store/s2grdlgnfxfa06vc8fqb9v6mdqs5gdar-home-manager-generation.drv /nix/store/6x7ipii99mqf9h3yxw6k1mp7v0202zlw-unit-home-manager-kg.service.drv /nix/store/c80b6cqzmz60vdy81d50l7aakagldnd7-X-Restart-Triggers-systemd-udevd.drv /nix/store/jnn8rwcsw4d5g1q0dz7gzhisxcch0v19-unit-systemd-udevd.service.drv /nix/store/r3g5m0gs3yd1dy9bi417sws4asg4zzy5-unit-dbus.service.drv /nix/store/prhlz7dsxd3rwlxhqi65qbhms0f1n41k-system-units.drv /nix/store/xjcvdj3hjf2v8zb2y4haj5fnzdc2mq87-hwdb.bin.drv /nix/store/67gvmn6qi9gp14m1pm4j6ckcn50i8blq-etc.drv /nix/store/fli27k829lrcxab39p796m9dhhl5n1mh-linux-6.11.1-modules.drv /nix/store/ipsxprijxk1alzs5agvvik6cpjh85gdj-linux-6.11.1-modules-shrunk.drv /nix/store/z10a24y7if3f45czq31mi8ibf9wbq5wp-initrd-linux-6.11.1.drv /nix/store/fgrn0fd32q74kbj8swkfk5fpqf4h2aw6-boot.json.drv /nix/store/ypzvi12fpqaq32d45j4df8g1kaqpca2z-nixos-system-dev-null-24.11pre688563.bc947f541ae5.drv this path will be fetched (1.08 MiB download, 7.97 MiB unpacked): /nix/store/1wvjrn4jnxjk3gj2xjix4jr5lsxl74kd-kdeplasma-addons-6.1.5 copying path '/nix/store/1wvjrn4jnxjk3gj2xjix4jr5lsxl74kd-kdeplasma-addons-6.1.5' from 'https://cache.nixos.org'... building '/nix/store/5l3fdnajh9765l336l6v7hzrvfp9g4fr-nixos-configuration-reference-manpage_fish-completions.drv'... building '/nix/store/dcn6lf282sjq7k4w92xpr893snb75fy8-nixos-help_fish-completions.drv'... building '/nix/store/z4vx4cdyq7mslwvjba1qydc2vr4was69-plasma-desktop-6.1.5_fish-completions.drv'... building '/nix/store/0nk08b4y5did06nwbhfc8ifny7p9wy1x-system76-module-1.0.13-6.11.1.drv'... building '/nix/store/zdymhx1bzgz1s1mxrksbawb77pmzgdk1-home-configuration-reference-manpage.drv'... building '/nix/store/01zgzfq8ybhws42vdqq2jcx0aya7nbl3-google-chrome-stable_129.0.6668.89-1_amd64.deb.drv'... building '/nix/store/dlpzmqxxhkyg9yj6nv42464zffrh5vp6-kicad-base-8.0.5.drv'... Running phase: unpackPhase unpacking source archive /nix/store/8sx9ffvb06s74wc8hhx5f8xjwalm71kn-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: SHELL=/nix/store/izpf49b74i15pcr9708s3xdwyqs4jxwl-bash-5.2p32/bin/bash KERNEL_DIR=/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/build make -C "/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/build" M="/build/source" modules make[1]: Entering directory '/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/build' building '/nix/store/q152i4h2hfg59pska74nc399kxaqlmna-kdeplasma-addons-6.1.5_fish-completions.drv'... building '/nix/store/rfa3kxf8rn14kiphjlf19dsqq6dr3hma-man-paths.drv'... building '/nix/store/bprg3am8fasaj21vqk1nrj8zpdwv7a4b-system-path.drv'... CC [M] /build/source/system76.o trying https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_129.0.6668.89-1_amd64.deb % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed Running phase: unpackPhase unpacking source archive /nix/store/14awf8spxizph53f7jrbqh84vbdvdk6i-source In file included from /build/source/system76.c:110: /build/source/system76_hwmon.c:24:5: warning: this use of "defined" may not be portable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wexpansion-to-defined-Wexpansion-to-defined8;;] 24 | #if S76_HAS_HWMON | ^~~~~~~~~~~~~ /build/source/system76_hwmon.c:24:5: warning: this use of "defined" may not be portable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wexpansion-to-defined-Wexpansion-to-defined8;;] /build/source/system76_hwmon.c:24:5: warning: this use of "defined" may not be portable [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wexpansion-to-defined-Wexpansion-to-defined8;;] /build/source/system76.c:283:19: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Werror=incompatible-pointer-types8;;] 283 | .remove = s76_remove, | ^~~~~~~~~~ /build/source/system76.c:283:19: note: (near initialization for 's76_platform_driver..remove') warning: collision between `/nix/store/ib4wjn5lsnq3bviq9klak9blskqydqdw-xwayland-24.1.3/share/man/man1/Xserver.1.gz' and `/nix/store/x9zy8n82bdi9aapgy6p3hiqvyv5iw6fa-xorg-server-21.1.13/share/man/man1/Xserver.1.gz' created 5091 symlinks in user environment building '/nix/store/gsw9xgrvdmdikphdy8kzjvs6575qskjx-man-cache.drv'... cc1: some warnings being treated as errors make[3]: *** [/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/source/scripts/Makefile.build:244: /build/source/system76.o] Error 1 make[2]: *** [/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/source/Makefile:1926: /build/source] Error 2 make[1]: *** [/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/source/Makefile:224: __sub-make] Error 2 make[1]: Leaving directory '/nix/store/k3j2lh3hfc7r7s63zjyryydqxyis9wdk-linux-6.11.1-dev/lib/modules/6.11.1/build' make: *** [Makefile:5: all] Error 2 source root is source error: builder for '/nix/store/0nk08b4y5did06nwbhfc8ifny7p9wy1x-system76-module-1.0.13-6.11.1.drv' failed with exit code 2 error: 1 dependencies of derivation '/nix/store/xjcvdj3hjf2v8zb2y4haj5fnzdc2mq87-hwdb.bin.drv' failed to build error: 1 dependencies of derivation '/nix/store/fli27k829lrcxab39p796m9dhhl5n1mh-linux-6.11.1-modules.drv' failed to build error: 1 dependencies of derivation '/nix/store/ajbjhlb4mww1kj606dicx9h8b8gx7ixz-udev-rules.drv' failed to build error: 1 dependencies of derivation '/nix/store/ypzvi12fpqaq32d45j4df8g1kaqpca2z-nixos-system-dev-null-24.11pre688563.bc947f541ae5.drv' failed to build ```
Meta info OS: NixOS 24.11pre680873.345c263f2f53 (Vicuna) x86_64 Host: System76 Pangolin Kernel: 6.10.10 Shell: fish 3.7.1 DE: Plasma 6.1.5 (Wayland) WM: kwin Terminal: WezTerm CPU: AMD Ryzen 7 6800U with Radeon Graphics (16) @ 4.768GHz GPU: AMD ATI Radeon 680M sudo nix-channel --list home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz nixos https://nixos.org/channels/nixos-unstable nix --version nix (Nix) 2.18.5
configuration.nix ```nix # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ./dotfiles/doom.nix ./dotfiles/fish.nix ./dotfiles/neovim.nix ./dotfiles/starship.nix ./dotfiles/wezterm.nix ./dotfiles/xplr.nix ]; #nix settings nix.settings.experimental-features = [ "nix-command" "flakes" ]; hardware.system76.enableAll = true; hardware.bluetooth.enable = true; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.timeout = 20; boot.kernelPackages = pkgs.linuxPackages_latest; systemd.services.NetworkManager-wait-online.enable = false; systemd.services.systemd-udev-settle.enable = false; systemd.services.network-setup.enable = false; systemd.extraConfig = '' DefaultTimeoutStopSec=10s ''; # Enable the X11 windowing system. services.xserver.enable = true; services.xserver.xkb.layout = "us"; services.xserver.xkb.variant = ""; services.displayManager.sddm.enable = true; #services.xserver.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true; services.displayManager.defaultSession = "plasma"; # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; networking.hostName = "blank"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # Enable networking networking.networkmanager.enable = true; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; # Enable CUPS to print documents. services.printing.enable = true; # Enable sound with pipewire. #sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; # If you want to use JACK applications, uncomment this #jack.enable = true; # use the example session manager (no others are packaged yet so this is enabled by default, # no need to redefine it in your config for now) #media-session.enable = true; }; # Set your time zone. services.automatic-timezoned.enable = true; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "en_US.UTF-8"; LC_IDENTIFICATION = "en_US.UTF-8"; LC_MEASUREMENT = "en_US.UTF-8"; LC_MONETARY = "en_US.UTF-8"; LC_NAME = "en_US.UTF-8"; LC_NUMERIC = "en_US.UTF-8"; LC_PAPER = "en_US.UTF-8"; LC_TELEPHONE = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8"; }; environment.sessionVariables = { EDITOR = "nvim"; }; # Setup keyfile boot.initrd.secrets = { "/crypto_keyfile.bin" = null; }; # virt reduce redundant writes #fileSystems."/nix/store".options = [ "noatime" ]; virtualisation = { docker.rootless = { enable = true; setSocketVariable = true; }; #virtualbox.host = { # enable = true; #}; }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.blank = { isNormalUser = true; description = "blank"; extraGroups = [ "networkmanager" "wheel"]; shell = pkgs.fish; packages = with pkgs; [ #packagnames ]; }; home-manager.users.blank = { pkgs, ... }: { home.stateVersion = "23.11"; nixpkgs.config.allowUnfree = true; programs.git = { enable = true; #credential.helper=blank userName = "blank"; userEmail = "blank"; }; home.packages = with pkgs; [ #gui firefox #google-chrome thunderbird gimp libreoffice obs-studio bitwarden kdenlive mpv freecad kicad-small logisim-evolution insomnia jetbrains.idea-community blender-hip zoom-us wezterm isoimagewriter #emacs emacs29-gtk3 emacsPackages.xwidgets-reuse pandoc # cli fish starship wl-clipboard xclip calcurse xplr yazi btop ripgrep figlet ffmpeg-full neofetch ghostscript parallel file xdg-ninja screenkey # extract archive types unrar p7zip # security lynis #lang verilog go rustup gnu-cobol #java gradle_7 #gradle #python pyright (python312.withPackages(ps: with ps; [ python312Packages.pytz python312Packages.datetime python312Packages.dateutils python312Packages.ptpython (buildPythonPackage rec { pname = "introcs"; version = "1.3.1"; src = fetchPypi { inherit pname version; sha256 = ""; }; doCheck = false; propagatedBuildInputs = [ python312Packages.numpy python312Packages.pillow ]; }) ])) #lua lua lua-language-server #nix #nil #nodejs nodejs_20 #(buildNpmPackage rec { # pname = "dynamodb-admin"; # version = "4.6.1"; # src = fetchFromGitHub { # owner = "aaronshaf"; # repo = "dynamodb-admin"; # rev = "v4.6.1"; # sha256 = ""; # }; #}) #C & C++ clang_16 cmake #temp | kde polonium build # look for libsForQt6.polonium # delete ~/.local/share/kwin/scripts/polonium # delete cloned repo build gnumake zip #Haskell #ghc #kenzie awscli2 aws-sam-cli # MS Azure #azure-cli #inteliji idea dependency graphviz plantuml #latex #texlive.combined.scheme-full texliveMinimal #hyprland #hyprpaper #bemenu ]; }; programs.steam.enable = true; #programs.kdeconnect.enable = true; programs.java = { enable = true; package = pkgs.jdk; }; programs.fish = { enable = true; }; #programs.nix-ld.enable = true; fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "ShareTechMono" ]; }) ]; services.clamav = { daemon.enable = true; updater.enable = true; daemon.settings = { OnAccessPrevention = true; OnAccessExtraScanning = true; OnAccessMountPath = [ "/home/blank/Downloads" "/etc/nixos" "/srv" "/var/lib" "/var/log" ]; OnAccessExcludeUname = "clamav"; VirusEvent = "mv %f /home/blank/quarantine"; User = "clamav"; }; }; #services.fail2ban = { # enable = true; #}; #networking.wireguard.interfaces = { # #}; programs.gnupg.agent = { enable = true; #pinentryPackage = pkgs.pinentry-qt; #pinentryFlavor = "qt"; }; # Allow unfree packages nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ ]; hardware.system76.enableAll = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; # programs.gnupg.agent = { # enable = true; # enableSSHSupport = true; # }; # List services that you want to enable: # Enable the OpenSSH daemon. # services.openssh.enable = true; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.05"; # Did you read the comment? } ```
kylegortych commented 1 month ago

Update

Original issue might have be resolved not sure but, a new problem has arose. Seems to be running in offline mode now for the sysfs-class depen for system76-power v1.1.23.

stderr ```nix sudo nix-channel --update sudo nixos-rebuild boot --upgrade --show-trace cargoBuildHook flags: -j 16 --target x86_64-unknown-linux-gnu --offline --profile release error: failed to get `sysfs-class` as a dependency of package `system76-power v1.1.23 (/build/source)` Caused by: failed to load source for dependency `sysfs-class` Caused by: Unable to update https://github.com/pop-os/sysfs-class#ab63e7f6 Caused by: can't checkout from 'https://github.com/pop-os/sysfs-class': you are in the offline mode (--offline) substituteStream() in derivation udev-rules: WARNING: pattern /nix/store/kbqqy41dah7ksappsqdcpzspkbanb41m-lvm2-2.03.26-bin/bin doesn't match anything in file '/nix/store/2gpw4iyc927k8fccmfsyfb02y8d45apr-udev-rules/01-md-raid-creating.rules' error: builder for '/nix/store/6ang6g3hkygpymgz6kggl3bvamxvyh17-system76-power-1.1.23.drv' failed with exit code 101 copying path '/nix/store/xnzsh0vg9zl4k5kphprv0qmi2sxhjb5w-attr-2.5.2' from 'https://cache.nixos.org'... copying path '/nix/store/i2bnnh7d8njq7iszxamq19gnhssd9964-brotli-1.1.0-lib' from 'https://cache.nixos.org'... copying path '/nix/store/3xcss0lhspr5jqx6p71qd10b5v6zp7zp-celt-0.11.3' from 'https://cache.nixos.org'... copying path '/nix/store/c9mi07qcp7rs9bla58r2dv286lyqk4r1-alsa-lib-1.2.12' from 'https://cache.nixos.org'... copying path '/nix/store/q0xp3ngnsdgpm2s472lvjgq5p3rzmkg7-cdparanoia-III-10.2' from 'https://cache.nixos.org'... copying path '/nix/store/wpd39d9jz97cbsq0vn2lxd82x3yz328b-bzip2-1.0.8' from 'https://cache.nixos.org'... copying path '/nix/store/ys34jdbsnx8alvq2rk5gx8i4d7m7nq4b-bash-5.2p32' from 'https://cache.nixos.org'... error: 1 dependencies of derivation '/nix/store/rqv7azsjq8qih997hwiyk0nbh9ysgla2-dbus-1.drv' failed to build error: 1 dependencies of derivation '/nix/store/45ynhih6gs8r2vnm6wp3x8pgcf8wachl-man-paths.drv' failed to build error: 1 dependencies of derivation '/nix/store/930awwrg4ry7kqz5bs9pg47h8yaxgzqp-system-path.drv' failed to build error: 1 dependencies of derivation '/nix/store/jvnnsf2gisjwcm54zfzkrdn9cx5i1iyl-system76-power-1.1.23_fish-completions.drv' failed to build error: 1 dependencies of derivation '/nix/store/4dwfv5rmwcjl4mly2ca5w47qw822ydbd-unit-system76-power.service.drv' failed to build error: 1 dependencies of derivation '/nix/store/vizzrhifhqjm0kjw2a7qhp2sw5aqls8a-nixos-system-dev-null-24.11pre692963.a3c0b3b21515.drv' failed to build ```
Meta info OS: NixOS 24.11pre680873.345c263f2f53 (Vicuna) x86_64 Host: System76 Pangolin Kernel: 6.10.10 Shell: fish 3.7.1 DE: Plasma 6.1.5 (Wayland) WM: kwin Terminal: WezTerm CPU: AMD Ryzen 7 6800U with Radeon Graphics (16) @ 4.768GHz GPU: AMD ATI Radeon 680M sudo nix-channel --list home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz nixos https://nixos.org/channels/nixos-unstable nix --version nix (Nix) 2.18.5
configuration.nix ```nix # Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ./dotfiles/doom.nix ./dotfiles/fish.nix ./dotfiles/neovim.nix ./dotfiles/starship.nix ./dotfiles/wezterm.nix ./dotfiles/xplr.nix ]; #nix settings nix.settings.experimental-features = [ "nix-command" "flakes" ]; hardware.system76.enableAll = true; hardware.bluetooth.enable = true; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.timeout = 20; #Boot Kernel boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelParams = [ "sched_bore=1" ]; systemd.services.NetworkManager-wait-online.enable = false; systemd.services.systemd-udev-settle.enable = false; systemd.services.network-setup.enable = false; systemd.extraConfig = '' DefaultTimeoutStopSec=10s ''; # Enable the X11 windowing system. services.xserver.enable = true; services.xserver.xkb.layout = "us"; services.xserver.xkb.variant = ""; services.displayManager.sddm.enable = true; #services.xserver.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true; services.displayManager.defaultSession = "plasma"; # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; networking.hostName = "blank"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # Enable networking networking.networkmanager.enable = true; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; # Enable CUPS to print documents. services.printing.enable = true; # Enable sound with pipewire. #sound.enable = true; hardware.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; # If you want to use JACK applications, uncomment this #jack.enable = true; # use the example session manager (no others are packaged yet so this is enabled by default, # no need to redefine it in your config for now) #media-session.enable = true; }; # Set your time zone. services.automatic-timezoned.enable = true; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "en_US.UTF-8"; LC_IDENTIFICATION = "en_US.UTF-8"; LC_MEASUREMENT = "en_US.UTF-8"; LC_MONETARY = "en_US.UTF-8"; LC_NAME = "en_US.UTF-8"; LC_NUMERIC = "en_US.UTF-8"; LC_PAPER = "en_US.UTF-8"; LC_TELEPHONE = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8"; }; environment.sessionVariables = { EDITOR = "nvim"; }; # Setup keyfile boot.initrd.secrets = { "/crypto_keyfile.bin" = null; }; # virt reduce redundant writes #fileSystems."/nix/store".options = [ "noatime" ]; virtualisation = { docker.rootless = { enable = true; setSocketVariable = true; }; #virtualbox.host = { # enable = true; #}; }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.blank = { isNormalUser = true; description = "blank"; extraGroups = [ "networkmanager" "wheel"]; shell = pkgs.fish; packages = with pkgs; [ #packagnames ]; }; home-manager.users.blank = { pkgs, ... }: { home.stateVersion = "23.11"; nixpkgs.config.allowUnfree = true; programs.git = { enable = true; #credential.helper=blank userName = "blank"; userEmail = "blank"; }; home.packages = with pkgs; [ #gui firefox #google-chrome thunderbird gimp libreoffice obs-studio bitwarden kdenlive mpv freecad kicad-small logisim-evolution insomnia jetbrains.idea-community blender-hip zoom-us wezterm isoimagewriter #emacs emacs29-gtk3 emacsPackages.xwidgets-reuse pandoc # cli fish starship wl-clipboard xclip calcurse xplr yazi btop ripgrep figlet ffmpeg-full neofetch ghostscript parallel file xdg-ninja screenkey # extract archive types unrar p7zip # security lynis #lang verilog go rustup gnu-cobol #java gradle_7 #gradle #python pyright (python312.withPackages(ps: with ps; [ python312Packages.pytz python312Packages.datetime python312Packages.dateutils python312Packages.ptpython (buildPythonPackage rec { pname = "introcs"; version = "1.3.1"; src = fetchPypi { inherit pname version; sha256 = ""; }; doCheck = false; propagatedBuildInputs = [ python312Packages.numpy python312Packages.pillow ]; }) ])) #lua lua lua-language-server #nix #nil #nodejs nodejs_20 #(buildNpmPackage rec { # pname = "dynamodb-admin"; # version = "4.6.1"; # src = fetchFromGitHub { # owner = "aaronshaf"; # repo = "dynamodb-admin"; # rev = "v4.6.1"; # sha256 = ""; # }; #}) #C & C++ clang_16 cmake #temp | kde polonium build # look for libsForQt6.polonium # delete ~/.local/share/kwin/scripts/polonium # delete cloned repo build gnumake zip #Haskell #ghc #kenzie awscli2 aws-sam-cli # MS Azure #azure-cli #inteliji idea dependency graphviz plantuml #latex #texlive.combined.scheme-full texliveMinimal #hyprland #hyprpaper #bemenu ]; }; programs.steam.enable = true; #programs.kdeconnect.enable = true; programs.java = { enable = true; package = pkgs.jdk; }; programs.fish = { enable = true; }; #programs.nix-ld.enable = true; fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "ShareTechMono" ]; }) ]; services.clamav = { daemon.enable = true; updater.enable = true; daemon.settings = { OnAccessPrevention = true; OnAccessExtraScanning = true; OnAccessMountPath = [ "/home/blank/Downloads" "/etc/nixos" "/srv" "/var/lib" "/var/log" ]; OnAccessExcludeUname = "clamav"; VirusEvent = "mv %f /home/blank/quarantine"; User = "clamav"; }; }; #services.fail2ban = { # enable = true; #}; #networking.wireguard.interfaces = { # #}; programs.gnupg.agent = { enable = true; #pinentryPackage = pkgs.pinentry-qt; #pinentryFlavor = "qt"; }; # Allow unfree packages nixpkgs.config.allowUnfree = true; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ ]; hardware.system76.enableAll = true; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; # programs.gnupg.agent = { # enable = true; # enableSSHSupport = true; # }; # List services that you want to enable: # Enable the OpenSSH daemon. # services.openssh.enable = true; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "23.05"; # Did you read the comment? } ```
khumba commented 1 month ago

Please see: https://github.com/NixOS/nixpkgs/issues/348615

kylegortych commented 2 weeks ago

Thank you for the fix.