| 28 Mar 2022 |
putchar | In reply to @pinage404:matrix.org je l'ai killé et relancé ça bougeait plus, je pense que c'était une erreur si tu as un overlay c'est ptet ça qui provoque bcp de build ? | 09:02:43 |
putchar | et du coup tu as pu build + deploy ? | 09:02:52 |
| 29 Mar 2022 |
pinage404 | ah ! j'ai plein d'overlay (la plupart presque pas utilisés)
mais j'ai surtout celui ci https://gitlab.com/pinage404/dotfiles/-/blob/main/nixos/nix/overlays/overlays_from_flake_lock.nix#L7 et https://gitlab.com/pinage404/dotfiles/-/blob/main/nixos/nix/overlays/packages_overlay.nix pour essayer d'utiliser la version flakifiée lorsque je fais des commandes sans flake (home-manager switch, nixos-rebuild switch)
| 19:10:13 |
pinage404 | In reply to @putch4r:matrix.org et du coup tu as pu build + deploy ? nope
deploy
🚀 ℹ️ [deploy] [INFO] Running checks for flake in .
warning: Git tree '/home/pinage404/Project/dotfiles_pi3bb' is dirty
warning: unknown flake output 'homeConfigurations'
trace: warning: Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`
warning: unknown flake output 'deploy'
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/pinage404/Project/dotfiles_pi3bb' is dirty
trace: warning: Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
["pi3bb.local".system]
user = "root"
ssh_user = "pi"
path = "/nix/store/0pv9ml9dk1r5izchd4yw6d467dbpi0nq-activatable-nixos-system-pi3bb-21.11.20220312.0f85665"
hostname = "pi3bb.local"
ssh_opts = ["-t"]
[pinage404-sabre15-nixos.system]
user = "root"
ssh_user = "pinage404"
path = "/nix/store/g80mpzvd4k2c62g5jl37aj1xqaq0ad2q-activatable-nixos-system-pinage404-sabre15-nixos-21.11.20220312.0f85665"
hostname = "pinage404-sabre15-nixos"
ssh_opts = ["-t"]
[pinage404-sabre15-nixos.home-manager]
user = "pinage404"
ssh_user = "pinage404"
path = "/nix/store/cgwyf8yv5ki0cv7skx6bjlqk72cqrdv0-activatable-home-manager-generation"
hostname = "pinage404-sabre15-nixos"
ssh_opts = []
🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `pi3bb.local`
🚀 ℹ️ [deploy] [INFO] Copying profile `system` to node `pi3bb.local`
Pseudo-terminal will not be allocated because stdin is not a terminal.
copying 22 pathserror: cannot add path '/nix/store/w9664llblqn5byq2kgagibcbq1ry7jxx-deploy-rs-0.1.0' because it lacks a valid signature
error: writing to file: Broken pipe
🚀 ❌ [deploy] [ERROR] Failed to push profile: Nix copy command resulted in a bad exit code: Some(1)
| 20:11:37 |
pinage404 | ça fonctionne \o/ | 22:28:53 |
| 30 Mar 2022 |
putchar | In reply to @pinage404:matrix.org
nope
deploy
🚀 ℹ️ [deploy] [INFO] Running checks for flake in .
warning: Git tree '/home/pinage404/Project/dotfiles_pi3bb' is dirty
warning: unknown flake output 'homeConfigurations'
trace: warning: Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`
warning: unknown flake output 'deploy'
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/pinage404/Project/dotfiles_pi3bb' is dirty
trace: warning: Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
["pi3bb.local".system]
user = "root"
ssh_user = "pi"
path = "/nix/store/0pv9ml9dk1r5izchd4yw6d467dbpi0nq-activatable-nixos-system-pi3bb-21.11.20220312.0f85665"
hostname = "pi3bb.local"
ssh_opts = ["-t"]
[pinage404-sabre15-nixos.system]
user = "root"
ssh_user = "pinage404"
path = "/nix/store/g80mpzvd4k2c62g5jl37aj1xqaq0ad2q-activatable-nixos-system-pinage404-sabre15-nixos-21.11.20220312.0f85665"
hostname = "pinage404-sabre15-nixos"
ssh_opts = ["-t"]
[pinage404-sabre15-nixos.home-manager]
user = "pinage404"
ssh_user = "pinage404"
path = "/nix/store/cgwyf8yv5ki0cv7skx6bjlqk72cqrdv0-activatable-home-manager-generation"
hostname = "pinage404-sabre15-nixos"
ssh_opts = []
🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `pi3bb.local`
🚀 ℹ️ [deploy] [INFO] Copying profile `system` to node `pi3bb.local`
Pseudo-terminal will not be allocated because stdin is not a terminal.
copying 22 pathserror: cannot add path '/nix/store/w9664llblqn5byq2kgagibcbq1ry7jxx-deploy-rs-0.1.0' because it lacks a valid signature
error: writing to file: Broken pipe
🚀 ❌ [deploy] [ERROR] Failed to push profile: Nix copy command resulted in a bad exit code: Some(1)
J'allais dire que c'est pcke ton user n'est pas dans la liste des trusted user | 03:50:36 |
putchar | In reply to @pinage404:matrix.org
nope
deploy
🚀 ℹ️ [deploy] [INFO] Running checks for flake in .
warning: Git tree '/home/pinage404/Project/dotfiles_pi3bb' is dirty
warning: unknown flake output 'homeConfigurations'
trace: warning: Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`
warning: unknown flake output 'deploy'
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/pinage404/Project/dotfiles_pi3bb' is dirty
trace: warning: Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
["pi3bb.local".system]
user = "root"
ssh_user = "pi"
path = "/nix/store/0pv9ml9dk1r5izchd4yw6d467dbpi0nq-activatable-nixos-system-pi3bb-21.11.20220312.0f85665"
hostname = "pi3bb.local"
ssh_opts = ["-t"]
[pinage404-sabre15-nixos.system]
user = "root"
ssh_user = "pinage404"
path = "/nix/store/g80mpzvd4k2c62g5jl37aj1xqaq0ad2q-activatable-nixos-system-pinage404-sabre15-nixos-21.11.20220312.0f85665"
hostname = "pinage404-sabre15-nixos"
ssh_opts = ["-t"]
[pinage404-sabre15-nixos.home-manager]
user = "pinage404"
ssh_user = "pinage404"
path = "/nix/store/cgwyf8yv5ki0cv7skx6bjlqk72cqrdv0-activatable-home-manager-generation"
hostname = "pinage404-sabre15-nixos"
ssh_opts = []
🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `pi3bb.local`
🚀 ℹ️ [deploy] [INFO] Copying profile `system` to node `pi3bb.local`
Pseudo-terminal will not be allocated because stdin is not a terminal.
copying 22 pathserror: cannot add path '/nix/store/w9664llblqn5byq2kgagibcbq1ry7jxx-deploy-rs-0.1.0' because it lacks a valid signature
error: writing to file: Broken pipe
🚀 ❌ [deploy] [ERROR] Failed to push profile: Nix copy command resulted in a bad exit code: Some(1)
* J'allais dire que c'est pcke le user qui déploie n'est pas dans la liste des trusted user sur la machine de destination | 11:38:28 |
| 31 Mar 2022 |
Smith | J'ai vu que NixOS hardware allait inclure le Pinebook Pro. J'aimerais bien utiliser le mien comme cobaye pour tester mais je sais pas trop comment m'y prendre. Une piste ? | 16:59:55 |
putchar | In reply to @smith:livegen.net J'ai vu que NixOS hardware allait inclure le Pinebook Pro. J'aimerais bien utiliser le mien comme cobaye pour tester mais je sais pas trop comment m'y prendre. Une piste ? hello si tu fais du flake c'est très facile à mettre en place | 18:56:21 |
putchar | sinon il faut ajouter le channel nixos-hardware sur ton user root et faire les associations dans ta conf | 18:56:54 |
putchar | n'hesite pas a me ping si tu veux le mettre en place | 18:57:38 |
putchar | * sinon il faut ajouter le channel nixos-hardware sur ton user root (tu peux target la branche qui est dans la mr avant que celle ci soit merge sur master de nixos-hardware) et faire les associations dans ta conf | 19:00:52 |
Smith | En réponse à @putch4r:matrix.org sinon il faut ajouter le channel nixos-hardware sur ton user root (tu peux target la branche qui est dans la mr avant que celle ci soit merge sur master de nixos-hardware) et faire les associations dans ta conf Ok je vois mais c’etait plutot pour faire l’install initial. Je peux boot sur l’image standard aarch64 ou bien je dois build moi meme? | 19:04:12 |
putchar | In reply to @smith:livegen.net Ok je vois mais c’etait plutot pour faire l’install initial. Je peux boot sur l’image standard aarch64 ou bien je dois build moi meme? tu as deja nixos d'installé sur ton pinebook pro ou pas encore ? | 19:04:40 |
putchar | pcke au final nixos-hardware ce sont juste des configuration que tu pourrais ajouter toi même à la main finalement | 19:05:10 |
putchar | https://github.com/NixOS/nixos-hardware/blob/master/framework/default.nix par exemple | 19:05:44 |
Smith | En réponse à @putch4r:matrix.org tu as deja nixos d'installé sur ton pinebook pro ou pas encore ? Non justement pas encore. Je viens de voir que c’etait possible. Je me suis renseigné il faut deja que j’essaye de mettre tow-boot apparement? | 21:07:52 |
putchar | In reply to @smith:livegen.net Ok je vois mais c’etait plutot pour faire l’install initial. Je peux boot sur l’image standard aarch64 ou bien je dois build moi meme? En fait le channel nixos hardware a pas besoin d être ajouté pendant l'installation de nixos. Tu peux le faire après sans aucun soucis (désolé j'avais mal lu ton message) | 21:08:36 |
| 1 Apr 2022 |
putchar | https://nixos.wiki/wiki/NixOS_on_ARM/PINE64_Pinebook_Pro j'avoue que c'est pas anodin comme config | 08:23:23 |
| 3 Apr 2022 |
Sweenu | Hello ! Je suis en train de migrer un playbook ansible qui déploie des containers vers un host nixos avec le module virtualisation.oci-containers. Je me demandais, c'est quoi le mieux pour remplacer le templating que j'avais avec Ansible (jinja). Si je mets mes fichiers de config inline alors c'est simple mais si je préfères les avoirs à part et faire readFile alors c'est quoi le mieux pour injecter des variables ? | 14:59:01 |
raitobezarius | le plus simple c'est de faire du Nix directement | 14:59:32 |
raitobezarius | ah tu veux readFile et changer dedans | 14:59:48 |
raitobezarius | substituteInPlace / replace en Nix devrait pouvoir faire l'affaire | 15:00:04 |
raitobezarius | mais c'est très basique | 15:00:15 |
raitobezarius | si tu veux reproduire le comportement de templating, il faut faire une dérivation et les calculer avec un outil de templating | 15:00:31 |
symphorien | c'est des fonctions bash: il faut faire une dérivation qui appelle substitute et installer le fichier corrigé dans $out | 15:00:39 |
raitobezarius | oui, j'entendais substituteInPlace pour une dérivation et une fonction de la lib pour replacer les strings avec des machins comme @xxx@ | 15:01:05 |
symphorien | je ne crois pas qu'il y a de templating pour des valeurs nix sans passer au niveau d'une dérivation avec pkgs.runCommand par exemple | 15:01:45 |
raitobezarius | rien t'empêche d'utiliser https://teu5us.github.io/nix-lib.html#builtins.replacestrings pour implémenter une substitution simple en tout cas, mais pas un vrai langage de templating | 15:02:22 |
raitobezarius | si tu veux mettre tes fichiers à part, une autre solution consiste à faire des .nix qui prennent des arguments et à les appeler depuis tes fichiers principaux | 15:02:52 |