!UUqahLbShAYkkrXmKs:matrix.org

DevOS

36 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
30 Nov 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)I'm struck by https://github.com/nix-community/home-manager/pull/246122:03:19
@blaggacao:matrix.orgDavid Arnold (blaggacao)maybe I can rally some support behind that PR from the DevOS side?22:03:47
@gtrunsec:matrix.org@gtrunsec:matrix.org I have no idea why I can not pass the vm-test-run of DevOS in qemu-guest host 22:36:49
@gtrunsec:matrix.org@gtrunsec:matrix.orgimage.png
Download image.png
22:36:54
1 Dec 2021
@gtrunsec:matrix.org@gtrunsec:matrix.org
In reply to @gtrunsec:matrix.org
I have no idea why I can not pass the vm-test-run of DevOS in qemu-guest host
Just a notice: using release-21.05 for your test-host when you are in qemu-guest
02:05:18
@blaggacao:matrix.orgDavid Arnold (blaggacao)
devos on  main [✘!+⇡] via ❄️  impure took 5s
❯ deploy --debug-logs .#ws.blaggacao@127.0.0.1:22 -s
🚀 ❓ [deploy] [DEBUG] Checking for flake support
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/blaggacao/src/github.com/blaggacao/devos' is dirty
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
[ws.blaggacao]
user = "blaggacao"
path = "/nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation"
uri = "ssh://blaggacao@127.0.0.1:22"
ssh_opts = []

🚀 ❓ [deploy] [DEBUG] Entering push_profil function ...
🚀 ❓ [deploy] [DEBUG] Built command: ShowDerivationCommand -> Command { std: "nix" "show-derivation" "/nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation", kill_on_drop: false }
🚀 ℹ️ [deploy] [INFO] Building profile `blaggacao` for node `ws`
🚀 ❓ [deploy] [DEBUG] Built command: BuildCommand -> Command { std: "nix" "build" "/nix/store/za0jsiqsrhx0x1154q08qq2bs90vs7jn-activatable-home-manager-generation.drv" "--no-link", kill_on_drop: false }
🚀 ℹ️ [deploy] [INFO] Copying profile `blaggacao` to node `ws`
🚀 ❓ [deploy] [DEBUG] Built command: CopyCommand -> Command { std: "nix" "copy" "--no-check-sigs" "--to" "ssh://blaggacao@127.0.0.1" "/nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation", kill_on_drop: false }
🚀 ❓ [deploy] [DEBUG] Entering deploy_profile function ...
🚀 ℹ️ [deploy] [INFO] Activating profile `blaggacao` for node `ws`
🚀 ❓ [deploy] [DEBUG] Built command: ActivateCommand -> /nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation/activate-rs --debug-logs activate '/nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation' '/nix/var/nix/profiles/per-user/blaggacao/blaggacao' --temp-path '/tmp' --confirm-timeout 30 --magic-rollback --auto-rollback
🚀 ❓ [deploy] [DEBUG] Built command: SshCommand -> Command { std: "ssh" "ssh://blaggacao@127.0.0.1:22", kill_on_drop: false }
🚀 ℹ️ [deploy] [INFO] Creating activation waiter
🚀 ❓ [deploy] [DEBUG] Built command: WaitCommand -> /nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation/activate-rs --debug-logs wait '/nix/store/q65li8mshd5w1iffhsr7p9jk1jnfgbjn-activatable-home-manager-generation' --temp-path '/tmp'
🚀 ❓ [deploy] [DEBUG] Built command: SshCommand -> Command { std: "ssh" "ssh://blaggacao@127.0.0.1:22", kill_on_drop: false }
⭐ ℹ️ [activate] [INFO] Activating profile
⭐ ❓ [activate] [DEBUG] Running activation script
Starting home manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating installPackages
Activating linkGeneration
Cleaning up orphan links from /home/blaggacao
Creating profile generation 20
nix profile remove --profile /nix/var/nix/profiles/per-user/blaggacao/home-manager /nix/store/b6s9h45qkll67xkgm8ghchy7agswzpnx-home-manager-generation
Creating home file links in /home/blaggacao
Activating onFilesChange
Activating reloadSystemd
⭐ ℹ️ [activate] [INFO] Activation succeeded!
⭐ ℹ️ [activate] [INFO] Magic rollback is enabled, setting up confirmation hook...
⭐ ❓ [activate] [DEBUG] Ensuring parent directory exists for canary file
⭐ ❓ [activate] [DEBUG] Creating canary file
⭐ ❓ [activate] [DEBUG] Creating notify watcher
⭐ ℹ️ [activate] [INFO] Waiting for confirmation event...
🚀 ❓ [deploy] [DEBUG] Wait command ended
🚀 ℹ️ [deploy] [INFO] Success activating, attempting to confirm activation
🚀 ❓ [deploy] [DEBUG] Entering confirm_profile function ...
🚀 ❓ [deploy] [DEBUG] Built command: SshCommand -> Command { std: "ssh" "ssh://blaggacao@127.0.0.1:22", kill_on_drop: false }
🚀 ❓ [deploy] [DEBUG] Built command: ConfirmCommand -> rm /tmp/deploy-rs-canary-q65li8mshd5w1iffhsr7p9jk1jnfgbjn
⭐ ❓ [activate] [DEBUG] Got worthy removal event, sending on channel
🚀 ℹ️ [deploy] [INFO] Deployment confirmed.
02:52:30
@blaggacao:matrix.orgDavid Arnold (blaggacao)yeah!02:52:37
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/blaggacao/devos02:53:49
@blaggacao:matrix.orgDavid Arnold (blaggacao) since password inputs do not work across the deploy-rs threading model, initially we need to give ourselves access to ourselves:
cat ~/.ssh/id_rsa >> ~/.ssh/authorized_keys
02:55:21
@blaggacao:matrix.orgDavid Arnold (blaggacao)There is a new CI in the making @ https://github.com/input-output-hk/cicero... I'm going to check it out in practice in the following days, but it's definitely a candidate to bring CI home into the local environment / control (and away from Github Actions).03:21:17
@blaggacao:matrix.orgDavid Arnold (blaggacao)... and hydra 🙏03:21:26
@blaggacao:matrix.orgDavid Arnold (blaggacao) treefmt work nicely in the pre-commit hook: https://github.com/blaggacao/devos/blob/af8493ffa0eb61671ce9fe383dec084b1436e995/devshell/devos/hooks/pre-commit.sh#L14 04:08:10
@blaggacao:matrix.orgDavid Arnold (blaggacao)^^ I think the docstring is wrong, though. treefmt is far more radical than that 😄04:09:05
@gtrunsec:matrix.org@gtrunsec:matrix.orgimage.png
Download image.png
04:19:04
@gtrunsec:matrix.org@gtrunsec:matrix.org
In reply to @blaggacao:matrix.org
There is a new CI in the making @ https://github.com/input-output-hk/cicero... I'm going to check it out in practice in the following days, but it's definitely a candidate to bring CI home into the local environment / control (and away from Github Actions).
I'm already on cicero.
04:19:50
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org
In reply to @blaggacao:matrix.org
Gytis Ivaskevicius: would you accept a dependency on nix-community/nixpkgs.lib in turn for a little bit f convenience and maintainability in fup?
Not sure how that would help? If we were to do some maybe we might as drop module system on it 🤔
09:45:17
@Sweenu:matrix.orgBruno I'm almost completely done, I just have one line provoking a infinite recursion error: services.resolved.enable = {config.networking.networkmanager.dns == "systemd-resolved";
Any idea what could cause that?
10:24:51
@Sweenu:matrix.orgBruno * I'm almost completely done, I just have one line provoking a infinite recursion error: services.resolved.enable = config.networking.networkmanager.dns == "systemd-resolved";
Any idea what could cause that?
10:25:08
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgchekc network manager module, it probably has some references to resolved10:34:14
@Sweenu:matrix.orgBrunoYeah I checked that, there's none 🤔10:36:50
@Sweenu:matrix.orgBruno * I'm almost completely done, I just have one line provoking an infinite recursion error: services.resolved.enable = config.networking.networkmanager.dns == "systemd-resolved";
Any idea what could cause that?
10:41:42
@Sweenu:matrix.orgBrunoOh it's the opposite 😅 resolved has a ref to networkmanager10:46:29
@teutat3s:pub.solar@teutat3s:pub.solar

Does somebody have an idea what's going on here:

