chore: initial commit
This commit is contained in:
commit
cc4f3398ff
37 changed files with 2210 additions and 0 deletions
4
modules/desktop/virtualisation/default.nix
Normal file
4
modules/desktop/virtualisation/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
./docker.nix
|
||||
./virtualbox.nix
|
||||
]
|
||||
21
modules/desktop/virtualisation/docker.nix
Normal file
21
modules/desktop/virtualisation/docker.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, user, ... }:
|
||||
|
||||
{
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
};
|
||||
|
||||
users.groups.docker.members = [ "${user}" ];
|
||||
|
||||
#environment = {
|
||||
# interactiveShellInit = ''
|
||||
# alias rtmp='docker start nginx-rtmp'
|
||||
# ''; # Alias to easily start container
|
||||
#};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
distrobox
|
||||
];
|
||||
}
|
||||
|
||||
20
modules/desktop/virtualisation/virtualbox.nix
Normal file
20
modules/desktop/virtualisation/virtualbox.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, user, ... }:
|
||||
|
||||
{
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "${user}" ];
|
||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
|
||||
|
||||
#environment = {
|
||||
# interactiveShellInit = ''
|
||||
# alias rtmp='docker start nginx-rtmp'
|
||||
# ''; # Alias to easily start container
|
||||
#};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vagrant
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue