home.social

#flake — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #flake, aggregated by home.social.

fetched live
  1. I want to code, so I should use:

    - nix #flake #direnv
    - #devbox/#devenv/#flox #direnv
    - #mise
    - #devcontainer
    - {{ insert_other_arcane }}

    And then #TaskFile or #JustFile for the command runner.

    This is all in a move to progress yes. But it can be a lot for people wanting to work. 🫠

  2. I want to code, so I should use:

    - nix
    - /#devenv/#flox
    -
    -
    - {{ insert_other_arcane }}

    And then or for the command runner.

    This is all in a move to progress yes. But it can be a lot for people wanting to work. 🫠

  3. I want to code, so I should use:

    - nix #flake #direnv
    - #devbox/#devenv/#flox #direnv
    - #mise
    - #devcontainer
    - {{ insert_other_arcane }}

    And then #TaskFile or #JustFile for the command runner.

    This is all in a move to progress yes. But it can be a lot for people wanting to work. 🫠

  4. I want to code, so I should use:

    - nix #flake #direnv
    - #devbox/#devenv/#flox #direnv
    - #mise
    - #devcontainer
    - {{ insert_other_arcane }}

    And then #TaskFile or #JustFile for the command runner.

    This is all in a move to progress yes. But it can be a lot for people wanting to work. 🫠

  5. I want to code, so I should use:

    - nix #flake #direnv
    - #devbox/#devenv/#flox #direnv
    - #mise
    - #devcontainer
    - {{ insert_other_arcane }}

    And then #TaskFile or #JustFile for the command runner.

    This is all in a move to progress yes. But it can be a lot for people wanting to work. 🫠

  6. #GitHub down? Nixpkgs can and should in most cases be fetched from channels.nixos.org because that is redistributed world-wide via #fastly with much higher availability and IPv6 support.

    E.g. in your #flake use

    nixpkgs.url = "channels.nixos.org/nixos-26.05";

    instead of the github-flavored expression. Works for all supported channels.

    #nixos #nixpkgs

  7. #GitHub down? Nixpkgs can and should in most cases be fetched from channels.nixos.org because that is redistributed world-wide via #fastly with much higher availability and IPv6 support.

    E.g. in your #flake use

    nixpkgs.url = "channels.nixos.org/nixos-26.05";

    instead of the github-flavored expression. Works for all supported channels.

    #nixos #nixpkgs

  8. #GitHub down? Nixpkgs can and should in most cases be fetched from channels.nixos.org because that is redistributed world-wide via #fastly with much higher availability and IPv6 support.

    E.g. in your #flake use

    nixpkgs.url = "channels.nixos.org/nixos-26.05";

    instead of the github-flavored expression. Works for all supported channels.

    #nixos #nixpkgs

  9. #GitHub down? Nixpkgs can and should in most cases be fetched from channels.nixos.org because that is redistributed world-wide via #fastly with much higher availability and IPv6 support.

    E.g. in your #flake use

    nixpkgs.url = "channels.nixos.org/nixos-26.05";

    instead of the github-flavored expression. Works for all supported channels.

    #nixos #nixpkgs

  10. #GitHub down? Nixpkgs can and should in most cases be fetched from channels.nixos.org because that is redistributed world-wide via #fastly with much higher availability and IPv6 support.

    E.g. in your #flake use

    nixpkgs.url = "channels.nixos.org/nixos-26.05";

    instead of the github-flavored expression. Works for all supported channels.

    #nixos #nixpkgs

  11. @yisraeldov
    Now if we make the flake.nixosModules.somename : {arg1, arg2} = {}
    Then we can start composing too.

    In short: it's a very neat approach to modularize the options which scales better.

    Those who are using nix flake-parts and dendritic pattern, feel free to correct me or simplify this please.

    -parts

  12. @yisraeldov
    Now if we make the flake.nixosModules.somename : {arg1, arg2} = {}
    Then we can start composing too.

    In short: it's a very neat approach to modularize the options which scales better.

    Those who are using nix flake-parts and dendritic pattern, feel free to correct me or simplify this please.

    #nix #flakes #nixos #homemanager #nixhomemanager #flake-parts #dendritic #dendriticpattern

  13. @yisraeldov
    Now if we make the flake.nixosModules.somename : {arg1, arg2} = {}
    Then we can start composing too.

    In short: it's a very neat approach to modularize the options which scales better.

    Those who are using nix flake-parts and dendritic pattern, feel free to correct me or simplify this please.

    #nix #flakes #nixos #homemanager #nixhomemanager #flake-parts #dendritic #dendriticpattern

  14. @yisraeldov
    Now if we make the flake.nixosModules.somename : {arg1, arg2} = {}
    Then we can start composing too.

    In short: it's a very neat approach to modularize the options which scales better.

    Those who are using nix flake-parts and dendritic pattern, feel free to correct me or simplify this please.

    #nix #flakes #nixos #homemanager #nixhomemanager #flake-parts #dendritic #dendriticpattern

  15. @yisraeldov
    Personally in my config :
    github.com/vivekanandan-ks/ksv

    see here how xremap requires both nixos and homeManager options to work, so I keep both in same file. Now when I don't want xremap, I just need to remove this file from the scene, that's all . No need to go to separate places like nixos module folder and homemanager module folder to delete.

    -parts

  16. @yisraeldov
    Personally in my config :
    github.com/vivekanandan-ks/ksv

    see here how xremap requires both nixos and homeManager options to work, so I keep both in same file. Now when I don't want xremap, I just need to remove this file from the scene, that's all . No need to go to separate places like nixos module folder and homemanager module folder to delete.

    #nix #flake #flake-parts #dendriticpattern

  17. @yisraeldov
    Personally in my config :
    github.com/vivekanandan-ks/ksv

    see here how xremap requires both nixos and homeManager options to work, so I keep both in same file. Now when I don't want xremap, I just need to remove this file from the scene, that's all . No need to go to separate places like nixos module folder and homemanager module folder to delete.

    #nix #flake #flake-parts #dendriticpattern

  18. @yisraeldov
    Personally in my config :
    github.com/vivekanandan-ks/ksv

    see here how xremap requires both nixos and homeManager options to work, so I keep both in same file. Now when I don't want xremap, I just need to remove this file from the scene, that's all . No need to go to separate places like nixos module folder and homemanager module folder to delete.

    #nix #flake #flake-parts #dendriticpattern

  19. @yisraeldov
    But in dendritic pattern we wrap option A to F under common top level attribute in same file:
    flake.nixosModules.somename = {option A to C here}
    flake.homeModules.somerelatedname = {option D to F here}

    And then we can do like
    In nixos:-
    imports =
    [ self.flake.nixosModules.somename ]
    In hm:-
    imports = [self.flake.nixosModules.someothername]

    This way we can declare options of same aspects in same file and the import them later respectively.

    -parts

  20. @yisraeldov
    But in dendritic pattern we wrap option A to F under common top level attribute in same file:
    flake.nixosModules.somename = {option A to C here}
    flake.homeModules.somerelatedname = {option D to F here}

    And then we can do like
    In nixos:-
    imports =
    [ self.flake.nixosModules.somename ]
    In hm:-
    imports = [self.flake.nixosModules.someothername]

    This way we can declare options of same aspects in same file and the import them later respectively.

    #nix #dendritic #flake #flake-parts

  21. @yisraeldov
    But in dendritic pattern we wrap option A to F under common top level attribute in same file:
    flake.nixosModules.somename = {option A to C here}
    flake.homeModules.somerelatedname = {option D to F here}

    And then we can do like
    In nixos:-
    imports =
    [ self.flake.nixosModules.somename ]
    In hm:-
    imports = [self.flake.nixosModules.someothername]

    This way we can declare options of same aspects in same file and the import them later respectively.

    #nix #dendritic #flake #flake-parts

  22. @yisraeldov
    But in dendritic pattern we wrap option A to F under common top level attribute in same file:
    flake.nixosModules.somename = {option A to C here}
    flake.homeModules.somerelatedname = {option D to F here}

    And then we can do like
    In nixos:-
    imports =
    [ self.flake.nixosModules.somename ]
    In hm:-
    imports = [self.flake.nixosModules.someothername]

    This way we can declare options of same aspects in same file and the import them later respectively.

    #nix #dendritic #flake #flake-parts

  23. @yisraeldov
    (Follow this thread)
    nix is the idea of modularising in a very top level option. And -parts is just one tool to achieve that, there are many custom functions that many use personally on their config too.
    Eg:
    optionA, optionB, optionC are nixos options
    optionD, optionE, optionF are home-manager options

    We use A to C in a nixos module file and D to F in hm module file and we can use both in same file, coz we typically import the whole file as module.

  24. @yisraeldov
    (Follow this thread)
    #dendritic nix is the idea of modularising in a very top level option. And #flake-parts is just one tool to achieve that, there are many custom functions that many use personally on their config too.
    Eg:
    optionA, optionB, optionC are nixos options
    optionD, optionE, optionF are home-manager options

    We use A to C in a nixos module file and D to F in hm module file and we can use both in same file, coz we typically import the whole file as module.
    #nix #flake

  25. @yisraeldov
    (Follow this thread)
    #dendritic nix is the idea of modularising in a very top level option. And #flake-parts is just one tool to achieve that, there are many custom functions that many use personally on their config too.
    Eg:
    optionA, optionB, optionC are nixos options
    optionD, optionE, optionF are home-manager options

    We use A to C in a nixos module file and D to F in hm module file and we can use both in same file, coz we typically import the whole file as module.
    #nix #flake

  26. @yisraeldov
    (Follow this thread)
    #dendritic nix is the idea of modularising in a very top level option. And #flake-parts is just one tool to achieve that, there are many custom functions that many use personally on their config too.
    Eg:
    optionA, optionB, optionC are nixos options
    optionD, optionE, optionF are home-manager options

    We use A to C in a nixos module file and D to F in hm module file and we can use both in same file, coz we typically import the whole file as module.
    #nix #flake

  27. @yisraeldov
    (Follow this thread)
    #dendritic nix is the idea of modularising in a very top level option. And #flake-parts is just one tool to achieve that, there are many custom functions that many use personally on their config too.
    Eg:
    optionA, optionB, optionC are nixos options
    optionD, optionE, optionF are home-manager options

    We use A to C in a nixos module file and D to F in hm module file and we can use both in same file, coz we typically import the whole file as module.
    #nix #flake

  28. @arichtman
    Recently started using pattern using parts it's really helpful.

    Earlier: A new module file means I add it to a folder, then import them in my configuration.nix home.nix accordingly.

    Now: a module file added to a folder. That's it.

    And more awesome is that I can place both a nixos module and home module in the same file to have aspects together🔥 much more benefits

    It's worth doing things this way

  29. @arichtman
    Recently started using #dendritic pattern using #flake parts it's really helpful.

    Earlier: A new module file means I add it to a folder, then import them in my configuration.nix home.nix accordingly.

    Now: a module file added to a folder. That's it.

    And more awesome is that I can place both a nixos module and home module in the same file to have aspects together🔥 much more benefits

    It's worth doing things this way

    #nix #nixos #dendriticpattern #config #management #flakeparts

  30. @arichtman
    Recently started using #dendritic pattern using #flake parts it's really helpful.

    Earlier: A new module file means I add it to a folder, then import them in my configuration.nix home.nix accordingly.

    Now: a module file added to a folder. That's it.

    And more awesome is that I can place both a nixos module and home module in the same file to have aspects together🔥 much more benefits

    It's worth doing things this way

    #nix #nixos #dendriticpattern #config #management #flakeparts

  31. @arichtman
    Recently started using #dendritic pattern using #flake parts it's really helpful.

    Earlier: A new module file means I add it to a folder, then import them in my configuration.nix home.nix accordingly.

    Now: a module file added to a folder. That's it.

    And more awesome is that I can place both a nixos module and home module in the same file to have aspects together🔥 much more benefits

    It's worth doing things this way

    #nix #nixos #dendriticpattern #config #management #flakeparts

  32. @arichtman
    Recently started using #dendritic pattern using #flake parts it's really helpful.

    Earlier: A new module file means I add it to a folder, then import them in my configuration.nix home.nix accordingly.

    Now: a module file added to a folder. That's it.

    And more awesome is that I can place both a nixos module and home module in the same file to have aspects together🔥 much more benefits

    It's worth doing things this way

    #nix #nixos #dendriticpattern #config #management #flakeparts

  33. So, I gave #devenv a try.

    I'm used to work with #nix #flakes but I have to admin the devenv.nix file is less cluttered which lead to a better UX. But this comes at the cost of an extra devenv.yaml file. Why not, not a fan, but it works.

    But, while #devenv configs are composable locally, they can't import a remote config as #flake does.

    Also, `devenv shell` breaks my #tmux / #nvim setup where my #flake works like a charm.
    So, yeah, I'll keep my #flake for now.
    At work and at home.

    CC @Ilygad

  34. So, I gave #devenv a try.

    I'm used to work with #nix #flakes but I have to admin the devenv.nix file is less cluttered which lead to a better UX. But this comes at the cost of an extra devenv.yaml file. Why not, not a fan, but it works.

    But, while #devenv configs are composable locally, they can't import a remote config as #flake does.

    Also, `devenv shell` breaks my #tmux / #nvim setup where my #flake works like a charm.
    So, yeah, I'll keep my #flake for now.
    At work and at home.

    CC @Ilygad

  35. So, I gave #devenv a try.

    I'm used to work with #nix #flakes but I have to admin the devenv.nix file is less cluttered which lead to a better UX. But this comes at the cost of an extra devenv.yaml file. Why not, not a fan, but it works.

    But, while #devenv configs are composable locally, they can't import a remote config as #flake does.

    Also, `devenv shell` breaks my #tmux / #nvim setup where my #flake works like a charm.
    So, yeah, I'll keep my #flake for now.
    At work and at home.

    CC @Ilygad

  36. So, I gave #devenv a try.

    I'm used to work with #nix #flakes but I have to admin the devenv.nix file is less cluttered which lead to a better UX. But this comes at the cost of an extra devenv.yaml file. Why not, not a fan, but it works.

    But, while #devenv configs are composable locally, they can't import a remote config as #flake does.

    Also, `devenv shell` breaks my #tmux / #nvim setup where my #flake works like a charm.
    So, yeah, I'll keep my #flake for now.
    At work and at home.

    CC @Ilygad

  37. So, I gave #devenv a try.

    I'm used to work with #nix #flakes but I have to admin the devenv.nix file is less cluttered which lead to a better UX. But this comes at the cost of an extra devenv.yaml file. Why not, not a fan, but it works.

    But, while #devenv configs are composable locally, they can't import a remote config as #flake does.

    Also, `devenv shell` breaks my #tmux / #nvim setup where my #flake works like a charm.
    So, yeah, I'll keep my #flake for now.
    At work and at home.

    CC @Ilygad

  38. #DNSCryptProxy2
    #nixos #flake #part example (yes, made with Claude Code) made to see how many hoops are needed to be jumped through to not even get remotely close to the privacy that #reticulum provides over #nomadnet
    Reticulum is remarkable as compared with the info leaky internet infrastructure we use daily. github.com/DNSCrypt/dnscrypt-p

    #dnsencryption #DoT #DoH #DNS


  39. example (yes, made with Claude Code) made to see how many hoops are needed to be jumped through to not even get remotely close to the privacy that provides over
    Reticulum is remarkable as compared with the info leaky internet infrastructure we use daily. github.com/DNSCrypt/dnscrypt-p

  40. #DNSCryptProxy2
    #nixos #flake #part example (yes, made with Claude Code) made to see how many hoops are needed to be jumped through to not even get remotely close to the privacy that #reticulum provides over #nomadnet
    Reticulum is remarkable as compared with the info leaky internet infrastructure we use daily. github.com/DNSCrypt/dnscrypt-p

    #dnsencryption #DoT #DoH #DNS

  41. #DNSCryptProxy2
    #nixos #flake #part example (yes, made with Claude Code) made to see how many hoops are needed to be jumped through to not even get remotely close to the privacy that #reticulum provides over #nomadnet
    Reticulum is remarkable as compared with the info leaky internet infrastructure we use daily. github.com/DNSCrypt/dnscrypt-p

    #dnsencryption #DoT #DoH #DNS

  42. #DNSCryptProxy2
    #nixos #flake #part example (yes, made with Claude Code) made to see how many hoops are needed to be jumped through to not even get remotely close to the privacy that #reticulum provides over #nomadnet
    Reticulum is remarkable as compared with the info leaky internet infrastructure we use daily. github.com/DNSCrypt/dnscrypt-p

    #dnsencryption #DoT #DoH #DNS

  43. see post above:
    1) repo of a #nixos #flake with #reticulum tools
    2) install reticulum >= 1.3.4 run it with e.g. rnsd -v
    3) install #Nomadnet / #meshchatx
    4) rns://2348f5d47af0253e773334ed288adae9/public/reticulum_nixos_flake_rngit_mirror
    5) 8331ef3af688e4153234a5910608dc30
    6) [interfaces]
    [[adingbatponder-repos]]
    type = TCPClientInterface
    interface_enabled = true
    target_host = repoducible.net
    target_port = 57001
    name = adingbatponder-repos
    2/3

  44. see post above:
    1) repo of a with tools
    2) install reticulum >= 1.3.4 run it with e.g. rnsd -v
    3) install /
    4) rns://2348f5d47af0253e773334ed288adae9/public/reticulum_nixos_flake_rngit_mirror
    5) 8331ef3af688e4153234a5910608dc30
    6) [interfaces]
    [[adingbatponder-repos]]
    type = TCPClientInterface
    interface_enabled = true
    target_host = repoducible.net
    target_port = 57001
    name = adingbatponder-repos
    2/3

  45. see post above:
    1) repo of a #nixos #flake with #reticulum tools
    2) install reticulum >= 1.3.4 run it with e.g. rnsd -v
    3) install #Nomadnet / #meshchatx
    4) rns://2348f5d47af0253e773334ed288adae9/public/reticulum_nixos_flake_rngit_mirror
    5) 8331ef3af688e4153234a5910608dc30
    6) [interfaces]
    [[adingbatponder-repos]]
    type = TCPClientInterface
    interface_enabled = true
    target_host = repoducible.net
    target_port = 57001
    name = adingbatponder-repos
    2/3

  46. see post above:
    1) repo of a #nixos #flake with #reticulum tools
    2) install reticulum >= 1.3.4 run it with e.g. rnsd -v
    3) install #Nomadnet / #meshchatx
    4) rns://2348f5d47af0253e773334ed288adae9/public/reticulum_nixos_flake_rngit_mirror
    5) 8331ef3af688e4153234a5910608dc30
    6) [interfaces]
    [[adingbatponder-repos]]
    type = TCPClientInterface
    interface_enabled = true
    target_host = repoducible.net
    target_port = 57001
    name = adingbatponder-repos
    2/3

  47. see post above:
    1) repo of a #nixos #flake with #reticulum tools
    2) install reticulum >= 1.3.4 run it with e.g. rnsd -v
    3) install #Nomadnet / #meshchatx
    4) rns://2348f5d47af0253e773334ed288adae9/public/reticulum_nixos_flake_rngit_mirror
    5) 8331ef3af688e4153234a5910608dc30
    6) [interfaces]
    [[adingbatponder-repos]]
    type = TCPClientInterface
    interface_enabled = true
    target_host = repoducible.net
    target_port = 57001
    name = adingbatponder-repos
    2/3

  48. @Pol Thanks. Yes, it should ALL be upstream derivations but the hate campaign against AI generated PRs is so bad I do not do it & make it all local. The flake uses 'parts' so you can pull in just the part/s you want: very handy so you do not need the whole flake & can test before maybe importing/harvesting the nix code The readme is not up to date, sorry. As you can see from the number of commits, even with Claude Code doing the heavy lifting, it is a very long term project to make my #flake.

  49. @Pol Thanks. Yes, it should ALL be upstream derivations but the hate campaign against AI generated PRs is so bad I do not do it & make it all local. The flake uses 'parts' so you can pull in just the part/s you want: very handy so you do not need the whole flake & can test before maybe importing/harvesting the nix code The readme is not up to date, sorry. As you can see from the number of commits, even with Claude Code doing the heavy lifting, it is a very long term project to make my .

  50. @Pol Thanks. Yes, it should ALL be upstream derivations but the hate campaign against AI generated PRs is so bad I do not do it & make it all local. The flake uses 'parts' so you can pull in just the part/s you want: very handy so you do not need the whole flake & can test before maybe importing/harvesting the nix code The readme is not up to date, sorry. As you can see from the number of commits, even with Claude Code doing the heavy lifting, it is a very long term project to make my #flake.

  51. @Pol Thanks. Yes, it should ALL be upstream derivations but the hate campaign against AI generated PRs is so bad I do not do it & make it all local. The flake uses 'parts' so you can pull in just the part/s you want: very handy so you do not need the whole flake & can test before maybe importing/harvesting the nix code The readme is not up to date, sorry. As you can see from the number of commits, even with Claude Code doing the heavy lifting, it is a very long term project to make my #flake.

  52. @Pol Thanks. Yes, it should ALL be upstream derivations but the hate campaign against AI generated PRs is so bad I do not do it & make it all local. The flake uses 'parts' so you can pull in just the part/s you want: very handy so you do not need the whole flake & can test before maybe importing/harvesting the nix code The readme is not up to date, sorry. As you can see from the number of commits, even with Claude Code doing the heavy lifting, it is a very long term project to make my #flake.

  53. Using a repo like codeberg and #git for managing a #flake for #nixos that applies for all multiple machines of a fleet each, having their own git branch, using the .#<machine_of_fleet> is really hard. Does anyone do this too? Why is it so hard? For example I have stopped using #checkout as a command because it makes no sense to me and leads to confusion, and use switch and restore. Also I have made a mental note not to refer to "main" in any operation other than the one master machine. Tips?

  54. Using a repo like codeberg and for managing a for that applies for all multiple machines of a fleet each, having their own git branch, using the .#<machine_of_fleet> is really hard. Does anyone do this too? Why is it so hard? For example I have stopped using as a command because it makes no sense to me and leads to confusion, and use switch and restore. Also I have made a mental note not to refer to "main" in any operation other than the one master machine. Tips?

  55. Using a repo like codeberg and #git for managing a #flake for #nixos that applies for all multiple machines of a fleet each, having their own git branch, using the .#<machine_of_fleet> is really hard. Does anyone do this too? Why is it so hard? For example I have stopped using #checkout as a command because it makes no sense to me and leads to confusion, and use switch and restore. Also I have made a mental note not to refer to "main" in any operation other than the one master machine. Tips?

  56. Using a repo like codeberg and #git for managing a #flake for #nixos that applies for all multiple machines of a fleet each, having their own git branch, using the .#<machine_of_fleet> is really hard. Does anyone do this too? Why is it so hard? For example I have stopped using #checkout as a command because it makes no sense to me and leads to confusion, and use switch and restore. Also I have made a mental note not to refer to "main" in any operation other than the one master machine. Tips?

  57. Using a repo like codeberg and #git for managing a #flake for #nixos that applies for all multiple machines of a fleet each, having their own git branch, using the .#<machine_of_fleet> is really hard. Does anyone do this too? Why is it so hard? For example I have stopped using #checkout as a command because it makes no sense to me and leads to confusion, and use switch and restore. Also I have made a mental note not to refer to "main" in any operation other than the one master machine. Tips?