| 23 Dec 2021 |
| c0c0n3 joined the room. | 16:36:46 |
c0c0n3 | Hi guys, does anyone have a minute to help me figure out some weirdness w/ flake shell / develop? | 16:37:55 |
c0c0n3 | or maybe it isn't weird at all, it's just me not understanding the way it's supposed to work actually :-) | 16:38:33 |
balsoft | Don't ask to ask, just ask :) | 17:28:37 |
| 24 Dec 2021 |
| klaymore left the room. | 22:55:33 |
| 26 Dec 2021 |
| chrisaw joined the room. | 16:26:01 |
| Xe joined the room. | 18:16:38 |
Xe | I'm trying to flakify an app of mine and it's not working: https://tulpa.dev/cadey/printerfacts/src/branch/main/flake.nix
i tried to define the nixos module and the tests inside the flake.nix file. but the test is claiming that the service can't cd into the package on disk. here is the test output: http://ix.io/3JAp. what am i doing wrong? | 18:16:43 |
balsoft | In reply to @withoutwithin:matrix.org I'm trying to flakify an app of mine and it's not working: https://tulpa.dev/cadey/printerfacts/src/branch/main/flake.nix i tried to define the nixos module and the tests inside the flake.nix file. but the test is claiming that the service can't cd into the package on disk. here is the test output: http://ix.io/3JAp. what am i doing wrong? You don't need to filter out target since it's gitignored already | 18:18:37 |
balsoft | Also, you're trying to chdir to /srv/within, but the service creating those directories may not have started at that point | 18:20:41 |
balsoft | Also, it's better to use systemd's internal mechanisms for this I think | 18:20:51 |
balsoft | Try `StateDirectory`` | 18:20:56 |
balsoft | * Try StateDirectory | 18:20:58 |
balsoft | * Try StateDirectory | 18:21:00 |
balsoft | (and it's also going to put it in the right place, i.e. /var/lib | 18:21:26 |
balsoft | * (and it's also going to put it in the right place, i.e. /var/lib) | 18:21:28 |
balsoft | Oh, it looks like RuntimeDirectory may be a better fit here | 18:21:47 |
balsoft | And if you're adamant on creating a non-standard directory in the root (which I think is a bad idea), do it with systemd.tmpfiles.rules instead of custom things | 18:22:14 |
balsoft | Or, if you just want to fix what you have, add before = [ "within.printerfacts.service" ]; to within-homedir-setup | 18:22:57 |
Xe | is there a way to make systemd.tmpfiles.rules create permanent persistent directories? | 18:24:22 |
Xe | i thought that would create time bombs that would vanish randomly | 18:24:35 |
Xe | * i thought that would create time bombs that could vanish randomly | 18:27:22 |
balsoft | tmpfiles create persistent directories | 18:27:39 |
balsoft | (unless you use d, D or e, that is) | 18:29:03 |
balsoft | * (unless you use d, D or e, that is, and specify the cleanup-age) | 18:29:47 |
Xe | i see, thanks | 18:53:19 |
Xe | but yeah i was just doing things really wrongly with how i was copying things into my flake.nix | 18:53:36 |
Xe |  Download Screenshot from 2021-12-26 13-53-12.png | 18:53:50 |
Xe | it works now 😀 | 18:53:54 |
| 28 Dec 2021 |
ilkecan | In reply to @andi:kack.it So, how do I write a flake that doesn't rebuild all the packages that have their source in the same repo (root) whenever I change a whitespace in my flake.nix? Is filterSource compatible/supported with flakes? You need to use nix-filter or something equivalent. | 18:57:38 |