4
Mount a Nextcloud folder (programming.dev)
submitted 2 months ago by menzel@programming.dev to c/nix@programming.dev

Is it possible to mount a Nextcloud folder into the filesystem within the nix config that other services can use it? For example have a jellyfin server use the a family shared nextcloud folder

[-] menzel@programming.dev 1 points 3 months ago

ChromeOS (more it's Debian Container)

OpenSUSE Tumbleweed

Distrohopping every view Weeks

KDE Neon

NixOS

[-] menzel@programming.dev 5 points 3 months ago

The year of the Linux desktop is long ago, but this year definitely will be the year of Linux mobile

13
Nix Language Recursion (programming.dev)
submitted 4 months ago by menzel@programming.dev to c/nix@programming.dev

Hey, i currently try to learn the nix language and i have a question about recursion. This is my solution for Advent of Code 2015 day 4

let
    input = "abcdef";
    part1 = number:
        if (builtins.substring 0 5 (builtins.hashString "md5" "${input}${builtins.toString number}")) == "00000" then
            number
        else
            part1 (number + 1);
    part2 = "not implemented";

in {"Part 1" = part1 1; "Part 2" = part2;}

since i put the recursive call at the end of the function i assumed it would do some magic or tail call optimization stuff, but it results pretty fast in a stack overflow is there a way to get it working?

[-] menzel@programming.dev 6 points 4 months ago

Not reliable as a daily driver but very cool

[-] menzel@programming.dev 1 points 6 months ago

Whenever it better expresses what you mean. In most cases it doesn't make a huge difference because the compiler don't care

[-] menzel@programming.dev 7 points 9 months ago

menzel

joined 10 months ago