| 23 Jan 2024 |
dtracy | I am trying to pass the home-manager nixosModule onto a colmena deployed node using the colmena.meta.specialArgs.inputs parameter and setting it equal to the inputs, as described here: https://discourse.nixos.org/t/colmena-how-to-push-a-flake-input-into-the-individual-nodes/36332/2
I keep getting an error during deployment error: The option inputs does not exist. Definition values: ...
I really would love to use home-manager with colmena to deploy all of my machines configurations.
You can see how I set this up in the flake.nix and users/testUser.nix files: https://github.com/tracyde/nixos-config
I would also welcome feedback on how I am starting to configure things, new to the nix ecosystem.
| 22:38:14 |
| @dtrace:matrix.org removed their display name Derek Tracy. | 22:39:09 |
| @dtrace:matrix.org left the room. | 22:39:09 |
dtracy | dmoonfire: I would love your input as I got inspiration to try this from your previous post, how does what I have differ from what you have gotten to work? | 22:42:39 |
| 24 Jan 2024 |
dmoonfire | I use `inputs @ { nixpkgs, ... }` a lot. That means inputs has everything plus they are destructured into individual inputs with the {}. | 00:53:48 |
dmoonfire | You can also use { ... } @ bob if you prefer the @ at the end or want to use something other than "inputs" | 00:55:07 |
dmoonfire | You can also use specialArgs= { home-manager = home-manage; } if you don't want to use the @ either. | 00:57:17 |
dmoonfire | Nix, like Perl, has many ways to say the same thing. 😋 | 00:57:37 |
| sbc64 joined the room. | 19:07:43 |
| 27 Jan 2024 |
| @lehmanator:gnulinux.club removed their profile picture. | 16:55:31 |
| @lehmanator:gnulinux.club removed their display name Sam Lehman. | 17:02:45 |
| @lehmanator:gnulinux.club left the room. | 17:05:47 |
| 29 Jan 2024 |
| Sam Lehman joined the room. | 11:00:30 |
| Sam Lehman set a profile picture. | 11:06:02 |
| 31 Jan 2024 |
| @federicodschonborn:matrix.org changed their profile picture. | 03:36:35 |
| @federicodschonborn:matrix.org changed their profile picture. | 06:22:11 |
| guest joined the room. | 11:04:54 |
@mariosangiorgio:matrix.org | dtracy: did you manage to get home-manager work with Colmena? Is there any config I can have a look at? | 16:57:43 |
@mariosangiorgio:matrix.org | I think I found my issue. To bring home-manager in scope I had to add inputs.home-manager.nixosModules.default to my import, similar to what you did to bring in sops.
Now everything builds fine, time to actually write some home manager configuration and see if it works | 22:37:30 |
| 3 Feb 2024 |
| @networkexception:chat.upi.li changed their profile picture. | 11:52:08 |
| 8 Feb 2024 |
| 98765abc joined the room. | 11:29:20 |
| pgibson joined the room. | 23:40:05 |
| 9 Feb 2024 |
pgibson | Hi, I'm a Nix newb and I'm trying to deploy a server to a DigitalOcean droplet with Colmena. I've got NixOS running on the droplet via a custom image. Do I need to reference/import "virtualisation/digital-ocean-image.nix" somewhere in my flake.nix? | 00:31:19 |
pgibson | Oh looks like this works imports = [ (nixpkgs + "/nixos/modules/virtualisation/digital-ocean-config.nix") ]; | 01:18:39 |
pgibson | I spent so long trying different combinations before asking, then found the solution about 10 minutes later 🤦 | 01:19:21 |
treed | FWIW, for something similar I have imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; | 01:20:07 |
treed | where modulesPath is an input to that file along with like config lib pkgs | 01:20:25 |
treed | I forget where it actually comes from, but it was the solution I found at some point | 01:20:39 |
treed | I guess it'd only work if you're importing the file that contains that line though? | 01:20:56 |
pgibson | Where does modulesPath come from? | 01:21:09 |