mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 23:44:16 +01:00
Flake lock file updates:
• Updated input 'aagl':
'github:ezKEa/aagl-gtk-on-nix/a207bb710c6adff77fb205589dc3386223918ac3?narHash=sha256-LPSru6HgKx1431Kzc7xi/VzroYqpFVjd1nEqwFLmOGI%3D' (2026-01-04)
→ 'github:ezKEa/aagl-gtk-on-nix/39dba583302d48ca22c96bfe63c1414b71e04de4?narHash=sha256-bjCsiDZJ4U1uenmcggg3ZgbHyuhyjw1bOwgN1qvbCD0%3D' (2026-02-14)
• Updated input 'aagl/flake-compat':
'github:edolstra/flake-compat/f387cd2afec9419c8ee37694406ca490c3f34ee5?narHash=sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4%3D' (2025-10-27)
→ 'github:edolstra/flake-compat/5edf11c44bc78a0d334f6334cdaf7d60d732daab?narHash=sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns%3D' (2025-12-29)
• Updated input 'aagl/nixpkgs':
'github:nixos/nixpkgs/a320ce8e6e2cc6b4397eef214d202a50a4583829?narHash=sha256-6zddwDs2n%2Bn01l%2B1TG6PlyokDdXzu/oBmEejcH5L5%2BA%3D' (2025-11-24)
→ 'github:nixos/nixpkgs/6c5e707c6b5339359a9a9e215c5e66d6d802fd7a?narHash=sha256-iKZMkr6Cm9JzWlRYW/VPoL0A9jVKtZYiU4zSrVeetIs%3D' (2026-02-11)
• Updated input 'aagl/rust-overlay':
'github:oxalica/rust-overlay/5da8c00313b4434f00aed6b4c94cd3b207bafdc5?narHash=sha256-vcoOEy3i8AGJi3Y2C48hrf6CuL2h8W1gLe1gNt72Kxg%3D' (2025-11-26)
→ 'github:oxalica/rust-overlay/c8cfbe26238638e2f3a2c0ae7e8d240f5e4ded85?narHash=sha256-oiARqnlvaW6pVGheVi4ye6voqCwhg5hCcGish2ZvQzI%3D' (2026-02-12)
• Updated input 'catppuccin':
'github:catppuccin/nix/48e67b4ad22072f1ae30b0ed8e1cb020cf06c611?narHash=sha256-e0SsKnkSnq%2BUwZNS9ZyPJjTjabzq9TRc1hqeDnvOF1Q%3D' (2026-01-16)
→ 'github:catppuccin/nix/db4dfe3f2a80e9c33492d839accd49f75c7324c2?narHash=sha256-%2BcS5yXWsSLiK36%2BPP/%2BdcQdxpXSclx2d65p7l6Dis%2BA%3D' (2026-02-08)
• Updated input 'ghostty':
'github:ghostty-org/ghostty/250877eff69ee1f00168a1f5ce9ab5490e29b0dc?narHash=sha256-OeoF0vBLezZ0WQDxjpI5OHQskKzeCpOITYJ6XoUDwWg%3D' (2026-01-18)
→ 'github:ghostty-org/ghostty/61e347a2c278263dd1392c324feaee5fb9712ee5?narHash=sha256-mTCQuab0I2B/Naq0wveN9U9zWD/Hfu9SwsaKF0DSm4k%3D' (2026-02-14)
• Updated input 'ghostty/home-manager':
'github:nix-community/home-manager/8bc5473b6bc2b6e1529a9c4040411e1199c43b4c?narHash=sha256-bAXnnJZKJiF7Xr6eNW6%2BPhBf1lg2P1aFUO9%2BxgWkXfA%3D' (2026-01-10)
→ 'github:nix-community/home-manager/b1f916ba052341edc1f80d4b2399f1092a4873ca?narHash=sha256-Ucci8mu8QfxwzyfER2DQDbvW9t1BnTUJhBmY7ybralo%3D' (2026-02-08)
• Updated input 'ghostty/nixpkgs':
'https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre925418.3146c6aa9995/nixexprs.tar.xz?narHash=sha256-zvxtwlM8ZlulmZKyYCQAPpkm5dngSEnnHjmjV7Teloc%3D' (2026-01-10)
→ 'https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre942631.fef9403a3e4d/nixexprs.tar.xz?narHash=sha256-XV30uo8tXuxdzuV8l3sojmlPRLd/8tpMsOp4lNzLGUo%3D' (2026-02-08)
• Updated input 'helix':
'github:mattwparas/helix/d32de0548fa11f54283baae806c0458f06ea682e?narHash=sha256-MauqPznenGX/6v5X2uUXc6DNqCtVUzGbQnPfzw6MA44%3D' (2026-01-10)
→ 'github:mattwparas/helix/908d48c5dd9700ddff65bcfce8850eea74af0360?narHash=sha256-hXxc3JqZ%2BxF2VjTOczmYHVttRIWlxGh5RmYZ9OcMPD8%3D' (2026-02-15)
• Updated input 'helix/rust-overlay':
'github:oxalica/rust-overlay/1d7cbdaad90f8a5255a89a6eddd8af24dc89cafe?narHash=sha256-V8A1L0FaU/aSXZ1QNJScxC12uP4hANeRBgI4YdhHeRM%3D' (2025-10-05)
→ 'github:oxalica/rust-overlay/ec6a3d5cdf14bb5a1dd03652bd3f6351004d2188?narHash=sha256-CjymNrJZWBtpavyuTkfPVPaZkwzIzGaf0E/3WgcwM14%3D' (2026-02-13)
• Updated input 'home-manager':
'github:nix-community/home-manager/521d5ea1a229ba315dd1cceaf869946ddcc83d36?narHash=sha256-JPmLGZgdWa8QcQbbtBqyZhpmxIHZ3lUO48laERjw%2B4k%3D' (2026-01-18)
→ 'github:nix-community/home-manager/1e53254671f36cb7d0e2dcca08730f066d5e69b4?narHash=sha256-Tc%2BYqZ/Q1K35vJK4ji4RbLB/qKGcEq6yh7p4CKoZF60%3D' (2026-02-15)
• Updated input 'nix-darwin':
'github:lnl7/nix-darwin/0fc4e7ac670a0ed874abacf73c4b072a6a58064b?narHash=sha256-5ulSDyOG1U%2B1sJhkJHYsUOWEsmtLl97O0NTVMvgIVyc%3D' (2026-01-18)
→ 'github:lnl7/nix-darwin/6c5a56295d2a24e43bcd8af838def1b9a95746b2?narHash=sha256-6J/JoK9iL7sHvKJcGW2KId2agaKv1OGypsa7kN%2BZBD4%3D' (2026-02-12)
• Updated input 'nix-gaming':
'github:fufexan/nix-gaming/7c05dff3d845ffd4bcca79cd28f651c3167638c1?narHash=sha256-jvKZrX7be2o2ULDymb8CgDqIjzJSOt2TQleGR82JiJw%3D' (2026-01-18)
→ 'github:fufexan/nix-gaming/0c4bf3ac4eaf5b693e5d7ae75f3caba8fcf15d8f?narHash=sha256-Px1IFFTw3zdP8RNram2g41EvUTjIZRDLCgZyXgpBty0%3D' (2026-02-15)
• Updated input 'nix-gaming/flake-parts':
'github:hercules-ci/flake-parts/80daad04eddbbf5a4d883996a73f3f542fa437ac?narHash=sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY%3D' (2026-01-11)
→ 'github:hercules-ci/flake-parts/57928607ea566b5db3ad13af0e57e921e6b12381?narHash=sha256-AnYjnFWgS49RlqX7LrC4uA%2BsCCDBj0Ry/WOJ5XWAsa0%3D' (2026-02-02)
• Updated input 'nix-gaming/flake-parts/nixpkgs-lib':
'github:nix-community/nixpkgs.lib/2075416fcb47225d9b68ac469a5c4801a9c4dd85?narHash=sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo%3D' (2025-12-14)
→ 'github:nix-community/nixpkgs.lib/72716169fe93074c333e8d0173151350670b824c?narHash=sha256-cBEymOf4/o3FD5AZnzC3J9hLbiZ%2BQDT/KDuyHXVJOpM%3D' (2026-02-01)
• Updated input 'nixos-apple-silicon':
'github:nix-community/nixos-apple-silicon/83a2bb509972148aa6d3f75c65103b6bfb7898af?narHash=sha256-YyIzhZoFVE4C5P9e0wZGjx4P9IT/OTUMFF3r6iKd3UY%3D' (2026-01-16)
→ 'github:nix-community/nixos-apple-silicon/357186cca0f4c7801ff16970e4b6a05e74fd88e0?narHash=sha256-0RYmnOk40U4ZGbW/%2B3rHlNndrsuHCz9h%2BxequKWgwHQ%3D' (2026-02-14)
• Updated input 'nixos-generators':
'github:nix-community/nixos-generators/032a1878682fafe829edfcf5fdfad635a2efe748?narHash=sha256-NHF7QWa0ZPT8hsJrvijREW3%2BnifmF2rTXgS2v0tpcEA%3D' (2025-11-27)
→ 'github:nix-community/nixos-generators/8946737ff703382fda7623b9fab071d037e897d5?narHash=sha256-nnVmNNKBi1YiBNPhKclNYDORoHkuKipoz7EtVnXO50A%3D' (2026-01-30)
• Updated input 'nixpak':
'github:nixpak/nixpak/ff179ec0158164037ee9036f93c081de6a8bf949?narHash=sha256-b44HZf%2B3NbRvxH3rXtjLNTW3ojAXn172iygCcJr6NhA%3D' (2026-01-01)
→ 'github:nixpak/nixpak/4276954ad4f877d79801fd8952af38a3370bcb65?narHash=sha256-GaDPnzDQAx5WRi12XVttCHsVw0VkOMYNpniT7KHYNfk%3D' (2026-01-24)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/e4bae1bd10c9c57b2cf517953ab70060a828ee6f?narHash=sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc%3D' (2026-01-16)
→ 'github:nixos/nixpkgs/a82ccc39b39b621151d6732718e3e250109076fa?narHash=sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb%2BZnAo5RzSxJg%3D' (2026-02-13)
• Updated input 'nixpkgs-darwin':
'github:nixos/nixpkgs/3327b113f2ef698d380df83fbccefad7e83d7769?narHash=sha256-MJwOjrIISfOpdI9x4C%2B5WFQXvHtOuj5mqLZ4TMEtk1M%3D' (2026-01-17)
→ 'github:nixos/nixpkgs/2343bbb58f99267223bc2aac4fc9ea301a155a16?narHash=sha256-LovWTGDwXhkfCOmbgLVA10bvsi/P8eDDpRudgk68HA8%3D' (2026-02-11)
• Updated input 'nixpkgs-master':
'github:nixos/nixpkgs/7037463125d562d71d4a5569092dd7aaea90eea8?narHash=sha256-Es1/b/G9l3%2B3FOlodGiWlkl2xuD4qnmwTFE3e3npdYU%3D' (2026-01-19)
→ 'github:nixos/nixpkgs/d5643dce7d83ac50d5a483566f9b1e6ce65214a9?narHash=sha256-WRiWxJm5SFDkeJyAMIWEEjuFSVFy1GC%2B9b06k661KuQ%3D' (2026-02-15)
• Updated input 'nixpkgs-stable':
'github:nixos/nixpkgs/72ac591e737060deab2b86d6952babd1f896d7c5?narHash=sha256-6YwHV1cjv6arXdF/PQc365h1j%2BQje3Pydk501Rm4Q%2B4%3D' (2026-01-17)
→ 'github:nixos/nixpkgs/3aadb7ca9eac2891d52a9dec199d9580a6e2bf44?narHash=sha256-O1XDr7EWbRp%2BkHrNNgLWgIrB0/US5wvw9K6RERWAj6I%3D' (2026-02-14)
• Updated input 'pre-commit-hooks':
'github:cachix/git-hooks.nix/f0927703b7b1c8d97511c4116eb9b4ec6645a0fa?narHash=sha256-6MkqajPICgugsuZ92OMoQcgSHnD6sJHwk8AxvMcIgTE%3D' (2026-01-01)
→ 'github:cachix/git-hooks.nix/5eaaedde414f6eb1aea8b8525c466dc37bba95ae?narHash=sha256-kck%2BvIbGOaM/dHea7aTBxdFYpeUl/jHOy5W3eyRvVx8%3D' (2026-02-10)
192 lines
6.4 KiB
Nix
192 lines
6.4 KiB
Nix
{
|
|
description = "Ryan Yin's nix configuration for both NixOS & macOS";
|
|
|
|
##################################################################################################################
|
|
#
|
|
# Want to know Nix in details? Looking for a beginner-friendly tutorial?
|
|
# Check out https://github.com/ryan4yin/nixos-and-flakes-book !
|
|
#
|
|
##################################################################################################################
|
|
|
|
outputs = inputs: import ./outputs inputs;
|
|
|
|
# the nixConfig here only affects the flake itself, not the system configuration!
|
|
# for more information, see:
|
|
# https://nixos-and-flakes.thiscute.world/nix-store/add-binary-cache-servers
|
|
nixConfig = {
|
|
# substituers will be appended to the default substituters when fetching packages
|
|
extra-substituters = [
|
|
# "https://nix-gaming.cachix.org"
|
|
# "https://nixpkgs-wayland.cachix.org"
|
|
# "https://install.determinate.systems"
|
|
];
|
|
extra-trusted-public-keys = [
|
|
# "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
|
# "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
|
# "cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM="
|
|
];
|
|
};
|
|
|
|
# This is the standard format for flake.nix. `inputs` are the dependencies of the flake,
|
|
# Each item in `inputs` will be passed as a parameter to the `outputs` function after being pulled and built.
|
|
inputs = {
|
|
# There are many ways to reference flake inputs. The most widely used is github:owner/name/reference,
|
|
# which represents the GitHub repository URL + branch/commit-id/tag.
|
|
|
|
# Official NixOS package source, using nixos's unstable branch by default
|
|
# Find git commit hash with build status here(3 jobs per day):
|
|
# https://hydra.nixos.org/jobset/nixpkgs/unstable
|
|
# update via nix flake update nixpkgs --override-input nixpkgs github:NixOS/nixpkgs/<commit-hash>
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
nixpkgs-2505.url = "github:nixos/nixpkgs/nixos-25.05";
|
|
|
|
# nixpkgs with some custom patches
|
|
nixpkgs-patched.url = "github:ryan4yin/nixpkgs/nixos-unstable-patched";
|
|
# get some latest packages from the master branch
|
|
nixpkgs-master.url = "github:nixos/nixpkgs/master";
|
|
|
|
# for macos
|
|
# nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-25.11-darwin";
|
|
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
nix-darwin = {
|
|
url = "github:lnl7/nix-darwin";
|
|
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
|
};
|
|
|
|
# home-manager, used for managing user configuration
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/master";
|
|
# url = "github:nix-community/home-manager/release-25.11";
|
|
|
|
# The `follows` keyword in inputs is used for inheritance.
|
|
# Here, `inputs.nixpkgs` of home-manager is kept consistent with the `inputs.nixpkgs` of the current flake,
|
|
# to avoid problems caused by different versions of nixpkgs dependencies.
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# https://github.com/catppuccin/nix
|
|
catppuccin = {
|
|
url = "github:catppuccin/nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v0.4.3";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
preservation = {
|
|
url = "github:nix-community/preservation";
|
|
};
|
|
|
|
# generate iso/qcow2/docker/... image from nixos configuration
|
|
nixos-generators = {
|
|
url = "github:nix-community/nixos-generators";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
# secrets management
|
|
agenix = {
|
|
# lock with git commit at May 18, 2025
|
|
url = "github:ryantm/agenix/4835b1dc898959d8547a871ef484930675cb47f1";
|
|
# replaced with a type-safe reimplementation to get a better error message and less bugs.
|
|
# url = "github:ryan4yin/ragenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko/v1.11.0";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# add git hooks to format nix code before commit
|
|
pre-commit-hooks = {
|
|
url = "github:cachix/git-hooks.nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nuenv = {
|
|
url = "github:DeterminateSystems/nuenv";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
haumea = {
|
|
url = "github:nix-community/haumea/v0.2.2";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixpak = {
|
|
url = "github:nixpak/nixpak";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
ghostty = {
|
|
url = "github:ghostty-org/ghostty/tip"; # Latest Continuous Release
|
|
};
|
|
|
|
blender-bin = {
|
|
url = "github:edolstra/nix-warez?dir=blender";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nixos-apple-silicon = {
|
|
# asahi-6.18.9
|
|
url = "github:nix-community/nixos-apple-silicon";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
helix = {
|
|
# Helix with steel as plugin system
|
|
# https://github.com/helix-editor/helix/pull/8675
|
|
url = "github:mattwparas/helix/steel-event-system";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# -------------- Gaming ---------------------
|
|
|
|
nix-gaming = {
|
|
url = "github:fufexan/nix-gaming";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
aagl = {
|
|
url = "github:ezKEa/aagl-gtk-on-nix/release-25.11";
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
######################## Some non-flake repositories #########################################
|
|
|
|
nu_scripts = {
|
|
url = "github:ryan4yin/nu_scripts";
|
|
flake = false;
|
|
};
|
|
|
|
######################## My own repositories #########################################
|
|
|
|
# my private secrets, it's a private repository, you need to replace it with your own.
|
|
# use ssh protocol to authenticate via ssh-agent/ssh-key, and shallow clone to save time
|
|
mysecrets = {
|
|
url = "git+ssh://git@github.com/ryan4yin/nix-secrets.git?shallow=1";
|
|
flake = false;
|
|
};
|
|
|
|
my-asahi-firmware = {
|
|
url = "git+ssh://git@github.com/ryan4yin/asahi-firmware.git?shallow=1";
|
|
flake = false;
|
|
};
|
|
|
|
# my wallpapers
|
|
wallpapers = {
|
|
url = "github:ryan4yin/wallpapers";
|
|
flake = false;
|
|
};
|
|
|
|
nur-ryan4yin = {
|
|
url = "github:ryan4yin/nur-packages";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# for waydroid
|
|
# nur-ataraxiasjel.url = "github:AtaraxiaSjel/nur";
|
|
};
|
|
}
|