Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer stable nixpkgs and home-manager #532

Merged
merged 28 commits into from
Mar 31, 2024
Merged

Prefer stable nixpkgs and home-manager #532

merged 28 commits into from
Mar 31, 2024

Conversation

kachick
Copy link
Owner

@kachick kachick commented Mar 31, 2024

Resolves #403
Closes #498
Closes #530

This comment was marked as outdated.

This comment was marked as outdated.

-e option required as these handlings, cannot use default

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@@ -5,7 +5,8 @@
# - https://discourse.nixos.org/t/differences-between-nix-channels/13998
# How to update the revision
# - `nix flake update --commit-lock-file` # https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake-update.html
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointing to home-manager 23.11 is recommended...

trace: warning: You are using

  Home Manager version 24.05 and
  Nixpkgs version 23.11.

Using mismatched versions is likely to cause errors and unexpected
behavior. It is therefore highly recommended to use a release of Home
Manager that corresponds with your chosen release of Nixpkgs.

If you insist then you can disable this warning by adding

  home.enableNixpkgsReleaseCheck = false;

to your configuration.

nix-community/home-manager@release-23.11...master

# Enable custom or temporary config without `home-manager switch`
includes = [
"${sshDir}/config.local"
];

# https://www.clear-code.com/blog/2023/4/3/recommended-ssh-config.html
# https://gitlab.com/clear-code/ssh.d/-/blob/main/global.conf?ref_type=heads
# @TODO: Update AddKeysToAgent since release-24.05. See #394
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 If I completed the task #243, this task should be simple...

home-manager = {
# candidates: "github:nix-community/home-manager/release-23.05";
url = "github:nix-community/home-manager/master";
url = "github:nix-community/home-manager/release-23.11";
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change reduces the risk and priority of #498, but it is still meaningful

This comment was marked as outdated.

This comment was marked as outdated.

@kachick
Copy link
Owner Author

kachick commented Mar 31, 2024

54e85d7

~ ⬢ [podman] zsh
1!  fd '^\w+-xz-5\.6\.[01]\.drv' --search-path /nix/store
/nix/store/zjxnycinbmzzd2n42y2pazqf6ykp3imb-xz-5.6.1.drv
/nix/store/njlkdzi7mxkcgb6c8isiz3kafd124bbw-xz-5.6.1.drv
/nix/store/icj74sa3557k5czrp6i5rhlblzcsz2v3-xz-5.6.1.drv
/nix/store/3mn2armpm7zvykml4aqy9rxvafczcpxx-xz-5.6.1.drv

~ ⬢ [podman] zsh
> nix-store --query --roots /nix/store/3mn2armpm7zvykml4aqy9rxvafczcpxx-xz-5.6.1.drv
/home/user/.local/state/home-manager/gcroots/current-home -> /nix/store/xhv5hiaz168326fjjx921vfwmyski9y8-home-manager-gen>
/home/user/.local/state/nix/profiles/home-manager-1-link -> /nix/store/xhv5hiaz168326fjjx921vfwmyski9y8-home-manager-gene>
/home/user/.local/state/nix/profiles/profile-1-link -> /nix/store/c4rmq4014afhswr4pazh6lqqvb8nqivd-user-environment

Why home-manager release-23.11 depends on xz 5.6.1? 🤔

https://github.com/nix-community/home-manager/blob/release-23.11/flake.nix#L4

This comment was marked as outdated.

kachick added a commit that referenced this pull request Mar 31, 2024
Posting as a PR comments and/or releasing as #417 may be better.
But that is another task 😋

---

Preparation part for #532

Resolves #243
@kachick kachick changed the title Add CI to prevent installing dirty xz in Nix store Prefer stable nixpkgs and home-manager Mar 31, 2024
@kachick
Copy link
Owner Author

kachick commented Mar 31, 2024

I got the new configs and the before with #534

Omit the whole diff check now, just got backup is much good thing...

This comment was marked as outdated.

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/6f5d4fb28e8cf45727caf48b8c5adbb44dc9a09a/containers/sandbox-with-ghcr.bash') '6f5d4fb28e8cf45727caf48b8c5adbb44dc9a09a'

The package detail

{
  "created_at": "2024-03-31T19:45:18Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/197859101",
  "id": 197859101,
  "metadata": {
    "container": {
      "tags": [
        "20240331-193859-utc",
        "6f5d4fb28e8cf45727caf48b8c5adbb44dc9a09a",
        "pr-532-6f5d4fb28e8cf45727caf48b8c5adbb44dc9a09a"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:ad6b52989f02de11106d8023bd12141122ee85ebe82502a5854b38f05ec78968",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-31T19:45:18Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/197859101"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

@kachick kachick merged commit 8e3f53a into main Mar 31, 2024
14 checks passed
@kachick kachick deleted the fix-530-no-dirty-xz branch March 31, 2024 19:49
Copy link
Contributor

🤖 removed 🗑️ staging ⬢ from ghcr.io

197859101,197856146,197841119,197822261,197821418,197802198,197801252,197799978,197799582,197798770

kachick added a commit that referenced this pull request Apr 1, 2024
kachick added a commit to kachick/anylang-template that referenced this pull request Apr 1, 2024
kachick pushed a commit that referenced this pull request Apr 4, 2024
* flake.lock: Update

Flake lock file updates:

• Updated input 'edge-nixpkgs':
    'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089' (2024-03-29)
  → 'github:NixOS/nixpkgs/08b9151ed40350725eb40b1fe96b0b86304a654b' (2024-04-03)
• Updated input 'my-nixpkgs':
    'github:kachick/nixpkgs/10fdf47377beb102988d907e34a487dd42ad2079' (2024-03-24)
  → 'github:kachick/nixpkgs/22e9566f885fe59f3e814ae383dd54a0e326a8a3' (2024-04-03)

* Sync CI dependencies with nixpkgs

* Add workaround for typos false positive detection

* Enable check_no_dirty_xz_in_nix_store

---

Updates #530 
Updates #532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant