!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

863 Members
167 Servers

Load older messages


SenderMessageTime
31 Oct 2023
@mewp:nurupo.pl@mewp:nurupo.pl I don't entirely get the last point. pkgs.callPackage ./pkgs/app/default.nix {} will probably do what you want for packages, import ./modules/app/default.nix will do that for modules 08:56:36
@mewp:nurupo.pl@mewp:nurupo.pl as in, outputs.nixosModules.app = import ./modules/app/default.nix; 08:57:07
@virtu:matrix.im@virtu:matrix.im thanks mewp. can I bother you to share one or two of those repos with flakes that package themselves in the same repo? that would really help a lot. 09:12:52
@mewp:nurupo.pl@mewp:nurupo.plhttps://gitlab.com/eobuwie-foss/imaginator/ ← that's one of mine09:14:07
@mewp:nurupo.pl@mewp:nurupo.plmost of my other repos are unfortunately private, but I'll try to find a public example09:14:51
@mewp:nurupo.pl@mewp:nurupo.ploh, right, https://github.com/helix-editor/helix09:15:43
@mewp:nurupo.pl@mewp:nurupo.plbut also see https://github.com/NixOS/flake-registry/blob/master/flake-registry.json09:15:50
@virtu:matrix.im@virtu:matrix.im I'll try to figure out a theme from those that I can apply to my problem. thanks, mewp! 09:18:29
@mewp:nurupo.pl@mewp:nurupo.pldon't hesitate to ask more09:18:44
@fractivore:cyberia.club@fractivore:cyberia.club joined the room.14:29:10
1 Nov 2023
@kjeremy:matrix.orgkjeremy joined the room.14:06:45
2 Nov 2023
@redviking:matrix.orgredviking 🐧 joined the room.01:28:42
@npc_projection:matrix.orgnpc_projection joined the room.05:22:21
@virtu:matrix.im@virtu:matrix.im

I finally got around to adding the nixosModules target to my flake. Now I wonder how to correctly enable the service defined in the module in my configuration.nix. Before, I did import modules/app and services.app.enable = true;.

To use the flake for my app, I added it as input to the flake for my host configuration, and passed it as input to my configuration.nix. That got me the error error: The option services.p2p-crawler' does not exist.. After going through some examples, I tried adding my_app.nixosModules.my_appto the modules in my nixosConfigurations (similar to what I have for home manager), but that landed me aerror: attribute 'p2p-crawler' missing`. Did I do something wrong in my app's flake, or am I using the flake wrong?

10:01:53
@virtu:matrix.im@virtu:matrix.im *

I finally got around to adding the nixosModules target to my flake. Now I wonder how to correctly enable the service defined in the module in my configuration.nix. Before, I did import modules/app and services.app.enable = true;.

To use the flake for my app, I added it as input to the flake for my host configuration, and passed it as input to my configuration.nix. That got me the error error: The option services.p2p-crawler' does not exist.. After going through some examples, I tried adding my-app.nixosModules.my-appto the modules in mynixosConfigurations (similar to what I have for home manager), but that landed me aerror: attribute 'p2p-crawler' missing`. Did I do something wrong in my app's flake, or am I using the flake wrong?

10:02:47
@virtu:matrix.im@virtu:matrix.im *

I finally got around to adding the nixosModules target to my flake. Now I wonder how to correctly enable the service defined in the module in my configuration.nix. Before, I did import modules/app and services.app.enable = true;.

To use the flake for my app, I added it as input to the flake for my host configuration, and passed it as input to my configuration.nix. That got me the error error: The option services.p2p-crawler' does not exist.. After going through some examples, I tried adding my-app.nixosModules.my-app to the modules in mynixosConfigurations (similar to what I have for home manager), but that landed me aerror: attribute 'p2p-crawler' missing`. Did I do something wrong in my app's flake, or am I using the flake wrong?

10:03:10
@virtu:matrix.im@virtu:matrix.im *

I finally got around to adding the nixosModules target to my flake. Now I wonder how to correctly enable the service defined in the module in my configuration.nix. Before, I did import modules/app and services.app.enable = true;.

To use the flake for my app, I added it as input to the flake for my host configuration, and passed it as input to my configuration.nix. That got me the error error: The option services.p2p-crawler' does not exist.. After going through some examples, I tried adding my-app.nixosModules.my-app to the modules in mynixosConfigurations (similar to what I have for home manager), but that landed me aerror: attribute 'p2p-crawler' missing\. Did I do something wrong in my app's flake, or am I using the flake wrong?

10:03:30
@virtu:matrix.im@virtu:matrix.imRedacted or Malformed Event11:02:33
@crtified:crtified.meCRTified virtu: There is no application attribute, and what you're seeing is the correct output. The systems are generated by flake-utils 11:04:37
@crtified:crtified.meCRTified * virtu: There is no application attribute, and what you're seeing is the correct (well, more like expected) output. The systems are generated by flake-utils 11:05:04
@crtified:crtified.meCRTifiedBut nixosModules shouldn't be architecture-specific11:05:54
@crtified:crtified.meCRTified Maybe have a look at https://ayats.org/blog/no-flake-utils/#when-things-go-wrong for why you might not need flake-utils (especially if you want to define a nixosModule) 11:07:01
@virtu:matrix.im@virtu:matrix.im CRTified: yeah, I just realized I had the nixosModules in the wrong place. I figured out a way to fix it in the mean time, but thanks for clarifying and providing some background information. I didn't use flake-utils in my most recent version, but I updated my flake's inputs this morning, switched to out-of-tree poetry2nix because it is no longer in unstable, and started from scratch with a flake template from poetry2nix (which uses flake-utils). I'll do some reading and try to figure out the best approach. thanks! 11:14:03
@eva:blahaj.nyceva changed their profile picture.20:09:29
@adelta:matrix.org@adelta:matrix.org joined the room.22:43:56
3 Nov 2023
@fizihcyst:matrix.org@fizihcyst:matrix.org joined the room.11:50:24
@mib:kanp.aimib 🥐 changed their profile picture.13:53:21
4 Nov 2023
@adelta:matrix.org@adelta:matrix.org removed their display name Adelta.10:32:06
@adelta:matrix.org@adelta:matrix.org left the room.10:32:08
@chris01:nitro.chat@chris01:nitro.chat removed their display name Chris.11:53:37

Show newer messages


Back to Room ListRoom Version: 6