When I tried to update a node with a specific ssh key using the ssh -i flag. It threw an error: Permission denied (publickey) But the path and key were correct, I could connect via ssh directly. T...
Username modification: edit user in /mnt/etc/nixos/flakes/flake.nix, /mnt/etc/nixos/flakes/linux/default.nix, and /mnt/etc/nixos/flakes/linux/wayland.nix; hostname modification: edit /mnt/etc/nixos/flakes/common/default.nix to modify the hostName value in the networking property group Us...
基本安装 使用configuration.nix 安装一个带ssh和常用工具的 nixos [基本安装 configuration](https://dev.leiyanhui.com/nixos/1base-install] 启用flake 基本安装 configuration flake 启用Home Manager 基本安装 configuration flake 目录结构 和最终配置文件 基础 目录结构 和最终配置文件 kde桌面 kde桌面简单体验 g...
复用flake 管理 NixOS WSL 刚开始用 nixos wsl 时候我挺迷茫的,怎么把 wsl 跟 flake 结合起来?因为 flake 教程真的太少了,网上几乎搜不到一篇有用教程,之后在 GitHub 翻了一些代码才恍然大悟,nixos wsl 其实就是个标准的无桌面 nixos 系统 + 一个 wsl 模块,跟正在用的系统没什么两样。 如果不用 f… ...
flake.nix中的inputs是一个 attribute set,用来指定当前 Flake 的依赖,inputs 有很多种类型,举例如下: { inputs = { # 以 GitHub 仓库为数据源,指定使用 master 分支,这是最常见的 input 格式 nixpkgs.url = "github:Mic92/nixpkgs/master"; # Git URL,可用于任何基于 https/ssh 协议的 Git 仓库 git-...
Adding options to a user causes NixOS to fail to build with: error: The option `users.users' in module `/nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source/nixos/modules/services/networking/ssh/sshd.nix' would be a parent of the following options, but its type `attribute set of (...
Run nixos-install --flake .#$HOST with $HOST being your desired host and reboot Setup TPM LUKS disk encryption with PIN (can be any characters and any length) # This snippet assumes $DISK is set to your prefered disk and you are using root systemd-cryptenroll --wipe-slot=tpm2 "$DI...
flake.lock [create-pull-request] automated change Apr 12, 2025 flake.nix update flakes Mar 22, 2025 formatter.nix update treefmt settings Mar 22, 2025 oauth-permissions.png add oauth permissions picture Apr 2, 2024 renovate.json renovate: enable nix ...
Add this to yourflake.nix: {inputs.nixos-shell.url="github:Mic92/nixos-shell";} And this to your nixos configuration defined in your flake: {imports=[inputs.nixos-shell.nixosModules.nixos-shell];} Afterwards you can start your nixos configuration with nixos-shell with one of the tw...
flake.lock update hydra Apr 15, 2025 flake.nix flake.nix: Track hydra master branch Apr 8, 2025 pyproject.toml hydra-packet-importer: drop Jan 12, 2025 renovate.json chore(config): migrate config renovate.json Apr 6, 2025 ssh-keys.nix build: drop rhea Dec 11, 2024 ...