❯ sudo nixos-rebuild build --flake ".#mymachine" --show-trace
warning: Git tree '/home/teutat3s/CodeRoom/git.b12f.io/pub-solar/os' is dirty
building the system configuration...
warning: Git tree '/home/teutat3s/CodeRoom/git.b12f.io/pub-solar/os' is dirty
error: getting status of '/nix/store/qcvnd2dsa5a3h4gq8x5x7hds6z85i4dw-source': No such file or directory

       … while evaluating anonymous lambda

       at «string»:10:13:

            9|     builtins.mapAttrs
           10|       (key: node:
             |             ^
           11|         let

       … from call site

       … while evaluating anonymous lambda

       at «string»:23:25:

           22|           inputs = builtins.mapAttrs
           23|             (inputName: inputSpec: allNodes.${resolveInput inputSpec})
             |                         ^
           24|             (node.inputs or {});

       … from call site

       … while evaluating the attribute 'lib.mkFlake'

       at /nix/store/d3vlpgh54ackhc03fdcn9pqh5q3cgkcp-source/flake.nix:31:7:

           30|
           31|       lib = flake-utils.lib // {
             |       ^
           32|         inherit mkFlake exportModules exportOverlays exportPackages systemFlake modulesFromList;

       … while evaluating anonymous lambda

       at /nix/store/51mynq216xnq2xi8nkfgxfvrzngny12z-source/src/mkFlake/fup-adapter.nix:4:1:

            3|
            4| {
             | ^
            5|   # evaluated digga configuration

       … from call site

       at /nix/store/51mynq216xnq2xi8nkfgxfvrzngny12z-source/src/mkFlake/default.nix:21:11:

           20|
           21|   flake = fupAdapter' {
             |           ^
           22|     inherit (evaled) config;

       … while evaluating the attribute 'flake'

       at /nix/store/51mynq216xnq2xi8nkfgxfvrzngny12z-source/src/mkFlake/default.nix:21:3:

           20|
           21|   flake = fupAdapter' {
             |   ^
           22|     inherit (evaled) config;

       … while evaluating '__functor'

       at /nix/store/51mynq216xnq2xi8nkfgxfvrzngny12z-source/flake.nix:79:26:

           78|         {
           79|           __functor = _: args: (mkFlake' args).flake;
             |                          ^
           80|           options = args: (mkFlake' args).options;

       … from call site

       at /nix/store/hjla3dlwwq0xwvbgi1fq4jqvjjn9ljns-source/flake.nix:61:5:

           60|     } @ inputs:
           61|     digga.lib.mkFlake
             |     ^
           62|       {

       … while evaluating 'outputs'

       at /nix/store/hjla3dlwwq0xwvbgi1fq4jqvjjn9ljns-source/flake.nix:48:5:

           47|   outputs =
           48|     { self
             |     ^
           49|     , digga

       … from call site

       at «string»:45:21:

           44|
           45|           outputs = flake.outputs (inputs // { self = result; });
             |                     ^
           46|

       … while evaluating anonymous lambda

       at «string»:10:13:

            9|     builtins.mapAttrs
           10|       (key: node:
             |             ^
           11|         let

       … from call site

       … while evaluating anonymous lambda

       at «string»:2:23:

            1|
            2| lockFileStr: rootSrc: rootSubdir:
             |                       ^
            3|

       … from call site
11:16:35
@teutat3s:pub.solar@teutat3s:pub.solar Maybe there's a way to force-recreate that -source? nix develop shows the same error 11:17:27
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org did you git add everything? 11:37:48
@teutat3s:pub.solar@teutat3s:pub.solar Gytis Ivaskevicius: Yeah 11:40:53
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.org whats /nix/store/qcvnd2dsa5a3h4gq8x5x7hds6z85i4dw-source supposed to be? 11:42:45
@b12f:pub.solarb12fisn't it the source code for the nixos config? afaik nix copies the current repo to the store12:24:30
@teutat3s:pub.solar@teutat3s:pub.solaryeah I think so too12:47:58
@blaggacao:matrix.orgDavid Arnold (blaggacao) It looks like it's fup's source. You'd have to fly trhough some nix commands, potentially nix store to figure out how to "heal" that broken state (it's likely broken, since I can't remember that we use that builtin which supposes a pre-existing store path existed). 13:25:30

Show newer messages


Back to Room ListRoom Version: 6