Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Celluloid (Flatpak) causes system to freeze and crash when loading video #1010

Open
returnofblank opened this issue Feb 17, 2025 · 3 comments
Labels

Comments

@returnofblank
Copy link

returnofblank commented Feb 17, 2025

Using Celluloid from the FlatHub repo seems to freeze the system (with no recovery possible) upon loading a local video.

I have not tested the native Celluloid package, but I do know MPV itself works completely fine.
(EDIT: Native Celluloid package works fine, so issue is limited to Flatpak)

If anyone could do some more testing, that would be great. But I'm not sure this is reproducible, as I have not seen any other issues on the topic anywhere. I've had this issue for at least a couple months.

System Details:

  • NixOS 25.05.20250213.2ff53fe (NixOS Unstable)
  • Linux Kernel 6.13.2
  • AMD 6950XT GPU (driver=amdgpu)
  • Ryzen 5 7600
  • 32GB DDR5 Memory
  • GNOME 47.3
  • Mutter Wayland Compositor

Below is my journalctl logs:

Feb 16 20:26:52 hal-9000 kernel: BUG: Bad page state in process core  pfn:65180f
Feb 16 20:26:52 hal-9000 kernel: page: refcount:-1 mapcount:0 mapping:0000000000000000 index:0x1f pfn:0x65180f
Feb 16 20:26:52 hal-9000 kernel: flags: 0x17fffd800000020(lru|node=0|zone=2|lastcpupid=0x1ffff)
Feb 16 20:26:52 hal-9000 kernel: raw: 017fffd800000020 dead000000000100 dead000000000122 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: raw: 000000000000001f 0000000000000000 ffffffffffffffff 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag(s) set
Feb 16 20:26:52 hal-9000 kernel: Modules linked in: mptcp_diag tcp_diag udp_diag raw_diag inet_diag unix_diag rfcomm snd_seq_dummy snd_hrtimer snd_seq sd_mod qrtr uhid cmac algif_hash algif_skcipher af_alg nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_mark overlay ccm af_packet xt_CHECKSUM xt_MASQUERADE ipt_REJECT nf_reject_ipv4 nft_chain_nat bnep nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_realtek mt7921e snd_hda_codec_generic snd_hda_scodec_component mt7921_common mt792x_lib snd_hda_codec_hdmi btusb btrtl mt76_connac_lib btintel edac_mce_amd btbcm snd_hda_intel mt76 btmtk edac_core snd_intel_dspcfg intel_rapl_msr bluetooth snd_intel_sdw_acpi uvcvideo r8169 amd_atl snd_usb_audio spd5118 mac80211 videobuf2_vmalloc snd_hda_codec intel_rapl_common uvc crct10dif_pclmul realtek videobuf2_memops crc32_pclmul polyval_clmulni polyval_generic videobuf2_v4l2 snd_usbmidi_lib snd_hda_core mdio_devres snd_ump sp5100_tco ghash_clmulni_intel watchdog snd_rawmidi wmi_bmof of_mdio xt_conntrack snd_hwdep videobuf2_common snd_seq_device
Feb 16 20:26:52 hal-9000 kernel:  snd_pcm rapl cfg80211 videodev snd_timer i2c_piix4 ip6t_rpfilter i2c_smbus fixed_phy snd fwnode_mdio xpad ipt_rpfilter k10temp libphy mc soundcore ff_memless onboard_usb_dev rfkill mousedev joydev libarc4 xt_pkttype xt_LOG gpio_amdpt rtc_cmos nf_log_syslog tiny_power_button nft_compat gpio_generic button evdev mac_hid nf_tables sch_fq_codel uinput tls atkbd libps2 serio vivaldi_fmap loop xt_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter veth tun tap macvlan bridge stp llc kvm_amd ccp kvm fuse efi_pstore configfs nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress dmi_sysfs ip_tables dm_crypt cbc encrypted_keys trusted asn1_encoder tee input_leds led_class hid_generic usbhid hid amdgpu ahci crc16 libahci amdxcp i2c_algo_bit drm_ttm_helper libata dm_mod ttm nvme drm_exec gpu_sched dax sha512_ssse3 drm_suballoc_helper sha256_ssse3 drm_buddy sha1_ssse3 tpm_crb scsi_mod drm_display_helper nvme_core aesni_intel gf128mul xhci_pci crypto_simd xhci_hcd scsi_common cryptd cec
Feb 16 20:26:52 hal-9000 kernel:  nvme_auth video tpm_tis wmi tpm_tis_core btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor raid6_pq efivarfs tpm rng_core libaescfb ecdh_generic ecc autofs4
Feb 16 20:26:52 hal-9000 kernel: CPU: 8 UID: 1000 PID: 132185 Comm: core Tainted: G        W          6.13.2 #1-NixOS
Feb 16 20:26:52 hal-9000 kernel: Tainted: [W]=WARN
Feb 16 20:26:52 hal-9000 kernel: Hardware name: ASRock B650M Pro RS WiFi/B650M Pro RS WiFi, BIOS 2.02 11/17/2023
Feb 16 20:26:52 hal-9000 kernel: Call Trace:
Feb 16 20:26:52 hal-9000 kernel:  <TASK>
Feb 16 20:26:52 hal-9000 kernel:  dump_stack_lvl+0x5d/0x90
Feb 16 20:26:52 hal-9000 kernel:  bad_page.cold+0x7a/0x91
Feb 16 20:26:52 hal-9000 kernel:  __rmqueue_pcplist+0x225/0xd20
Feb 16 20:26:52 hal-9000 kernel:  get_page_from_freelist+0x2e5/0x19b0
Feb 16 20:26:52 hal-9000 kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 16 20:26:52 hal-9000 kernel:  ? mt_find+0x1f8/0x4f0
Feb 16 20:26:52 hal-9000 kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 16 20:26:52 hal-9000 kernel:  __alloc_pages_noprof+0x1a1/0x1160
Feb 16 20:26:52 hal-9000 kernel:  alloc_pages_mpol_noprof+0x8d/0x1e0
Feb 16 20:26:52 hal-9000 kernel:  folio_alloc_mpol_noprof+0x14/0x40
Feb 16 20:26:52 hal-9000 kernel:  vma_alloc_folio_noprof+0x69/0xc0
Feb 16 20:26:52 hal-9000 kernel:  do_anonymous_page+0x340/0x880
Feb 16 20:26:52 hal-9000 kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 16 20:26:52 hal-9000 kernel:  ? ___pte_offset_map+0x1b/0x190
Feb 16 20:26:52 hal-9000 kernel:  __handle_mm_fault+0xb34/0xfc0
Feb 16 20:26:52 hal-9000 kernel:  ? do_mprotect_pkey+0x3e7/0x550
Feb 16 20:26:52 hal-9000 kernel:  handle_mm_fault+0xe2/0x2d0
Feb 16 20:26:52 hal-9000 kernel:  do_user_addr_fault+0x227/0x640
Feb 16 20:26:52 hal-9000 kernel:  exc_page_fault+0x71/0x160
Feb 16 20:26:52 hal-9000 kernel:  asm_exc_page_fault+0x26/0x30
Feb 16 20:26:52 hal-9000 kernel: RIP: 0033:0x7f69d31818e5
Feb 16 20:26:52 hal-9000 kernel: Code: a2 14 00 31 d2 4b 8d 0c 2c 48 39 f3 48 89 4b 60 0f 95 c2 4c 29 e8 48 c1 e2 02 48 83 c8 01 4c 09 ea 48 83 ca 01 49 89 54 24 08 <48> 89 41 08 49 8d 44 24 10 48 8b 55 c8 64 48 2b 14 25 28 00 00 00
Feb 16 20:26:52 hal-9000 kernel: RSP: 002b:00007f69c1b4f370 EFLAGS: 00010206
Feb 16 20:26:52 hal-9000 kernel: RAX: 0000000000000fd1 RBX: 00007f69a8000030 RCX: 00007f69a8024030
Feb 16 20:26:52 hal-9000 kernel: RDX: 0000000000000095 RSI: 00007f69d32cbac0 RDI: 00007f69a8024000
Feb 16 20:26:52 hal-9000 kernel: RBP: 00007f69c1b4f3e0 R08: 00007f69a8000000 R09: 0000000000024000
Feb 16 20:26:52 hal-9000 kernel: R10: 0000000000000060 R11: 00007f69a8023fa0 R12: 00007f69a8023fa0
Feb 16 20:26:52 hal-9000 kernel: R13: 0000000000000090 R14: 0000000000000000 R15: 00000000000000b0
Feb 16 20:26:52 hal-9000 kernel:  </TASK>
Feb 16 20:26:52 hal-9000 kernel: Disabling lock debugging due to kernel taint
Feb 16 20:26:52 hal-9000 kernel: list_del corruption, ffffd7cb194603c8->next is LIST_POISON1 (dead000000000100)
Feb 16 20:26:52 hal-9000 kernel: ------------[ cut here ]------------
Feb 16 20:26:52 hal-9000 kernel: kernel BUG at lib/list_debug.c:56!
Feb 16 20:26:52 hal-9000 kernel: Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Feb 16 20:26:52 hal-9000 kernel: CPU: 8 UID: 1000 PID: 132185 Comm: core Tainted: G    B   W          6.13.2 #1-NixOS
Feb 16 20:26:52 hal-9000 kernel: Tainted: [B]=BAD_PAGE, [W]=WARN
Feb 16 20:26:52 hal-9000 kernel: Hardware name: ASRock B650M Pro RS WiFi/B650M Pro RS WiFi, BIOS 2.02 11/17/2023
Feb 16 20:26:52 hal-9000 kernel: RIP: 0010:__list_del_entry_valid_or_report.cold+0x61/0x75
Feb 16 20:26:52 hal-9000 kernel: Code: fe ff 90 0f 0b 48 89 fe 48 89 ca 48 c7 c7 90 ab 80 b8 e8 ab 8f fe ff 90 0f 0b 48 89 fe 48 c7 c7 58 ab 80 b8 e8 99 8f fe ff 90 <0f> 0b 48 89 fe 48 c7 c7 28 ab 80 b8 e8 87 8f fe ff 90 0f 0b 4d 8b
Feb 16 20:26:52 hal-9000 kernel: RSP: 0000:ffffb5b7ce3379e8 EFLAGS: 00010246
Feb 16 20:26:52 hal-9000 kernel: RAX: 000000000000004e RBX: ffffd7cb194603c0 RCX: 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: RBP: ffffd7cb194603c8 R08: 0000000000000000 R09: 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffffa15b7defb500
Feb 16 20:26:52 hal-9000 kernel: R13: ffffa15b5e83de00 R14: ffffa15b7defb500 R15: ffffa15b7defc940
Feb 16 20:26:52 hal-9000 kernel: FS:  00007f69c1b586c0(0000) GS:ffffa15b5e800000(0000) knlGS:0000000000000000
Feb 16 20:26:52 hal-9000 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 16 20:26:52 hal-9000 kernel: CR2: 00007f69a8024038 CR3: 0000000188774000 CR4: 0000000000f50ef0
Feb 16 20:26:52 hal-9000 kernel: PKRU: 55555554
Feb 16 20:26:52 hal-9000 kernel: Call Trace:
Feb 16 20:26:52 hal-9000 kernel:  <TASK>
Feb 16 20:26:52 hal-9000 kernel:  ? __die_body.cold+0x19/0x2d
Feb 16 20:26:52 hal-9000 kernel:  ? die+0x2e/0x50
Feb 16 20:26:52 hal-9000 kernel:  ? do_trap+0xda/0x120
Feb 16 20:26:52 hal-9000 kernel:  ? do_error_trap+0x6a/0xa0
Feb 16 20:26:52 hal-9000 kernel:  ? __list_del_entry_valid_or_report.cold+0x61/0x75
Feb 16 20:26:52 hal-9000 kernel:  ? exc_invalid_op+0x51/0x80
Feb 16 20:26:52 hal-9000 kernel:  ? __list_del_entry_valid_or_report.cold+0x61/0x75
Feb 16 20:26:52 hal-9000 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Feb 16 20:26:52 hal-9000 kernel:  ? __list_del_entry_valid_or_report.cold+0x61/0x75
Feb 16 20:26:52 hal-9000 kernel:  ? __list_del_entry_valid_or_report.cold+0x60/0x75
Feb 16 20:26:52 hal-9000 kernel:  __rmqueue_pcplist+0xc0/0xd20
Feb 16 20:26:52 hal-9000 kernel:  get_page_from_freelist+0x2e5/0x19b0
Feb 16 20:26:52 hal-9000 kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 16 20:26:52 hal-9000 kernel:  ? mt_find+0x1f8/0x4f0
Feb 16 20:26:52 hal-9000 kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 16 20:26:52 hal-9000 kernel:  __alloc_pages_noprof+0x1a1/0x1160
Feb 16 20:26:52 hal-9000 kernel:  alloc_pages_mpol_noprof+0x8d/0x1e0
Feb 16 20:26:52 hal-9000 kernel:  folio_alloc_mpol_noprof+0x14/0x40
Feb 16 20:26:52 hal-9000 kernel:  vma_alloc_folio_noprof+0x69/0xc0
Feb 16 20:26:52 hal-9000 kernel:  do_anonymous_page+0x340/0x880
Feb 16 20:26:52 hal-9000 kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Feb 16 20:26:52 hal-9000 kernel:  ? ___pte_offset_map+0x1b/0x190
Feb 16 20:26:52 hal-9000 kernel:  __handle_mm_fault+0xb34/0xfc0
Feb 16 20:26:52 hal-9000 kernel:  ? do_mprotect_pkey+0x3e7/0x550
Feb 16 20:26:52 hal-9000 kernel:  handle_mm_fault+0xe2/0x2d0
Feb 16 20:26:52 hal-9000 kernel:  do_user_addr_fault+0x227/0x640
Feb 16 20:26:52 hal-9000 kernel:  exc_page_fault+0x71/0x160
Feb 16 20:26:52 hal-9000 kernel:  asm_exc_page_fault+0x26/0x30
Feb 16 20:26:52 hal-9000 kernel: RIP: 0033:0x7f69d31818e5
Feb 16 20:26:52 hal-9000 kernel: Code: a2 14 00 31 d2 4b 8d 0c 2c 48 39 f3 48 89 4b 60 0f 95 c2 4c 29 e8 48 c1 e2 02 48 83 c8 01 4c 09 ea 48 83 ca 01 49 89 54 24 08 <48> 89 41 08 49 8d 44 24 10 48 8b 55 c8 64 48 2b 14 25 28 00 00 00
Feb 16 20:26:52 hal-9000 kernel: RSP: 002b:00007f69c1b4f370 EFLAGS: 00010206
Feb 16 20:26:52 hal-9000 kernel: RAX: 0000000000000fd1 RBX: 00007f69a8000030 RCX: 00007f69a8024030
Feb 16 20:26:52 hal-9000 kernel: RDX: 0000000000000095 RSI: 00007f69d32cbac0 RDI: 00007f69a8024000
Feb 16 20:26:52 hal-9000 kernel: RBP: 00007f69c1b4f3e0 R08: 00007f69a8000000 R09: 0000000000024000
Feb 16 20:26:52 hal-9000 kernel: R10: 0000000000000060 R11: 00007f69a8023fa0 R12: 00007f69a8023fa0
Feb 16 20:26:52 hal-9000 kernel: R13: 0000000000000090 R14: 0000000000000000 R15: 00000000000000b0
Feb 16 20:26:52 hal-9000 kernel:  </TASK>
Feb 16 20:26:52 hal-9000 kernel: Modules linked in: mptcp_diag tcp_diag udp_diag raw_diag inet_diag unix_diag rfcomm snd_seq_dummy snd_hrtimer snd_seq sd_mod qrtr uhid cmac algif_hash algif_skcipher af_alg nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype xt_mark overlay ccm af_packet xt_CHECKSUM xt_MASQUERADE ipt_REJECT nf_reject_ipv4 nft_chain_nat bnep nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_realtek mt7921e snd_hda_codec_generic snd_hda_scodec_component mt7921_common mt792x_lib snd_hda_codec_hdmi btusb btrtl mt76_connac_lib btintel edac_mce_amd btbcm snd_hda_intel mt76 btmtk edac_core snd_intel_dspcfg intel_rapl_msr bluetooth snd_intel_sdw_acpi uvcvideo r8169 amd_atl snd_usb_audio spd5118 mac80211 videobuf2_vmalloc snd_hda_codec intel_rapl_common uvc crct10dif_pclmul realtek videobuf2_memops crc32_pclmul polyval_clmulni polyval_generic videobuf2_v4l2 snd_usbmidi_lib snd_hda_core mdio_devres snd_ump sp5100_tco ghash_clmulni_intel watchdog snd_rawmidi wmi_bmof of_mdio xt_conntrack snd_hwdep videobuf2_common snd_seq_device
Feb 16 20:26:52 hal-9000 kernel:  snd_pcm rapl cfg80211 videodev snd_timer i2c_piix4 ip6t_rpfilter i2c_smbus fixed_phy snd fwnode_mdio xpad ipt_rpfilter k10temp libphy mc soundcore ff_memless onboard_usb_dev rfkill mousedev joydev libarc4 xt_pkttype xt_LOG gpio_amdpt rtc_cmos nf_log_syslog tiny_power_button nft_compat gpio_generic button evdev mac_hid nf_tables sch_fq_codel uinput tls atkbd libps2 serio vivaldi_fmap loop xt_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter veth tun tap macvlan bridge stp llc kvm_amd ccp kvm fuse efi_pstore configfs nfnetlink zram 842_decompress 842_compress lz4hc_compress lz4_compress dmi_sysfs ip_tables dm_crypt cbc encrypted_keys trusted asn1_encoder tee input_leds led_class hid_generic usbhid hid amdgpu ahci crc16 libahci amdxcp i2c_algo_bit drm_ttm_helper libata dm_mod ttm nvme drm_exec gpu_sched dax sha512_ssse3 drm_suballoc_helper sha256_ssse3 drm_buddy sha1_ssse3 tpm_crb scsi_mod drm_display_helper nvme_core aesni_intel gf128mul xhci_pci crypto_simd xhci_hcd scsi_common cryptd cec
Feb 16 20:26:52 hal-9000 kernel:  nvme_auth video tpm_tis wmi tpm_tis_core btrfs blake2b_generic libcrc32c crc32c_generic crc32c_intel xor raid6_pq efivarfs tpm rng_core libaescfb ecdh_generic ecc autofs4
Feb 16 20:26:52 hal-9000 kernel: ---[ end trace 0000000000000000 ]---
Feb 16 20:26:52 hal-9000 pipewire[3842]: pw.node: (alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y7AAH8K13BFA97-00.HiFi__Line1__sink-60) graph xrun not-triggered (0 suppressed)
Feb 16 20:26:52 hal-9000 pipewire[3842]: pw.node: (alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y7AAH8K13BFA97-00.HiFi__Line1__sink-60) xrun state:0x7f5c306ec008 pending:1/2 s:29783411189989 a:29783411218141 f:29783411226296 waiting:28152 process:8155 status:triggered
Feb 16 20:26:52 hal-9000 pipewire[3842]: pw.node: (Firefox-80) xrun state:0x7f5c2e042008 pending:0/1 s:29783436228283 a:29783411200017 f:29783411211488 waiting:18446744073684523350 process:11471 status:triggered
Feb 16 20:26:52 hal-9000 kernel: RIP: 0010:__list_del_entry_valid_or_report.cold+0x61/0x75
Feb 16 20:26:52 hal-9000 kernel: Code: fe ff 90 0f 0b 48 89 fe 48 89 ca 48 c7 c7 90 ab 80 b8 e8 ab 8f fe ff 90 0f 0b 48 89 fe 48 c7 c7 58 ab 80 b8 e8 99 8f fe ff 90 <0f> 0b 48 89 fe 48 c7 c7 28 ab 80 b8 e8 87 8f fe ff 90 0f 0b 4d 8b
Feb 16 20:26:52 hal-9000 kernel: RSP: 0000:ffffb5b7ce3379e8 EFLAGS: 00010246
Feb 16 20:26:52 hal-9000 kernel: RAX: 000000000000004e RBX: ffffd7cb194603c0 RCX: 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: RBP: ffffd7cb194603c8 R08: 0000000000000000 R09: 0000000000000000
Feb 16 20:26:52 hal-9000 kernel: R10: 0000000000000000 R11: 0000000000000000 R12: ffffa15b7defb500
Feb 16 20:26:52 hal-9000 kernel: R13: ffffa15b5e83de00 R14: ffffa15b7defb500 R15: ffffa15b7defc940
Feb 16 20:26:52 hal-9000 kernel: FS:  00007f69c1b586c0(0000) GS:ffffa15b5e800000(0000) knlGS:0000000000000000
Feb 16 20:26:52 hal-9000 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 16 20:26:52 hal-9000 kernel: CR2: 00007f69a8024038 CR3: 0000000188774000 CR4: 0000000000f50ef0
Feb 16 20:26:52 hal-9000 kernel: PKRU: 55555554
Feb 16 20:26:52 hal-9000 kernel: note: core[132185] exited with preempt_count 2
Feb 16 20:26:52 hal-9000 kernel: BUG: Bad page state in process fuse mainloop  pfn:121a63
@returnofblank
Copy link
Author

