# Libvirtd on Ubuntu with Nix

**URL:** https://discourse.nixosstag.fcio.net/t/libvirtd-on-ubuntu-with-nix/7259
**Category:** Guides
**Created:** [May 18, 2020, 6:56am UTC](https://discourse.nixosstag.fcio.net/t/libvirtd-on-ubuntu-with-nix/7259 "2020-05-18T06:56:39Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![tomberek](https://discourse.nixosstag.fcio.net/user_avatar/discourse.nixosstag.fcio.net/tomberek/32/283_2.png) [@tomberek](https://discourse.nixosstag.fcio.net/u/tomberek)
#### Post date: [May 22, 2020, 5:53pm UTC](https://discourse.nixosstag.fcio.net/t/libvirtd-on-ubuntu-with-nix/7259/8 "2020-05-22T17:53:11Z")

</div>

Some other approaches:

> [@Systemd backend or "using NixOps to manage Ubuntu"](https://discourse.nixosstag.fcio.net/t/systemd-backend-or-using-nixops-to-manage-ubuntu/1546/4):
>
> I was able to reduce the hackery to the following. It only needs a modified ./switch-to-configuration with these sections commented out: @@ -35,8 +35,8 @@ @@ -51,17 +51,17 @@ @@ -309,47 +309,47 @@ @@ -371,7 +371,7 @@ @@ -401,10 +401,10 @@ @@ -413,17 +413,17 @@ Remaining modifications are to forcibly clear out some elements of system.activationScripts. The following can be used by NixOps after some minimal prep on the Ubuntu machine Install Nix .bashrc add to PATH /nix/var/nix/profiles/defau…

> [@NixOS-like experience on Ubuntu in AWS](https://discourse.nixosstag.fcio.net/t/nixos-like-experience-on-ubuntu-in-aws/2422):
>
> I’ve had fun recently with making server Ubuntu behave more like NixOS. I’ll share some parts, which work for me, and I hope people can suggest improvements (drop Ubuntu? haha, nice try). So, my story is based around Nix, overlays, home-manager and declarative containers. Let’s start with required installations I’ll post installation instructions as Salt state config, but you can adapt to whatever you like. Nix # TODO: set secure\_path in /etc/sudoers to Nix-enabled value # In the meanwhile `…

Disnix, been experimenting with this. It can be hooked into Ubuntu fairly easily.

---

_[View the full topic](https://discourse.nixosstag.fcio.net/t/libvirtd-on-ubuntu-with-nix/7259)._
