Disclaimer: This image is from erictossell, and the overall project is heavily inspired by his config, so check it out too! Structure flake.nix: Entry point and system configuration hosts/: Host-specific configurations modules/: Reusable configuration modules users/: User-specific configurations scr...
shayne/nixos-configmain Branches 0 Tags Code Folders and filesLatest commit github-actions[bot] flake.lock: Update (#41) 9d95b8b· Apr 9, 2024 History470 Commits .git-crypt .githooks .github/workflows home-manager iso lib ...
swapon /dev/nvme0n1p4 # 启用swap分区,下面会自动生成分区配置 nixos-generate-config --root /mnt # 生成配置 lsblk -f # 检查挂载是否正确 cat /mnt/etc/nixos/hardware-configuration.nix # 检查配置文件分区是否正确 由于官方源在国外速度不理想,建议这里用国内镜像源: nixos-install --option substituter...
可以直接用nix flake命令初始化模板到本地,建议使用standard version nix flake init -t github:misterio77/nix-starter-config#standard 我的仓库也是基于这套模板,可以参考: 将你的configuration.nix和hardware-configuration.nix放到nixos目录下,基于当前文件夹用如下命令即可: # nixos-rebuild switch --flake .#nix...
Ruixi-rebirth's NixOS Config 系统组件 NixOS(Wayland)Nixos(Xorg) Window ManagerSway,Hyprlandbspwm Terminal EmulatorKittyKitty BarWaybarPolybar Application LauncherRofi-waylandrofi Notification DaemonMakoDunst Display ManagerNone(TTY1 Login)None(TTY1 Login) ...
首先先git clone下来并且cd到本仓库 然后再运行 nixos-generate-config --root /mnt 将本仓库内的hardware-configuration.nix替换成刚刚生成的配置文件 cp /mnt/etc/nixos/hardware-configuration.nix ./configuration/hardware-configuration.nix 然后再 nixos-install --flake .#nixos --substituters https://mirro...
单独安装的 Nix:编辑配置文件添加或修改如下项(通常系统配置在/etc/nix/nix.conf,用户配置在~/.config/nix/nix.conf): substituters = https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store https://cache.nixos.org/ NixOS 21.11 及之前的版本在configuration.nix中使用如下配置(https://cache.nixos.or...
问如何在NixOS中声明添加configuration.nix不稳定信道EN笔者最近在使用win10自带的OneNote笔记本记笔记的...
nixos-generate-config --root /mnt 上面的命令会创建两个文件(存放在目录/mnt/etc/nixos中): configuration.nix— 默认配置文件。 hardware-configuration.nix— 硬件配置(无法编辑) 通过命令nano /mnt/etc/nixos/configuration.nix打开文件。其中有一些需要编辑的地方得注意。第一个改动便是设置启动选项。找到行:...
let gpuIDs = [ "10de:1f06" # Graphics "10de:10f9" # Audio "10de:1ada" # usb "10de:1adb" # usb ]; in boot.kernelModules = with config.boot.kernelModules; [ "vfio-pci" "vfio_iommu_type1" "vfio" ]; // 这个的顺序不能改 boot.kernelParams = [ "intel_iommu=on" "iommu=...