• 15 Posts
  • 410 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle



  • Not sure I can help with caching but you’re confusing the derivation and build result. Both end up in the nix store but the derivations are just files with the .drv extension. The build artefacts have a hash based on the derivation, but it is different. I think they are both deterministic as long as you don’t change config or update channel/flake dependencies. Can you check both paths in the nix store and try rebuilding?




  • Morphit @feddit.uktolinuxmemes@lemmy.worldoops
    link
    fedilink
    arrow-up
    14
    ·
    11 days ago

    There are tools like snapper and btrbk that periodically make snapshots. Since btrfs is a COW filesystem, the live subvolume just stores newer changes on top of the snapshot — it doesn’t need to copy anything until it changes. Only when file data is no-longer referenced is it actually marked free to overwrite. This can make disk usage a bit un-intuitive since you can have large files stuck in snapshots that don’t show up in your live subvolumes but still use up space. It can really save you from serious mess ups and is really cheap in terms of performance. It’s also possible to send snapshots over a network to another machine if you want longer term backups without keeping them on local disks.






  • I use a Lily58 to which I added extra thumb keys, so it’s really a Lily60. The layout is intended to minimise using the top row so I could probably move to a board with no num row without changing much. The delay on home-row mods doesn’t sit right with me but I use mod-tap to get a few extra keys on the outer column. RAlt is my compose key so that’s on a thumb key and all the other alt modifiers are LAlt. There’s quite a few mouse controls since I have the first-gen Ploopy nano trackball which has no buttons - e.g MMODE switches the trackball to scrolling instead of mousing and I often use MB3 to paste the “primary” clipboard. There’s a load of stuff I don’t use (like the mouse movement keys) but I always try to keep the ASCII layout up-to date in my QMK config:
    Edit: If code blocks look wonky on your client, here’s an image of it

    /* QWERTY
     *        ,-----------------------------------------.                     ,-----------------------------------------.
     *        |  ESC |   1  |   2  |   3  |   4  |   5  |                     |   6  |   7  |   8  |   9  |   0  |  =   |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |TABAlt|   Q  |   W  |   E  |   R  |   T  |                     |   Y  |   U  |   I  |   O  |   P  | -/Alt|
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |"/Ctrl|   A  |   S  |   D  |   F  |   G  |-------.     ,-------|   H  |   J  |   K  |   L  |   ;  |'/Ctrl|
     *        |------+------+------+------+------+------|  MB3  |     |  MB1  |------+------+------+------+------+------|
     *        |LShift|   Z  |   X  |   C  |   V  |   B  |-------|     |-------|   N  |   M  |   ,  |   .  |   /  |RShift|
     *        `-----------------------------------------/       /      \      \-----------------------------------------'
     *                          | MMODE| LGUI | LOWER| / Space /Tab  Esc\ Enter\  |RAISE |BackSP| RAlt |
     *                          |      |      |      |/       /LAlt  LAlt\      \ |      |      |      |
     *                          `----------------------------'            `------`'--------------------'
    
    layers
    /* RAISE
     *        ,-----------------------------------------.                     ,-----------------------------------------.
     *        |      |      |      |      |      |      |                     |VolDn |VolUp | PSCR | SCRL | PAUSE|      |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |      |   <  |   >  |   {  |   }  |      |                     |      |   (  |   )  |   -  |   _  |      |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |`/Ctrl|   (  |   )  |   [  |   ]  |  %   |-------.     ,-------| Left | Down |  Up  |Right |   ;  |#/Ctrl|
     *        |------+------+------+------+------+------|  GAME |     |  MB2  |------+------+------+------+------+------|
     *        |      |   |  |   #  |   (  |   )  |      |-------|     |-------| Home | PgDn | PgUp |  End |Insert|      |
     *        `-----------------------------------------/       /      \      \-----------------------------------------'
     *                          | MMODE| LGUI | LOWER| / Space /     MB1\ MB3  \  |RAISE |Delete| MMODE|
     *                          |      |      |      |/       /          \      \ |      |      |      |
     *                          `----------------------------'            `------`'--------------------'
    /* LOWER
     *        ,-----------------------------------------.                     ,-----------------------------------------.
     *        |  F12 |  F1  |  F2  |  F3  |  F4  |  F5  |                     |  F6  |  F7  |  F8  |  F9  | F10  | F11  |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |F12Alt|  F1  |  F2  |  F3  |  F4  |  F5  |                     |  F6  |  F7  |  F8  |  F9  | F10  |F11Alt|
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |`/Ctrl|   1  |   2  |   3  |   4  |   5  |-------.     ,-------|   6  |   7  |   8  |   9  |   0  |=/Ctrl|
     *        |------+------+------+------+------+------|  FIX  |     |  MB2  |------+------+------+------+------+------|
     *        |      |   \  |   [  |   ]  |   #  |   b  |-------|     |-------|   +  |   -  |   *  |   .  |   /  |      |
     *        `-----------------------------------------/       /      \      \-----------------------------------------'
     *                          | MTogg|  MB2 | LOWER| / Enter /GAME SPC\ Enter\  |RAISE |BackWD|   ,  |
     *                          |      |      |      |/       /          \      \ |      |      |      |
     *                          `----------------------------'            `------`'--------------------'
    /* ADJUST
     *        ,-----------------------------------------.                     ,-----------------------------------------.
     *        | NKRO | MRST | MDPI |      |      |      |                     |      | MAC0 | MAC1 | MAC2 |      | DBG  |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |Console MWUp |MWLeft|  MUp |MWRght|  OCR |                     | FFwd |  MB1 |  MB2 |  Rwd |  MB3 |      |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |      | MWDn | MLeft| Mdown|MRight|      |-------.     ,-------| Prev | Play | Stop | Next |  MB4 |      |
     *        |------+------+------+------+------+------| OLED- |     | OLED+ |------+------+------+------+------+------|
     *        |      |   |  |      | Calc |      |      |-------|     |-------| Mute |VolDn |VolUp |      |  MB5 |      |
     *        `-----------------------------------------/       /      \      \-----------------------------------------'
     *                          | MMODE| LGUI | LOWER| / Space /        \ Enter\  |RAISE |Delete| RAlt |
     *                          |      |      |      |/       /          \      \ |      |      |      |
     *                          `----------------------------'            `------`'--------------------'
    /* GAME
     *        ,-----------------------------------------.                     ,-----------------------------------------.
     *        | ESC  |      |      |      |      |      |                     |      |      |      |      |      |      |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |  T   |  Tab |  Q   |  W   |  E   |  R   |                     |      |      |      |      |      |      |
     *        |------+------+------+------+------+------|                     |------+------+------+------+------+------|
     *        |  H   | Shift|  A   |  S   |  D   |  F   |-------.     ,-------|      |      |      |      |      |      |
     *        |------+------+------+------+------+------|  GAME |     |       |------+------+------+------+------+------|
     *        | Shift| Ctrl |  Z   |  X   |  C   |  V   |-------|     |-------|      |      |      |      |      |      |
     *        `-----------------------------------------/       /      \      \-----------------------------------------'
     *                          |BackSP| Enter|INVENT| / Space /GAME    \ Enter\  |RAISE |BackSP| RAlt |
     *                          |      |      |      |/       /          \      \ |      |      |      |
     *                          `----------------------------'            `------`'--------------------'
     */