24 May 2025 |
| kaczus joined the room. | 07:26:08 |
| sss joined the room. | 12:43:39 |
| ordnungswidrig joined the room. | 13:07:46 |
| @maka_77x:matrix.org left the room. | 17:04:57 |
25 May 2025 |
| @yuri:nekover.se left the room. | 18:33:29 |
26 May 2025 |
| jsw joined the room. | 07:41:04 |
| raul joined the room. | 09:05:08 |
| The Worm 🏳️🌈 (he/they) changed their display name from This LEGO® Worm™ is licensed under the terms of the he/him or they/them pronouns, at your choice to LEGO® Worm™ (Asbestos Flavored!). | 13:12:34 |
gotha | hi, I am trying to deploy custom nixos image is created with nixos-generators for digitalocean . the machine boots, but /etc/nixos/configuration.nix looks like this
{ config, lib, pkgs, modulesPath, ... }:
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
(modulesPath + "/virtualisation/digital-ocean-config.nix")
];
even if I add environment.systemPackages = with pkgs; [ cowsay ]; and rebuild, it doesn't seem to install the required package. Any idea what I should look into?
| 17:43:10 |
gotha | * hi, I am trying to deploy custom nixos image that is created with nixos-generators for digitalocean . the machine boots, /etc/nixos/configuration.nix looks like this by default:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
(modulesPath + "/virtualisation/digital-ocean-config.nix")
];
even if I add
environment.systemPackages = with pkgs; [ cowsay ]; and rebuild, it doesn't seem to install the required package. Any idea what I should look into?
| 17:44:00 |
alex | You’re modifying /etc/configuration.nix on the running machine and then doing nixos rebuild switch ? | 18:24:48 |
gotha | yes, exactly | 18:44:42 |
27 May 2025 |
| jsw left the room. | 07:10:47 |
| @irenes:matrix.org left the room. | 08:59:53 |
| Lorenz joined the room. | 11:39:28 |
| The Worm 🏳️🌈 (he/they) changed their display name from LEGO® Worm™ (Asbestos Flavored!) to LEGO® Worm™ (Now Only 1 krad!). | 14:42:36 |
| @unlimitedsola:matrix.org left the room. | 15:45:38 |
| txrx joined the room. | 19:35:54 |
txrx | If I have a flake that specifies more than one system, and I want to share a string (eg ssh key, ip address, etc) between configs for multiple systems, is the best thing to create a shared module with something like options.foo = { sharedString = lib.mkOption { ... }; }; , and then refer to config.foo.sharedString ? I keep second guessing this because I'm specifying what is in my case a constant as a configurable option. | 19:43:06 |
kongrooparadox | an option is useful if you are going to override the value when you call the module for a shared variable, here is what I do with my authorized ssh keys for example.
# ssh.nix
{
keys = [ "pubKey1" "pubKey2"];
}
And you import the keys in your config :
users.users.root.openssh.authorizedKeys.keys = (import ./relative-path/to/ssh.nix).keys;
| 20:56:10 |
kongrooparadox | * an option is useful if you are going to override the value when you call the module for a shared variable, here is what I do with my authorized ssh keys for example.
# ssh.nix
{
keys = [ "pubKey1" "pubKey2" ];
}
And you import the keys in your config :
users.users.root.openssh.authorizedKeys.keys = (import ./relative-path/to/ssh.nix).keys;
| 20:57:42 |
28 May 2025 |
| Sylonin joined the room. | 03:02:01 |
29 May 2025 |
| Adnan Zaman changed their profile picture. | 12:29:23 |
| Adnan Zaman changed their profile picture. | 12:33:14 |
| raul changed their display name from razterer to raul. | 21:19:00 |
30 May 2025 |
| . changed their display name from adeci to .. | 00:39:16 |
| . changed their profile picture. | 00:39:51 |
| George joined the room. | 12:14:32 |
| DerivationDingus set a profile picture. | 19:53:25 |
| DerivationDingus changed their profile picture. | 19:54:41 |