# Headless Raspberry pi setup

**URL:** https://discourse.nixos.org/t/headless-raspberry-pi-setup/17664
**Category:** Help
**Created:** [February 12, 2022, 9:33pm UTC](https://discourse.nixos.org/t/headless-raspberry-pi-setup/17664 "2022-02-12T21:33:02Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Majiir](https://discourse.nixos.org/user_avatar/discourse.nixos.org/majiir/32/11049_2.png) [@Majiir](https://discourse.nixos.org/u/Majiir)
#### Post date: [September 27, 2023, 2:51pm UTC](https://discourse.nixos.org/t/headless-raspberry-pi-setup/17664/7 "2023-09-27T14:51:41Z")

</div>

> [@plsnotracking](#):
>
> - Updating packages in the future? Do you build and redeploy the image?

You can deploy an update as usual, no need to rebuild the image.

> [@plsnotracking](#):
>
> - What happens to the stuff on your SD card in terms of AppData? Does it get wiped out every time an update is made? (The answer is most likely not but just making sure).

You can build an image that doesn’t do root-on-tmpfs or anything. It just works like a normal NixOS installation. I do it with this configuration that suppresses some of the installer modules:

```nix
{
  imports = [
    "${nixpkgs}/nixos/modules/installer/sd-card/sd-image.nix"
    "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
  ];
  disabledModules = [
    "profiles/all-hardware.nix"
    "profiles/base.nix"
  ];
}

```

---

_[View the full topic](https://discourse.nixos.org/t/headless-raspberry-pi-setup/17664)._
