!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

120 Members
28 Servers

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


SenderMessageTime
30 Sep 2022
@Minijackson:matrix.orgMinijackson so, musnix is another repository containing Nix files, which you can track using inputs, this allows your configuration to use a fixed version of that repo, while allowing manual upgrades 21:11:04
@Minijackson:matrix.orgMinijackson you can add this input by adding near the top inputs.musnix.url = "github:musnix/musnix"; 21:11:28
@Minijackson:matrix.orgMinijackson the usefulness of the musnix flakes itself comes from its outputs, which you can look at by doing nix flake show github:musnix/musnix 21:12:15
@Minijackson:matrix.orgMinijackson

which gives:

github:musnix/musnix/6eb5c1714fbb7622b7270be78243365f9c55c9cb
├───nixosModule: NixOS module
└───nixosModules
    └───musnix: NixOS module
21:12:36
@Minijackson:matrix.orgMinijackson * you can add this input by adding near the top inputs.musnix.url = "github:musnix/musnix";, and adding musnix to the arguments of the outputs function. 21:13:17
@Minijackson:matrix.orgMinijackson so you're interested in either musnix.nixosModule and musnix.nixosModules.musnix 21:13:30
@Minijackson:matrix.orgMinijackson (nixosModule was deprecated for nixosModules.default, so I suggest using the second one) 21:13:53
@Minijackson:matrix.orgMinijackson so, in your nixosSystem call, you can add in your modules / imports the expression musnix.nixosModules.musnix 21:14:27
@Minijackson:matrix.orgMinijackson
{
  description = "...";

  inputs.nixpkgs.url = "...";
  inputs.musnix.url = "github:musnix/musnix";

  outputs = { self, nixpkgs, musnix }: {
    nixosConfigurations."myConfig" = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";

      modules = [
        musnix.nixosModules.musnix
        # ...
      ];
    };
  };
}
21:15:59
@alejandrosame:matrix.org@alejandrosame:matrix.org Minijackson: Thank you very much for detailing the mechanisms! I'll try this tomorrow again and see what knowledge gaps I still have :) 21:19:52
@Minijackson:matrix.orgMinijacksonI agree, we're missing a lot of flakes documentation in the NixOS/nixpkgs manual21:20:27
@Minijackson:matrix.orgMinijacksonor even an in-depth tutorial21:20:33
@Minijackson:matrix.orgMinijackson(well this is a new/experimental feature)21:20:51
1 Oct 2022
@greaka:greaka.degreaka left the room.06:18:48
@alejandrosame:matrix.org@alejandrosame:matrix.org Turns out I wasn't that far off. It seems I simply was confused by not seeing any update on max-user-freq values. 13:45:26
5 Oct 2022
@rosariopulella:matrix.orgRosuavio joined the room.19:04:32
6 Oct 2022
@seapat:matrix.org@seapat:matrix.org joined the room.18:53:53
15 Oct 2022
@heartman:matrix.orgThomas Heartman (he/him) joined the room.17:07:55

Show newer messages


Back to Room ListRoom Version: 9