▲ 3 r/NixOS

How to create a recovery partition?

How can I create a small recovery partition on my computer's internal drive, put a NixOS ISO on it and add it to GRUB?

reddit.com
u/OliMoli2137 — 1 day ago
▲ 13 r/NixOS

I made a service to notify you on low battery

I wrapped a simple bash script in a Nix module. It basically sends you a notification when your battery level gets low. It can be configured through both NixOS and Home Manager.

I am aware of poweralertd but this script is supposed to be simple and no bloat

I mostly created it for personal purposes but thought that it might be useful for others so I'm posting it here

https://codeberg.org/OliMoli/batterywarn

u/OliMoli2137 — 2 days ago
▲ 32 r/activatewindows+1 crossposts

Windows watermark on a parcel locker

They recently placed this InPost parcel locker and it has a Windows watermark lol

Who would install Windows on a device like this anyway

u/OliMoli2137 — 4 days ago
▲ 0 r/NixOS

I made a script to update your fetchers

I was tired of having to manually update my fetchers' hashes so I made a bash script to automate it. Decided I might as well share it here.

It scans all .nix files in a given directory and finds fetchers. You can even have multiple fetchers in one file!

Currently only works with fetchFromGitHub and fetchurl but I plan to expand it so it works with more fetchers.

I tried to keep it simple so it uses regexes. So you have to have structured fetchers (example with github):

# fetchFromGitHub anywhere on a line triggers parsing
# Items below it are parsed but don't have to be in a specified order or a specified number of lines below
*owner = "*"*
*repo = "*"*
*rev = "*"*
*hash/sha256 = "*"*
*# branch = "*"* # optional metadata to specify which branch to pull hashes from

Check it out: https://codeberg.org/OliMoli/nix-dots/src/commit/9077c36fe28988b32df166ab9d26ec7cf79bec4d/modules/updater.sh

Let me know if you have any questions regarding it

reddit.com
u/OliMoli2137 — 7 days ago

"AI-powered" is basically a rebrand of "smart"

So all of the companies are now flexing that their devices are "Ai-PoWeReD" to express how great and modern their products are and we get nonsenses such as "AI" toothbrush or "AI" computer mouse. I've just realized that before GenAI got so popular, everything was called "smart". Sometimes it made sense, like in "smart TV", but sometimes didn't, like in "smart fridge" or "smart headphones" when they weren't necessarily "smart". The major difference is that the term "AI-powered" can be used in more scenarios, such as computer programs, while "smart" doesn't always fit here. (edit) "Smart" also usually means "connected to an app over the internet" while even a simple if-else clause can be considered AI

reddit.com
u/OliMoli2137 — 10 days ago

LUKS decrypt from a temporary keyfile USB

I am trying to achieve the following setup on my Raspberry Pi (running Debian 13) using /etc/fstab:

  1. temporarily mount a USB stick holding the key to the main LUKS-encrypted drive
  2. decrypt the drive using that key
  3. dismount the USB (it can be ejected now)
  4. mount the decrypted mapper device

I was trying to achieve this with some systemd opts in fstab but the encrypted drive always got dismounted when the key USB got ejected.

So I'm currently using a bash script for this but is there a better way to do this with fstab or mount systemd units?

reddit.com
u/OliMoli2137 — 17 days ago

Did wbtb but forgor

I set an intention to wake up for wbtb but when I did wake up I forgot about it and was too lazy and went back to sleep 😭

reddit.com
u/OliMoli2137 — 22 days ago

What's the weirdest thing you've done in a lucid dream?

Just curious, is there something weird you've done in a lucid dream? Did you do it willingly or did the dream's narrative lead you into doing it? What did it feel like?

reddit.com
u/OliMoli2137 — 22 days ago

Found a shipwreck on land at spawn

Found a shipwreck on land lol

Java 1.21.11

seed: 6992457787774289156

u/OliMoli2137 — 24 days ago

I just found out a new, simple technique!

TL;DR: This method involves setting a WBTB or MILD intention by rolling down your window shadows.

Some time ago when I began caring about lucid dreaming again, I started waking up after 6 hours of sleep (w/o an alarm!), which is the perfect time for WBTB+WILD. It might've also been that the sun started rising earlier and waking me up.

I then figured out I can roll down my window shadow a bit to set an intention to wake up and strengthening it by assuming that the sunrise will make it easier.

And it worked! I got a couple of vivid LDs due to combining the wakeup with WILD.

Even though I now don't wake up each time now, the intention persists and causes a MILD-like trigger so I become lucid mid-dream. But those dreams aren't as vivid and are less stable/predictable.

Let me know if you've got any questions or suggestions regarding this technique!

reddit.com
u/OliMoli2137 — 2 months ago

Quick question regarding memory management

Please be kind, I'm a beginner

So I'm trying to drive a 128x64 single color display. And I need a buffer for it. It stores 8 pixels in 1 byte

My first thought was to do this:

`uint8_t buf[1024];`

But I heard you shouldn't put such big variables on the stack and use the heap (new/malloc) instead. But heap is used when the size changes, right?

So is this the right way?

`uint8_t *buf = new uint8_t[1024];`

I also heard about `static` but idk what is it

Do stack/heap even matter on Arduino?

I should also mention that I'm on the R4 WiFi which has 8kB of RAM

reddit.com
u/OliMoli2137 — 2 months ago
▲ 3 r/songs

Had to put an image so you're welcome

May the trend arise (I'll probably regret that)

Give me some Dubstep/EDM songs to listen to and I'll rate them 1-10 with a personalized Human Intelligence™ based comment!

If you're gonna post links post a YouTube (Not YT Music)/SoundCloud link

One per comment please :)

u/OliMoli2137 — 2 months ago

(English isn't my first language so this post has been partially Google Translated™)

Tonight I had my first DILD!

Me and my mom were sitting in the house next to the window. I noticed something outside that looked a lot like the new sulfur geyser from Minecraft. I was gonna tell her about it but I realized that the geyser shouldn't be here, so I checked my fingers (had 6) and became lucid. For some reason I didn't want to just fly away and leave everyone confused and worried. I wanted to freeze them in time first. So I walked out of the house and wanted to command that my entire house (including people inside) gets frozen in time but all the time someone wal walking out of it. At some point a group of some women in headscarfs ran out through the front door. I figured out that this has become too chaotic and tried to undo the time to the start of the dream.

At this point I have lost lucidity. Me and my housemates were making traps for the earlier women which reappeared. My friend then needed help with logging in to Facebook on a cash register.

I then woke up because of my homie saying something during sleep

But this was still an awesome experience!

reddit.com
u/OliMoli2137 — 2 months ago

Just wanted to share my recent experience.

Around 3 days ago I started waking up after 6~6.5 hrs of sleep. I was happy because I figured out I can use it for WILD. Turns out it's surprisingly easy (I might be gifted tho). I just have to focus on hypnagogic senstaions for a couple of seconds and I'm lucid dreaming already. I then have false awakening(s). I can usually get up from bed and do stuff I'd normally do in a lucid dream. I then wake up around 10-20 minutes before the alarm clock.

Now, I'm curious: why does this happen? Is it some kind of sign? Or have I simply unlocked a new ability? I should also mention that I started dream journaling a bit more often recently (around 1,5 weeks ago). Might also be that the sun now rises earlier

reddit.com
u/OliMoli2137 — 2 months ago

Usually when I have a LD I forget what do I want to do and do some generic things such as flying instead. And I'm afraid if I try recalling too hard it might wake me up

For example how do I remember I want to do parkour??

I also have the problem where I don't at all remember to stabilize my dream (like rub my hands). Tonight I had one and only recalled to rub my hands when the dream got unstable and I was waking up.

How can I remember to stabilize my dream?? (I already remember to do reality checks)

Thank you in advance!

reddit.com
u/OliMoli2137 — 2 months ago

I noticed each time after I wake up a lucid dream my brain slowly modifies the memories from it in a way I start questioning whether I was actually lucid then. Blurs out the feeling of lucidity. It slowly makes me feel like if it was just a regular dream.

Have you also noticed this?

reddit.com
u/OliMoli2137 — 2 months ago