From 569afc9d2302ab039237aa8f31655daf721cdd27 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 6 Mar 2024 17:37:00 -0500 Subject: [PATCH] added livecd build, podman -> virtualization. added libvirt. --- flake.nix | 27 ++++++++++++++++--- .../{podman => virtualization}/default.nix | 3 +++ system/sound/default.nix | 2 +- 3 files changed, 28 insertions(+), 4 deletions(-) rename modules/{podman => virtualization}/default.nix (85%) diff --git a/flake.nix b/flake.nix index 02deeb0e..a6c9061a 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ ./system ./users/aly ./desktop/kde - ./modules/podman + ./modules/virtualization ./modules/steam ./modules/via-qmk ./modules/logitech @@ -76,7 +76,7 @@ ./system ./users/aly ./desktop/gnome - ./modules/podman + ./modules/virtualization ./modules/steam ./modules/via-qmk ./modules/logitech @@ -103,7 +103,7 @@ ./system ./users/aly ./desktop/gnome - ./modules/podman + ./modules/virtualization ./modules/steam ./modules/via-qmk ./modules/logitech @@ -119,6 +119,27 @@ } ]; }; + + live-gnome-unstable = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + (nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix") + ./system + ./desktop/gnome + ./modules/virtualization + ./modules/steam + ./modules/via-qmk + ./modules/logitech + + # Add managed flatpak module. + nix-flatpak.nixosModules.nix-flatpak + + # Add installer. + ({ pkgs, ... }: { + environment.systemPackages = [ pkgs.calamares-nixos ]; + }) + ]; + }; }; packages.x86_64-linux.default = home-manager.defaultPackage.x86_64-linux; diff --git a/modules/podman/default.nix b/modules/virtualization/default.nix similarity index 85% rename from modules/podman/default.nix rename to modules/virtualization/default.nix index 051e47d6..d7fb2ac2 100644 --- a/modules/podman/default.nix +++ b/modules/virtualization/default.nix @@ -5,7 +5,10 @@ distrobox ]; + programs.virt-manager.enable = true; + virtualisation = { + libvirtd.enable = true; podman = { enable = true; diff --git a/system/sound/default.nix b/system/sound/default.nix index cd375324..d015400d 100644 --- a/system/sound/default.nix +++ b/system/sound/default.nix @@ -4,7 +4,7 @@ # Enable sound with pipewire. sound.enable = true; hardware.pulseaudio = { - enable = false; + enable = lib.mkForce false; # Enables extra codecs like aptx. package = pkgs.pulseaudioFull; };