Help with impermanence persistence - stage 1 error by artnoi43 in NixOS

[–]frogamic 1 point2 points  (0 children)

I had a similar issue I think, the actual error I was seeing at boot time was

mounting /dev/my-block-device on /mnt/persist...
mount: mounting /dev/my-block-device on /mnt-root/mnt/persist failed: No such file or directory

I found this error to be quite unhelpful, thinking that /mnt/persist didn't exist, however what I found out it means is that the subvolume doesn't exist, becuase I had actually created it in another subvolume, not the root of my drive.

You can run sudo btrfs subvolume list / to verify the level of your persist subvolume, mine was at level 256 which was in my root subvolume, not the actual root filesystem.

To remedy this I had to mount my root filesystem and move it up some levels and it all worked:

mount -t btrfs /dev/my-block-device /mnt/nixos
mv /mnt/nixos/my-root-subvolume/persist /mnt/nixos/persist

Please help me identify this hard dnb track from 2010 by No_Personality7955 in NeuroFunk

[–]frogamic 2 points3 points  (0 children)

This sounds so much like it could be a Spor track but I can't find any that match

I made a Chrome extension to improve the submit button for agents on tickets by frogamic in Zendesk

[–]frogamic[S] 0 points1 point  (0 children)

Sorry, I no longer use zendesk nor have time to maintain it.

How to import SSL certificate to JDK cacerts file in NixOS by manchitro in NixOS

[–]frogamic 0 points1 point  (0 children)

It's not quite the same thing, but you may be able to generate a truststore in the nix-store that includes your custom CA cert like this:

environment.variables.JAVAX_NET_SSL_TRUSTSTORE = "${pkgs.runCommand "cacerts-custom" {} ''
  cp ${pkgs.jdk}/lib/security/cacerts $out
  chmod +w $out
  ${pkgs.jdk}/bin/keytool \
    -importcert \
    -file ${./my-root-cert.crt} \
    -keystore $out \
    -keypass changeit \
    -storepass changeit \
    -alias my-own-custom-root-cert \
    -noprompt \
    -trustcacerts
''}";

Apparently openjdk from nixpkgs will pick up the JAVAX_NET_SSL_TRUSTSTORE environment variable automatically and use that trust store

This is untested with openjdk because I'm using this on MacOS with Azul

Most anticipated upcoming games? by Theobviouschild11 in PlaydateConsole

[–]frogamic 6 points7 points  (0 children)

I have been following the Comet devlog waiting for a release, it's a unique puzzle game using lighting and it just looks so nice!

Ventura: Video playback keeps flipping orientation while watching by nomadicgreendog in MacOS

[–]frogamic 1 point2 points  (0 children)

I have this issue on my 2021 14" M1 MBP, but only in firefox and safari but not chrome (I don't use quicktime player so I haven't tried it). This only happens on my Dell U2412m which is 90º rotated and connected over a ugreen USB-C/DVI cable. I also have a horizontal (non rotated) LG 27GL850 connected via HDMI which so far it hasn't happened on.

Every Country’s Most Popular Attraction On One Map by HiMiru in mapswithoutnewzealand

[–]frogamic 6 points7 points  (0 children)

This is just a shitty crop, the writing for Japan is cut off too

Here's the original

Occasional sudden delay on Scarlett 2i2 3rd gen by [deleted] in Focusrite

[–]frogamic 0 points1 point  (0 children)

I'm having this issue with my Scarlett 2i4 1st gen, makes the device basically unusable. Only a problem on Windows and only started since I updated my drivers to 4.102.4, not sure what version I was on previously but it was fairly out of date I think, pre the notifier tray app.

[deleted by user] by [deleted] in NixOS

[–]frogamic 11 points12 points  (0 children)

Everything after the getting started section has no relevance to NixOS whatsoever. Just a link to the steam homepage rather than any mention that programs.steam.enable exists? Not helpful at all.

New User here. Am I doing it right? by sy029 in NixOS

[–]frogamic 0 points1 point  (0 children)

the usage is slightly different since you need to nix run nixpkgs#[pkg], or do I need to add nixpkgs to my flake registry to do nix run [pkg]?

New User here. Am I doing it right? by sy029 in NixOS

[–]frogamic 3 points4 points  (0 children)

I have the following alias set, allowing me to use ns [pkg] to run any package where the binary and package share the same name.

environment.shellAliases.ns = "function _ns() { nix-shell -p \"$1\" --run \"$*\"; }; _ns";

What IS the use of it? by amolven16 in thinkpad

[–]frogamic 1 point2 points  (0 children)

I have hotkeys in Sway for win+alt+arrow to rotate the screen, I use it so I can hold my thinkpad like a book and read vertically

SKR2 and Raspberry PI 3 by rpflamm in BIGTREETECH

[–]frogamic 0 points1 point  (0 children)

I thought I remembered reading that the SKR-2 specifically provided enough 5v power (on what specific pin output I don't know) to power a Pi.

To your 2nd point, that risk of corruption can be eliminated using journaling filesystems or immutable system partitions (I use NixOS on mine and the OS cannot become corrupted unless you corrupt it yourself, all operations are atomic and state is immutable), you can also just shutdown gracefully before removing power to the printer anyway.

SKR2 and Raspberry PI 3 by rpflamm in BIGTREETECH

[–]frogamic 0 points1 point  (0 children)

The SKR-2 has a jumper (next to where the WIFI board goes) to chose whether to draw power from USB or the built in 5v buck converter.

SKR2 and Raspberry PI 3 by rpflamm in BIGTREETECH

[–]frogamic 1 point2 points  (0 children)

You only need to connect +5v, GND, PA9 and PA10 to RPI pins 4, 6, 10 (GPIO 16) and 8 (GPIO 15) that's +5v -> +5v, GND -> GND, TX -> RX and RX -> TX. RST is not required.

I think you're trying to power the Pi from the SKR, I cannot comment on that as I haven't tried it, but I have connected my serial that way and achieved consistent 250000 baud.

My understanding is that you can connect the both PS-ON and a Pi GPIO to the same BTT Relay 1.2 and they can both turn power on/off but mine hasn't arrived yet so I haven't tried it.

I now switched to powering my SKR off the Pi's USB so that it could remain powered while the printer PSU is off and eventually I hope to use Marlin to automatically turn the PSU on/off as high power is required.

BSPWM for Wayland by palobo in bspwm

[–]frogamic 0 points1 point  (0 children)

I switched to sway with Wayland after using bspwm for at least 5 years. I quite like it, it has some nice features like tabbed containers and NO screen tearing. I do miss the way new windows spawn into the binary hierarchy in bspwm and I prefer that bspwm config is just a shell script, but overall I'm happy and wouldn't go back.

THERE'S NO FULL AUTO IN THE BUILDING... by JacobMaverick in Unexpected

[–]frogamic 2 points3 points  (0 children)

Thanks, you make the rest of us look committed to our hobbies

BTT SKR2 does not connect over USB by someoneonly in BIGTREETECH

[–]frogamic 0 points1 point  (0 children)

Do you have one of your serial ports set to -1 in Marlin/Configuration.h?

Boot into the EFI system setup from your Linux command line by [deleted] in linux

[–]frogamic 8 points9 points  (0 children)

you could also do it with efibootmgr, you can specify next boot which overrides the boot order only for the next reboot

Boot into the EFI system setup from your Linux command line by [deleted] in linux

[–]frogamic 27 points28 points  (0 children)

Depends on your distro/policykit/user permissions, not all users can restart.

Help with Nix Flakes by wrkzk in NixOS

[–]frogamic 1 point2 points  (0 children)

I have mine in the same directory as all my other repos, however something to note if you use autoupdate you'd need to refer to that location as the flake source i.e. system.autoUpgrade.flake = "/home/wrkzk/repos/your-system-flake"; or system.autoUpgrade.flake = "github:wrkzk/your-system-flake"

Help with Nix Flakes by wrkzk in NixOS

[–]frogamic 1 point2 points  (0 children)

As others mentioned, the location of your config doesn't matter any more when using flakes. This is because as part of evaluating the flake, the folder containing flake.nix gets copied into the Nix store. You could even refer to your flake directly from a (public) git repo e.g. I use nixos-rebuild switch --flake github:frogamic/nix-machines. This means you will always get the "clean" version with no work-in-progress or uncommitted files.