blah
This commit is contained in:
@@ -8,6 +8,24 @@ in {
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.niri.enable = true;
|
||||
|
||||
# Necessary for e.g. screensharing.
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
# See https://github.com/YaLTeR/niri/wiki/Important-Software#portals.
|
||||
# Niri's NixOS module appears to automatically bring in
|
||||
# xdg-desktop-portal-gnome and gnome-keyring.
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
];
|
||||
xdgOpenUsePortal = true;
|
||||
config.preferred = {
|
||||
default = [ "gtk" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
29
modules/nixos/qemu.nix
Normal file
29
modules/nixos/qemu.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.sydnix.qemu;
|
||||
in {
|
||||
options.sydnix.qemu = {
|
||||
enable = mkEnableOption "Qemu";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
(let
|
||||
# Necessary for UEFI boot with libvirt.
|
||||
qemu-uefi = pkgs.writeShellScriptBin "qemu-system-x86_64-uefi" ''
|
||||
qemu-system-x86_64 \
|
||||
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \
|
||||
"$@"
|
||||
'';
|
||||
in {
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.virtiofsd
|
||||
qemu-uefi
|
||||
];
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
});
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user