!dGrjXvKnCwVLevgmzo:matrix.org

Stockholm NixOS meetup group

49 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
25 Apr 2024
@maedas:matrix.orgmaedas *

Thanks for yesterday! I wanted to share my template for making modules (WIP), feedback and tips for improvements are appericiated!


let
  name = baseNameOf ./.;
  cfg = lib.getAttr name config.namespace;
in lib.setAttr
  {
    imports = [
    ];

    config = {
    };
  }
  "options" (lib.setAttr {} "namespace" (lib.setAttr {} name (with lib; {
    enable = mkEnableOption (name + " module");
  })))
10:31:27
@maedas:matrix.orgmaedas *

Thanks for yesterday! I wanted to share my template for making modules (WIP), feedback and tips for improvements are appericiated!

{ config, lib, pkgs, ... }:

let
  name = baseNameOf ./.;
  cfg = lib.getAttr name config.namespace;
in lib.setAttr
  {
    imports = [
    ];

    config = {
    };
  }
  "options" (lib.setAttr {} "namespace" (lib.setAttr {} name (with lib; {
    enable = mkEnableOption (name + " module");
  })))
```
10:31:50
@maedas:matrix.orgmaedas *

Thanks for yesterday! I wanted to share my template for making modules (WIP), feedback and tips for improvements are appericiated!

{ config, lib, pkgs, ... }:

let
  name = baseNameOf ./.;
  cfg = lib.getAttr name config.namespace;
in lib.setAttr
  {
    imports = [
    ];

    config = {
    };
  }
  "options" (lib.setAttr {} "namespace" (lib.setAttr {} name (with lib; {
    enable = mkEnableOption (name + " module");
  })))
10:32:09
@lillecarl:matrix.orglillecarlIt looks incomplete, no args decl and stuff. Post on gist, and open your Nix repo! 11:23:28
@lillecarl:matrix.orglillecarlYeah as always it was a pleasure to meet, and thanks playgrounders for hosting. Definitely an uplift in atmosphere although the participation was a bit lower. https://github.com/lillecarl/nixos here's my Nix mess if anyone is curious! 11:28:48
@maedas:matrix.orgmaedas
In reply to @lillecarl:matrix.org
Yeah as always it was a pleasure to meet, and thanks playgrounders for hosting. Definitely an uplift in atmosphere although the participation was a bit lower.

https://github.com/lillecarl/nixos here's my Nix mess if anyone is curious!
thanks, I was actually looking for it!
11:47:10
@maedas:matrix.orgmaedas LilleCarl (Salsa9): not sure what you mean, it's literally supposed to be a template base to add stuff like that 11:50:57
@lillecarl:matrix.orglillecarlI was looking on my phone, element cut out part of the text11:51:14
@lillecarl:matrix.orglillecarlWhat's the purpose of the setattr and getattr for namespace? Looks a bit overcomplicated for my eyes11:54:36
@lillecarl:matrix.orglillecarl

I've got some questions for everyone:

  • What's your biggest painpoints using NixOS &/ home-manager today?
  • Updating packages I've packaged myself (Which update solution are you guys using? :) )

Mine's still packaging things that doesn't quite fit the "norm". (https://github.com/dawsers/hyprscroller comes to mind right now).

12:09:57
@lillecarl:matrix.orglillecarl *

I've got some questions for everyone:

  • What's your biggest painpoints using NixOS &/ home-manager today?
  • Updating packages I've packaged myself (Which update solution are you guys using? :))

Mine's still packaging things that doesn't quite fit the "norm". (https://github.com/dawsers/hyprscroller comes to mind right now).

12:09:57

Show newer messages


Back to Room ListRoom Version: 10