# nix-nixos **Repository Path**: TrueNine/nix-nixos ## Basic Information - **Project Name**: nix-nixos - **Description**: 测试用 nix + nixos + niri 桌面端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-07 - **Last Updated**: 2026-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nix-nixos One-shot unattended installer for a personal NixOS desktop. The current target profile is: - NixOS `25.11` - Wayland desktop with `niri` + `greetd` - NVIDIA proprietary driver enabled by default - Locale `zh_CN.UTF-8` - Time zone `Asia/Shanghai` - Hostname `zjarlin` - Default user `zjarlin` - Default password `123456` ## Warning This installer is destructive. - It wipes the selected target disk completely - It only supports `x86_64` + `UEFI` - It refuses to continue if zero or multiple internal non-removable disks are detected Do not run it on a machine that contains data you need to keep. ## How To Use Boot the machine with the official NixOS minimal ISO in UEFI mode, make sure the network is up, then run the installer as `root`. If you already have this repo locally: ```bash cd /path/to/nix-nixos sudo bash ./install.sh ``` If you want to run it directly from a raw URL: ```bash curl -L | sudo bash ``` What the script does: 1. Verifies root, architecture, UEFI, and network reachability. 2. Detects exactly one internal target disk. 3. Waits 10 seconds before destruction so you can cancel with `Ctrl+C`. 4. Repartitions the disk as `1 GiB EFI + ext4 root`. 5. Creates an `8 GiB` swapfile. 6. Generates hardware config and writes a full `configuration.nix`. 7. Runs `nixos-install`. ## First Login After installation: 1. Reboot into the installed system. 2. Log in with user `zjarlin`. 3. Use password `123456`. 4. Run `passwd` immediately to replace the default password. 5. If the default NVIDIA generation has display issues, choose the `nvidia-open` specialization from the boot menu. Installer logs are saved at: - `/tmp/nixos-niri-install-*.log` during installation - `/var/log/nixos-niri-install.log` inside the installed system ## Installed Software Desktop and session components: - `niri` - `greetd` with `tuigreet` - `waybar` - `mako` - `fuzzel` - `foot` - `xwayland-satellite` - `fcitx5` with `fcitx5-rime` and `fcitx5-chinese-addons` - `xdg-desktop-portal-gtk` System and hardware support: - NVIDIA proprietary driver - `networkmanager` - `pipewire` - `polkit` - `gvfs` - `udisks2` Desktop applications: - JetBrains Toolbox - QQ - WeChat - Visual Studio Code - Zed - Nautilus - `pavucontrol` - `fcitx5-configtool` - `nvidia-settings` CLI and utility tools: - `curl` - `wget` - `git` - `jq` - `tree` - `htop` - `file` - `unzip` - `zip` - `vim` - `neovim` - `pciutils` - `usbutils` - `vulkan-tools` - `grim` - `slurp` - `wl-clipboard` - `killall` - `swayidle` - `swaylock` ## Current Disk Layout The installer creates: - EFI system partition: `1 GiB` - Root partition: remaining disk space as `ext4` - Swapfile: `8 GiB` at `/swapfile`