Since I benefit from reproducibility on NixOS, below is my NixOS configuration file.
Maybe it has to relate with my system configurations, rather than a bug in a driver (likely amdgpu) or a problem with the application.

# 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’).

{ inputs, config, pkgs, ... }:

{
  imports = [
    ./hardware-configuration.nix # Include the results of the hardware scan
    ./server.nix
  ];

  # Bootloader and Kernel Parameters
  boot = {
    initrd.systemd.enable = true;
    extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
    # kernelParams = [ ... ];
    kernelPackages = pkgs.linuxPackages_latest;
    loader = {
      systemd-boot.enable = true; # Disabled in flake.nix by lanzaboote
      efi.canTouchEfiVariables = true;
    };
    kernel.sysctl."kernel.sysrq" = 1;
    plymouth.enable = true;
  };

  # Time and Locale Settings
  time.timeZone = "America/New_York";
  i18n = {
    defaultLocale = "en_US.UTF-8";
    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";
    };
  };

  # Networking
  networking = {
    hostName = "hal-9000";
    networkmanager.enable = true;
    firewall = {
      # allowedTCPPorts = [ ... ];
      # allowedUDPPorts = [ ... ];
    };
  };

  # Users
  users.users.myuser = {
    isNormalUser = true;
    description = "my name";
    extraGroups = [ "networkmanager" "wheel" "input" "docker" "libvirtd" "render" "video" ];
    packages = with pkgs; [
      # Games
      prismlauncher
      ryujinx
      r2modman

      # Media
      vesktop
      stremio
      jellyfin-media-player
      delfin
      fractal

      # Development
      vscode
    ];
    shell = pkgs.zsh;
  };

  # X11 and GNOME
  services.xserver = {
    enable = true;
    videoDrivers = [ "amdgpu" ];
    xkb = {
      layout = "us";
      variant = "";
    };
    displayManager.gdm.enable = true;
    desktopManager.gnome.enable = true;
  };

  # Graphics
  hardware = {
    graphics = {
      enable = true;
      enable32Bit = true;
    };
    amdgpu = {
      initrd.enable = true;
      opencl.enable = true;
    };
  };

  # Sound
  security.rtkit.enable = true;
  services = {
    pipewire = {
      enable = true;
      alsa = {
        enable = true;
        support32Bit = true;
      };
      pulse.enable = true;
      jack.enable = true;
    };
  };

  # Touchpad Support
  services.libinput.enable = true;

  # Automatic Login
  services.displayManager.autoLogin = {
    enable = true;
    user = "myuser";
  };

  # Workaround for GNOME autologin
  systemd.services."getty@tty1".enable = false;
  systemd.services."autovt@tty1".enable = false;

  # Packages
  environment.systemPackages = with pkgs; [
    # Gnome Plugins
    gnomeExtensions.appindicator
    gnomeExtensions.bing-wallpaper-changer
    gnomeExtensions.caffeine
    gnomeExtensions.clipboard-indicator
    gnomeExtensions.dash-to-dock
    gnomeExtensions.vitals
    gnomeExtensions.tailscale-status
    gnomeExtensions.weather-oclock

    # Media
    vlc
    ffmpeg
    yt-dlp
    obs-studio
    audacity
    onlyoffice-bin
    firefox
    qbittorrent
    blender-hip
    foliate

    # Utilities
    gnome-software
    gnome-tweaks
    piper
    resources
    pika-backup
    bottles
    distrobox
    thefuck
    cura-appimage

    # Development
    git
    gcc

    # System
    flatpak
    appimage-run
  ];

  programs = {
    steam = {
      enable = true;
      remotePlay.openFirewall = true;
      dedicatedServer.openFirewall = true;
      gamescopeSession.enable = true;
      localNetworkGameTransfers.openFirewall = true;
    };
    gamemode.enable = true;
    zsh.enable = true;
    adb.enable = true;
  };

  # Flatpak
  services.flatpak.enable = true;

  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # Fonts
  fonts.packages = with pkgs; [
    noto-fonts
    noto-fonts-cjk-sans
    noto-fonts-color-emoji
    aegyptus
    geist-font
    ibm-plex
    inter
  ];

  # Printing and Scanning
  services = {
    printing = {
      enable = true;
      browsing = true;
    };
    avahi = {
      enable = true;
      nssmdns4 = true;
      nssmdns6 = true;
      openFirewall = true;
    };
  };
  hardware.sane = {
    enable = true;
    disabledDefaultBackends = [ 
      "net" "abaton" "agfafocus" "apple" "artec" "artec_eplus48u" "as6e" "avision" "bh" "canon" "canon630u" "canon_dr" "canon_lide70" "canon_pp" "cardscan" "coolscan" "coolscan2" "coolscan3" "dc210" "dc240" "dc25" "dell1600n_net" "dmc" "epjitsu" "epson" "epson2" "fujitsu" "genesys" "gphoto2" "gt68xx" "hp" "hp3500" "hp3900" "hp4200" "hp5400" "hp5590" "hpljm1005" "hpsj5s" "hs2p" "ibm" "kodak" "kodakaio" "kvs1025" "kvs20xx" "kvs40xx" "leo" "lexmark" "ma1509" "magicolor" "matsushita" "microtek" "microtek2" "mustek" "mustek_pp" "mustek_usb" "mustek_usb2" "nec" "niash" "p5" "pie" "pieusb" "pint" "pixma" "plustek" "plustek_pp" "pnm" "qcam" "ricoh" "ricoh2" "rts8891" "s9036" "sceptre" "sharp" "sm3600" "sm3840" "snapscan" "sp15c" "st400" "stv680" "tamarack" "teco1" "teco2" "teco3" "test" "u12" "umax" "umax1220u" "umax_pp" "v4l" "xerox_mfp" 
    ];
  };

  # Services
  zramSwap.enable = true;
  services = {
    earlyoom.enable = true;
    udev.packages = with pkgs; [ gnome-settings-daemon ];
    ratbagd.enable = true;
    fwupd.enable = true;
    tailscale.enable = true;
    openssh = {
      enable = true;
      settings.PasswordAuthentication = true;
    };
  };
  hardware = {
    wooting.enable = true;
  };

  # Virtualization
  virtualisation = {
    libvirtd.enable = true;
    docker = {
      enable = true;
    };
  };
  programs.virt-manager.enable = true;

  # System Configurations
  nix = {
    optimise.automatic = true;
    settings.experimental-features = [ "nix-command" "flakes" ];
    gc = {
      automatic = true;
      dates = "weekly";
      options = "--delete-older-than 7d";
    };
  };

  # 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?
}

@returnofblank
Copy link
Author

returnofblank commented Feb 17, 2025

Could actually be related to this issue, if not the same: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/issues/110

It'll probably make its way into 6.14.0 from what I see in the kernel mailing list: https://lore.kernel.org/all/CAJnrk1aNVMCfTjL0vo-Qki68-5t1W+6-bJHg+x67kHEo_-q0Eg@mail.gmail.com/

Edit: Tested on 6.14.0 rc2, bug still seems to be present -- although my system didn't crash this time. It instead presents itself as the Celluloid app not responding to SIGKILLs, and video playback being choppy and then outright not working.

@migtorr
Copy link

migtorr commented Mar 2, 2025

Same on Fedora Silverblue 41, had to switch to Haruna

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants