too much to mention
This commit is contained in:
4
config/nixos/packages/common/default.nix
Normal file
4
config/nixos/packages/common/default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./virtualization.nix ];
|
||||
}
|
27
config/nixos/packages/common/virtualization.nix
Normal file
27
config/nixos/packages/common/virtualization.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ config, pkgs, ... }: {
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
daemon.settings = {
|
||||
"live-restore" = false;
|
||||
};
|
||||
};
|
||||
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
|
||||
qemu = {
|
||||
package = pkgs.qemu;
|
||||
runAsRoot = true;
|
||||
swtpm.enable = true;
|
||||
ovmf = {
|
||||
enable = true;
|
||||
packages = [ pkgs.OVMF.fd ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
8
config/nixos/packages/workstation/default.nix
Normal file
8
config/nixos/packages/workstation/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./steam.nix
|
||||
./1password.nix
|
||||
./flatpak.nix
|
||||
];
|
||||
}
|
10
config/nixos/packages/workstation/flatpak.nix
Normal file
10
config/nixos/packages/workstation/flatpak.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }: {
|
||||
services.flatpak.enable = true;
|
||||
systemd.services.flatpak-repo = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.flatpak ];
|
||||
script = ''
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user