mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
use nixOS on libvirt
This commit is contained in:
parent
4e456383ba
commit
6b7c6d529d
6 changed files with 89 additions and 12 deletions
32
nixcfgs/hosts/nixvirt/default.nix
Normal file
32
nixcfgs/hosts/nixvirt/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# ~/.config/nixcfgs/hosts/nixvirt/default.nix
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
nix-flatpak,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
# impure build
|
||||
/etc/nixos/hardware-configuration.nix
|
||||
../../modules/nixos
|
||||
# ../../modules/nixos/users/js0ny.nix
|
||||
# ../../modules/nixos/guest.nix
|
||||
../../modules/nixos/firefox.nix
|
||||
../../modules/nixos/desktop/gnome.nix
|
||||
# ../../modules/nixos/desktop/niri.nix
|
||||
../../modules/nixos/desktop/gnome.nix
|
||||
../../modules/nixos/display-manager/gdm.nix
|
||||
];
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
boot.loader.grub.useOSProber = true;
|
||||
services.qemuGuest.enable = true;
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
networking.hostName = "nixvirt";
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue