Install
On a fresh Fedora 44 (above), logged in as your user on its text console, with a network connection:
nmcli device wifi connect "Network name" --ask # on Wi-Fi; a cable needs nothing
curl -fsSL https://nightdrive.sh/install | bashThat runs bootstrap.sh: it installs git, clones Nightdrive into ~/dotfiles and starts its installer. bash -s -- --dev clones the dev channel instead; the installer options go after -- too. The same by hand:
sudo dnf install -y git # a fresh Fedora has no git
git clone https://github.com/nightdrive-sh/nightdrive.git ~/dotfiles
cd ~/dotfiles
./install.shIt tells which machine it's on and then runs unattended: sudo asks for the password once at the start, and the system update takes a while. On a Mac it first asks for the keyboard layout, if it's still the Minimal image's us, as the login screen's password is typed with it (--keyboard "fi mac" answers in advance).
A minimal Fedora gets what a desktop edition would have: it boots to the login screen, the firewall lets LocalSend and AirPlay in as on Fedora KDE, and SSH stays off until you turn on Remote login (Launcher › Settings), unless you install over ssh.
Claude Code, Tailscale, Mail, Contacts, Deck and Ferry come with every install and stay quiet until you set them up. The optional parts that are on by default (Apostrophe, YouTube) come too; the rest can be added later from the Launcher (System › Install) or with nightdrive plugins install ID (nightdrive apps install garage for an app).
Trying it on the system you already use? Nightdrive doesn't remove your apps: on a Mac only the services listed under Installer options go (--choose unticks them). Your configs in ~/.config are moved aside to <name>.bak-<time>, and switch.sh off (below) brings back KDE's login screen.
Then reboot.
If the login screen can't start (Hyprland can't, say for a missing graphics driver), a text login comes up in its place: log in, and start-hyprland starts the desktop or shows why it can't. Ctrl+Alt+F3 gives one too. config/greeter/switch.sh picks the login screen:
switch.sh | Login screen |
|---|---|
autologin | Nightdrive's, the desktop behind it (the default) |
on | Nightdrive's, starting the desktop after the password |
text | A text login that starts the desktop after the password (!bash at its prompt for a text console), until the graphics are fixed |
off | On Fedora KDE, KDE's (KDE stays installed as a fallback); on Fedora Minimal, which has none, the text login |
Installer options
Give them to ./install.sh, or after -- in the curl line (bash -s -- --choose).
| Option | What it changes |
|---|---|
--no-greeter | No Nightdrive login screen. On Fedora KDE, keeps KDE's; pick Hyprland there (not Hyprland (uwsm-managed)). On Fedora Minimal, which has none, a text login (greetd's agreety) that starts the desktop after the password |
--no-autologin | The Nightdrive login screen starts the desktop after the password, instead of being its lock (black flashes at boot) |
--no-splash | Keeps Fedora's boot splash and the GRUB menu (config/splash/install.sh off later) |
--choose | Lists the optional parts (and on a Mac the removals) first, to tick or untick |
--keyboard "fi mac" | The keyboard layout and variant for the login screen, the desktop and the text console, without asking (xkb names: localectl list-x11-keymap-layouts) |
--vm | The virtual machine settings, if the VM isn't detected as one (docs/vm.md) |
--no-nvidia | On a PC, leaves an NVIDIA card's driver alone instead of installing RPM Fusion's (docs/pc.md) |
--with 1password,slack | These optional parts on top of the defaults (--dry-run lists the ids) |
--without youtube | The defaults without these; combines with --with, and leaves out Tailscale, Mail, Contacts, Deck or Ferry too |
--all / --none / --defaults | Every optional part / none / the defaults (Apostrophe, YouTube); Tailscale, Mail, Contacts, Deck and Ferry come with each |
--dry-run | Shows the optional parts, the packages and system settings it would add and what it would remove, then stops |
To pick the optional parts yourself, run ./install.sh --choose: it lists them first (a number toggles one, Enter continues):
Machine: Apple Silicon Mac (Fedora Asahi Remix, keyboard: fi mac)
Nightdrive apps
1 [x] Contacts Your iCloud and Google contacts in a window of their own, kept in sync
2 [x] Deck Spotify player (needs Premium), Launcher and top bar
3 [x] Ferry Files and text both ways with your phone over Tailscale, no app
4 [ ] Garage Virtual machines: start, snapshot and restore them
5 [x] Mail Mail over notmuch: quiet reading, notifications, Claude's replies
Recommended apps
6 [ ] 1Password Password manager: Launcher › Passwords, op CLI, SSH agent
7 [x] Apostrophe Markdown editor (Flatpak), opens .md files
…
Web apps
13 [ ] Slack Slack as a web app (Hyper+S)
…
Plugins
17 [ ] AirPlay Receiver Mirror an iPhone, iPad or Mac here (UxPlay, experimental)
…
22 [ ] Install all every optional part above
23 [x] Remove services 28 installed packages a Mac doesn't use: realmd sssd-common sssd-kcm nfs-utils …The last row is a Mac's only: the Minimal image's server services (network logins and shares, system logs, crash reports) and other Wi-Fi chips' firmware, listed in packages-remove-asahi.txt.
First login
At your first login, Welcome to Nightdrive opens and asks whether you have Claude Code (a Pro or Max plan).
- With Claude, sign in there first. Then Claude sets up Tailscale, Mail, Contacts, Deck and Ferry with you, each in a session of its own that does only that one thing.
- Without, it shows each one's steps right there, one at a time in plain words.
- I'll do it myself lists the apps, each opening its README in Apostrophe.
Leave what you don't need. Launcher › System › Set up Nightdrive (or nightdrive welcome) opens it again, and later logins remind you with a notification until you finish it or say not to.
A few things stay manual:
- 1Password: in Settings › Developer, turn on SSH agent and Integrate with 1Password CLI. The Launcher's Passwords level needs the CLI integration.
- Thunderbird, if you chose it: open it once, then run
./link.shagain to give it Nightdrive's theme (its profile doesn't exist before the first start). - Optionally, set up dictation (docs/dictation.md).
./link.sh on its own just (re)links the config files and is safe to run again. The repo can live anywhere; ~/dotfiles is only a convention.
From Fedora KDE to Minimal
An install on Fedora KDE goes on as it is, with KDE as a fallback session. nightdrive minimal makes it what a fresh install on Minimal is. Run it with --dry-run first: it lists what would go (KDE and what only it needed, some 600 packages) and what stays as yours, and changes nothing. Then, from Nightdrive's desktop or a text console (not Plasma):
nightdrive minimal # asks once; --keep kate,okular keeps KDE apps you still useIt switches to Nightdrive's login screen, takes a read-only btrfs snapshot of the root and lets dnf remove what nothing you keep needs. The kernel, the boot loader and what the system needs to start or repair itself always stay: if dnf would remove one of them, it stops first. KDE's settings move to ~/.local/share/nightdrive/kde-config-<time>, and Wi-Fi networks whose password was in KDE's wallet ask for it again.
The way back is printed at the end and kept in ~/.local/state/nightdrive/minimal-undo.txt: sudo dnf history rollback while the repos still have KDE's versions, or the snapshot in the root's place. Once you're happy with Minimal, delete the snapshot (the same file says how), as it holds on to KDE's files.
From README.md › Install in the Nightdrive repo