Skip to content

misumisumi/nixos-desktop-config

Repository files navigation

English|日本語

misumisumi' NixOS System & Home-Manager Configuration by Flake

Welcome to the nix World!
This is misumisumi's NixOS and home-manager configurations.

thumbnail

Description

  • 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

Module Usage

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>
}

Installation Guide

Warning

I maintain it with a focus on making it work in my own environment.
liveimg-* and standalone home-manager are not well tested.

  1. Create nix env
  1. Check networking connection

    • run ip -c a and ping 8.8.8.8
    • wireless settings use nmcli or wpa_supplicant
  2. Install

  • Read it as --flake .#<flake-name> if you clone the repository,

Bootable External Disk

# 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>"

Create LiveCD

# 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

Standalone home-manager

  1. Setup home-manager
  1. 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

Appendix

System Compornents

  • 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

Gallery

catppuccin-macchiato

catppuccin-macchiato

nord

nord

tokyonight-moon

tokyonight-moon