!dGrjXvKnCwVLevgmzo:matrix.org

Stockholm NixOS meetup group

51 Members
Monthly meetups in Stockholm, Sweden around Nix releated topics(nixos.org)14 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
31 Jan 2024
@lillecarl:matrix.orglillecarl markuskowa: i don't see any logos 🤔 18:13:40
@markuskowa:matrix.orgmarkuskowaBy the window18:14:26
@markuskowa:matrix.orgmarkuskowaTable with 5 people.18:14:37
@rickynils:nixos.devRickard Nilsson joined the room.22:05:29
@lillecarl:matrix.orglillecarlDamn, I forgot to ask to take a picture w/ everyone. Thanks for a great evening everyone! 😁 23:37:57
1 Feb 2024
@claesatwork:matrix.orgClaesYes great to meet everyone! Attendance was above all expectations!07:02:00
@markuskowa:matrix.orgmarkuskowaThanks to everyone! Yesterday was absolutely great. 09:27:57
@igorramazanov:matrix.orgigorramazanov joined the room.10:09:05
@igorramazanov:matrix.orgigorramazanov set a profile picture.10:10:05
@igorramazanov:matrix.orgigorramazanovYeah :) (hi all 👋)10:12:40
2 Feb 2024
@lillecarl:matrix.orglillecarl
{ lib
, ...
}:
# $FLAKE should be configured to where your repository is located
# Preferably using direnv, you can also set it into your sessionVariables
let
  dot_path = "${builtins.getEnv("FLAKE")}/sub/dir/";
  dot_paths = lib.filesystem.listFilesRecursive dot_path;
  dot_strings = builtins.map (x: builtins.toString x) dot_paths;
  dot_prefixDeleted = builtins.map (x: builtins.replaceStrings [ dot_path ] [ "" ] x) dot_strings;
  dotfile_outOfStoreLinked = lib.attrsets.genAttrs dot_prefixDeleted (name: {
    source = config.lib.file.mkOutOfStoreSymlink (dot_path + name);
  });
in
{
  home.file = dotfile_outOfStoreLinked;
}

I know I mentioned linking things from $FLAKE repo into $HOME which I'm quite happy with. This is the implementation I'm using. It'll replicate a tree subdir into $HOME for you, nothing using home.file.x.recursive so you won't get collisions with folders and stuff 😄

20:18:15
3 Feb 2024
@claesatwork:matrix.orgClaesI didn't know you could do that! 22:36:07
6 Feb 2024
@igorramazanov:matrix.orgigorramazanovWould be nice to have an additional option: "does not really matter" and also allow multichoice19:51:29

Show newer messages


Back to Room ListRoom Version: 10