mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: make virtualbox into specialisation
because i almost never need it
This commit is contained in:
parent
c43bbd0dc4
commit
1ce57ea380
3 changed files with 37 additions and 21 deletions
|
|
@ -921,7 +921,7 @@ My work machine. Built for more security, this is the gold standard of my config
|
||||||
|
|
||||||
"${profilesPath}/optional/nixos/steam.nix"
|
"${profilesPath}/optional/nixos/steam.nix"
|
||||||
"${profilesPath}/optional/nixos/virtualbox.nix"
|
"${profilesPath}/optional/nixos/virtualbox.nix"
|
||||||
# ../optional/nixos/vmware.nix
|
# "${profilesPath}/optional/nixos/vmware.nix"
|
||||||
"${profilesPath}/optional/nixos/autologin.nix"
|
"${profilesPath}/optional/nixos/autologin.nix"
|
||||||
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
||||||
"${profilesPath}/optional/nixos/work.nix"
|
"${profilesPath}/optional/nixos/work.nix"
|
||||||
|
|
@ -5908,11 +5908,14 @@ This opens a few gaming ports and installs the steam configuration suite for gam
|
||||||
:CUSTOM_ID: h:b3523246-14e9-4284-ba22-cebc5ca36732
|
:CUSTOM_ID: h:b3523246-14e9-4284-ba22-cebc5ca36732
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
This sets the VirtualBox configuration. Guest should not be enabled if not direly needed, it will make rebuilds unbearably slow.
|
This sets the VirtualBox configuration. Guest should not be enabled if not direly needed, it will make rebuilds unbearably slow. I only use this privately to run an old editor that does not run well under wine, so I put it into it's own specialisation.
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/optional/nixos/virtualbox.nix
|
#+begin_src nix :tangle profiles/optional/nixos/virtualbox.nix
|
||||||
_:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
specialisation = {
|
||||||
|
VBox.configuration = {
|
||||||
virtualisation.virtualbox = {
|
virtualisation.virtualbox = {
|
||||||
host = {
|
host = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -5923,6 +5926,11 @@ This sets the VirtualBox configuration. Guest should not be enabled if not direl
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# run an older kernel to provide compatibility with windows vm
|
||||||
|
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ in
|
||||||
|
|
||||||
"${profilesPath}/optional/nixos/steam.nix"
|
"${profilesPath}/optional/nixos/steam.nix"
|
||||||
"${profilesPath}/optional/nixos/virtualbox.nix"
|
"${profilesPath}/optional/nixos/virtualbox.nix"
|
||||||
# ../optional/nixos/vmware.nix
|
# "${profilesPath}/optional/nixos/vmware.nix"
|
||||||
"${profilesPath}/optional/nixos/autologin.nix"
|
"${profilesPath}/optional/nixos/autologin.nix"
|
||||||
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
"${profilesPath}/optional/nixos/nswitch-rcm.nix"
|
||||||
"${profilesPath}/optional/nixos/work.nix"
|
"${profilesPath}/optional/nixos/work.nix"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
_:
|
{ lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
specialisation = {
|
||||||
|
VBox.configuration = {
|
||||||
virtualisation.virtualbox = {
|
virtualisation.virtualbox = {
|
||||||
host = {
|
host = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -10,4 +13,9 @@ _:
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
# run an older kernel to provide compatibility with windows vm
|
||||||
|
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue