Welcome to the nix World!
This is misumisumi's NixOS and home-manager configurations.
- This repository is maintained by Nix Flakes.
- You can try desktop or CLI environment.
- DE: Qtile or GNOME
- Support standalone home-manager
- Support selecting color-scheme
- Providing my custom modules
├── apps
│ ├── color-theme # color themes
│ ├── system # system wide application configurations (NixOS options)
│ └── user # user wide application configurations (home-manager options)
│ ├── cli # settings of cli app
│ ├── core # apps required for the minimum user environment
│ ├── desktop # settings of desktop app
│ ├── presets # environment presets
│ └── shell # bash and zsh settings
├── machines # settings for each my machines
├── modules # my custom nixosModules and homeManagerModules
├── patches # patch of package
├── settings # common system settings
│ ├── system # system wide
│ └── user # user wide
├── sops # secrets
└── users # settings for each users
See details on ./machines/default.nix or ./machines/home-manager.nix
{
inputs = {
dotfiles.url = "github:misumisumi/nixos-desktop-config"
# ...
};
# ...
# import nixosModules by inputs.dotfiles.nixosModules.<module-name>
# import homeManageModules by inputs.dotfiles.homeManagerModules.<module-name>
}
Warning
I maintain it with a focus on making it work in my own environment.
liveimg-*
and standalone home-manager
are not well tested.
- Create
nix
env
- Container from DockerHub (nixos/nix)
- Install nix package manager from official guide
- Launch VM using official iso
-
Check networking connection
- run
ip -c a and ping 8.8.8.8
- wireless settings use
nmcli
orwpa_supplicant
- run
-
Install
- Read it as
--flake .#<flake-name>
if you clone the repository,
# 1. Create key file for luks
echo <password> > /tmp/luks.key
# 2. Edit `device` in machines/liveimg/filesystem
# 3. Check flake name (liveimg-cli-* or liveimg-<DE>-*, *-iso is for ISO creation, not use here)
# 4. Format disk and mount to `/mnt`
# "liveimg-cli" for CLI env, "liveimg-<DE>" for Desktop Environment
nix run nixpkgs#disko -- -m disko --flake "github:misumisumi/nixos-desktop-config#<flake-name>"
# Install NixOS to `/mnt`
nixos-install --no-root-passwd --flake "github:misumisumi/nixos-desktop-config#<flake-name>"
# 1. Check flake name (liveimg-iso-*)
# 2. Create .iso file (build takes a long time)
nix run nixpkgs#nixos-generators -- --format iso -o result --flake github:misumisumi/nixos-desktop-config#<flake-name>
# Write iso to device
dd if=result/iso/*.iso of=/dev/sdX status=progress
- Setup home-manager
- Switch to config
# Flace name is <preset> or <preset>-<shell>
# For <preset>, `small` is CLI env, `medium` is CLI with texlive, and `huge` is GUI env.
# <shell> is managed by home-manager, so choose something other than the user's default
# no `-<shell>` does not include shell.
home-manager switch --flake github:misumisumi/nixos-desktop-config#small-zsh
- Common Compornents
Linux (GNOME) | Linux (Qtile) | |
---|---|---|
window system | Wayland or X11 | X11 |
Shell | Zsh | Zsh |
Terminal | Wezterm | Wezterm |
Editor | Neovim | Neovim |
Browser | Vivaldi & Firefox | Vivaldi & Firefox |
Input Method | Fcitx5+mozc & skk | Fcitx5 & skk |
Launcher | Rofi | Rofi |
Theme | catppuccin, nord, tokyonight | catppuccin, nord, tokyonight |
System Font | Noto Fonts CJK | Noto Fonts CJK |