ryan4yin 最近的时间轴更新
ryan4yin's repos on GitHub
Python · 7 人关注
guitar-synthesizer
使用 Python/Julia/Matlab 合成吉他音色
1 人关注
Android-Password-Store
Android application compatible with ZX2C4's Pass command line application
1 人关注
git-trim
Automatically trims your branches whose tracking remote refs are merged or stray
0 人关注
aes
A pure Python implementation of AES, with optional CBC, PCBC, CFB, OFB and CTR cipher modes.
0 人关注
android-usb-gadget
Convert your Android phone to any USB device you like! USB Gadget Tool allows you to create and activate USB device roles, like a mouse or a keyboard. 🛠🛡📱
0 人关注
apisix
The Cloud-Native API Gateway
0 人关注
apparmor.d
Full set of AppArmor profiles (~ 1500 profiles)
Lua · 0 人关注
astrocommunity
A community repository of common plugin specifications
Lua · 0 人关注
autosave.nvim
A Neovim plugin which saves files to disk automatically.
0 人关注
awesome-nix
😎 A curated list of the best resources in the Nix community [maintainer=@cyntheticfox]
0 人关注
blockchain-consensus
This is my attempt to list all possible blockchain consensus out there, i welcome pull request of the blockchain community! lets make it the main reference for blockchain consensus
Shell · 0 人关注
bootstrap-from-tcc
Starting from a single 350 KB TinyCC binary, compile a Clang 13 toolchain and Nix package manager
0 人关注
bubblewrap
Low-level unprivileged sandboxing tool used by Flatpak and similar projects
0 人关注
cats-blender-plugin
:smiley_cat: A tool designed to shorten steps needed to import and optimize models into VRChat. Compatible models are: MMD, XNALara, Mixamo, DAZ/Poser, Blender Rigify, Sims 2, Motion Builder, 3DS Max and potentially more
Go · 0 人关注
clash
A rule-based tunnel in Go.
0 人关注
colmena
A simple, stateless NixOS deployment tool
0 人关注
computer-science
:mortar_board: Path to a free self-taught education in Computer Science!
Go · 0 人关注
cost-model
Cross-cloud cost allocation models for Kubernetes workloads
Go · 0 人关注
crane
Crane is a FinOps Platform for Cloud Resource Analytics and Economics in Kubernetes clusters. The goal is not only help user to manage cloud cost easier but also ensure the quality of applications. https://gocrane.io/
Go · 0 人关注
dae
A Linux high-performance transparent proxy solution based on eBPF.
0 人关注
debian-headless
Create a debian headless/remote installation image
Go · 0 人关注
descheduler
Descheduler for Kubernetes
0 人关注
dev-templates
Dev environments for numerous languages based on Nix flakes [maintainer=@lucperkins]
0 人关注
DoIt
A clean, elegant and advanced blog theme for Hugo.
0 人关注
doomemacs
An Emacs framework for the stubborn martian hacker
C · 0 人关注
esp-idf
Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Nix · 0 人关注
flake.nix
Nix flake for dae and daed
0 人关注
gpu-jupyter
Leverage the flexibility of Jupyterlab through the power of your NVIDIA GPU to run your code from Tensorflow and Pytorch in collaborative notebooks on the GPU.
Scheme · 0 人关注
guix-config
My dotfiles for GNU Guix
0 人关注
home-manager
Manage a user environment using Nix [maintainer=@rycee]
ryan4yin

ryan4yin

to be better
🏢  SRE
V2EX 第 349523 号会员,加入于 2018-09-14 11:41:55 +08:00
今日活跃度排名 24240
OS as Code - 我的 NixOS 使用体会
  •  3   
    Linux  •  ryan4yin  •  32 天前  •  最后回复来自 ryan4yin
    33
    NixOS 小书 1k stars 了,再 share 一波
    Linux  •  ryan4yin  •  71 天前  •  最后回复来自 huanghanzhilian
    2
    新仓库 512 stars 了,用了刚好三个月
  •  1   
    程序员  •  ryan4yin  •  186 天前  •  最后回复来自 huangliu
    4
    各位有参与过志愿者服务么?
  •  1   
    程序员  •  ryan4yin  •  188 天前  •  最后回复来自 kyro00000
    41
    两岸猿声啼不住,轻舟已过万重山——我的四分之一人生
  •  5   
    程序员  •  ryan4yin  •  219 天前  •  最后回复来自 est
    57
    为什么我折腾这些小众技术?
  •  3   
    程序员  •  ryan4yin  •  239 天前  •  最后回复来自 kristpan
    39
    NixOS 与 Flakes | 一份非官方的新手指南
  •  5   
    Linux  •  ryan4yin  •  248 天前  •  最后回复来自 ZedRover
    18
    NixOS 与 Nix Flakes 新手入门
  •  2   
    Linux  •  ryan4yin  •  182 天前  •  最后回复来自 tywtyw2002
    47
    ryan4yin 最近回复了
    32 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @tywtyw2002 所以才需要 nix-darwin 这种工具
    32 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @tywtyw2002 目前 NixOS 都没有这种工具,更别说 nix-darwin 了。
    你需要自己研究清楚系统里到底装了啥,再手动编写对应的 nix 配置。
    如果你用的是 homebrew 的话,它能导出 brewfile 供参考。
    34 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    测了没问题的话,可以提个 PR 给他们优化一下,它这示例里还有多余的反斜线啊。
    34 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @licolicoli V2EX 的代码渲染有点糟糕,你 copy 过去自己格式化一下吧...
    34 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @licolicoli 你提供的文档我看了,它使用的确实是 overlays ,但这不是最佳方案。

    能避免大量编译的写法是这样的,把它文档中的第二部分 overlays 删掉,再把第三部分的代码改成这样:

    ```nix
    # configuration.nix
    {
    # ...

    environment = {
    systemPackages = [
    pkgs.alsa-ucm-conf.overrideAttrs (old: {
    wttsrc = (fetchFromGitHub {
    owner = "WeirdTreeThing";
    repo = "chromebook-ucm-conf";
    rev = "484f5c581ac45c4ee6cfaf62bdecedfa44353424";
    hash = "sha256-Jal+VfxrPSAPg9ZR+e3QCy4jgSWT4sSShxICKTGJvAI=";
    });
    installPhase = ''
    runHook preInstall

    mkdir -p $out/share/alsa
    cp -r ucm ucm2 $out/share/alsa

    mkdir -p $out/share/alsa/ucm2/conf.d
    cp -r $wttsrc/{hdmi,dmic}-common $wttsrc/GENERATION/* $out/share/alsa/ucm2/conf.d

    runHook postInstall
    '';
    })
    ];
    sessionVariables = {
    ALSA_CONFIG_UCM2 = "${pkgs.alsa-ucm-conf}/share/alsa/ucm2";
    };
    };
    }
    ```
    34 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @licolicoli 听起来你肯定用错方式了,你需要的只是加个配置文件,不是重新编译,因此非常大的概率你可以通过方法一或者方法二搞定这件事。
    34 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @xiaokanhongchen 是这样的,我入坑时在一台虚拟机上花了 20 天,把我之前的 EndeavourOS + i3wm 配置完全迁移到了 NixOS 上,然后在 PC 上装了个全新的 NixOS ,改一点硬件相关的配置,再一行命令部署,就得到了跟我虚拟机完全一致的环境。
    这份教程最初就来自我那 20 天的入坑学习笔记。
    35 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @xiaokanhongchen 我这帖子最前面就给了我写的的入门教程啊,如果你想试试 NixOS 的话不妨一看。
    不过只面向 nix 用户的教程,目前就只有官方的 nix.dev 了,我这份可以用做参考。
    35 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    > 这样你就只能自己叠加 overlay, 然而叠完 overlay 的包 hash 会变

    @licolicoli 目测你用法错了,或者说你是很久以前试用过 NixOS.
    现在的用法是这样的:

    1. 如果只是想改某个包,你首先应该考虑直接在需要的时候 override 而不是直接 overlay ,这类似生成一个局部变量,系统中其他包依赖的还是没改过的版本
    2. 如果你要改一堆东西,那首先应该考虑在你需要的地方 new 一个新的 nixpkgs 实例,这同样类似局部变量,不过比方法一改的范围要更广一些
    3. 只有在你确认你需要整个修改系统中的这个包的时候,才应该使用全局的 overlay ,但这就会导致你说的,导致大量的本地编译。
    36 天前
    回复了 ryan4yin 创建的主题 Linux OS as Code - 我的 NixOS 使用体会
    @ltkun 文档一直是 Nix 最大的痛点,官方英文文档都一团糟,更别说中文了。所以我直接自己写了一份...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5418 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 08:49 · PVG 16:49 · LAX 01:49 · JFK 04:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.