use docker on sgx-nixos

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-01-18 16:03:51 +01:00
parent e181ef3e75
commit 227144bceb
6 changed files with 13 additions and 9 deletions

View file

@ -30,6 +30,8 @@
ssh.enable = true; ssh.enable = true;
# jetbrains.enable = true; # jetbrains.enable = true;
}; };
extraGroups = [ "docker" ];
}; };
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;

View file

@ -13,7 +13,7 @@ let
in in
{ {
options.plusultra.nix = with types; { options.plusultra.nix = with types; {
enable = mkBoolOpt true "Whether or not to manage nix configuration."; enable = mkBoolOpt false "Whether or not to manage nix configuration.";
package = mkOpt package pkgs.nixUnstable "Which nix package to use."; package = mkOpt package pkgs.nixUnstable "Which nix package to use.";
default-substituter = { default-substituter = {

View file

@ -7,7 +7,7 @@
with lib; with lib;
with lib.plusultra; let with lib.plusultra; let
cfg = config.plusultra.user; cfg = config.plusultra.user;
defaultIconFileName = "profile.png"; defaultIconFileName = "profile.jpg";
defaultIcon = pkgs.stdenvNoCC.mkDerivation { defaultIcon = pkgs.stdenvNoCC.mkDerivation {
name = "default-icon"; name = "default-icon";
src = ./. + "/${defaultIconFileName}"; src = ./. + "/${defaultIconFileName}";

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

View file

@ -69,17 +69,19 @@ with lib.plusultra;
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDsb/Tr69YN5MQLweWPuJaRGm+h2kOyxfD6sqKEDTIwoAAAABHNzaDo= harald@fedora.fritz.box" "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIDsb/Tr69YN5MQLweWPuJaRGm+h2kOyxfD6sqKEDTIwoAAAABHNzaDo= harald@fedora.fritz.box"
]; ];
virtualisation = { virtualisation.docker.enable = true;
podman = {
enable = true; # virtualisation = {
# podman = {
# enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement # Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true; # dockerCompat = true;
# For Nixos version > 22.11 # For Nixos version > 22.11
defaultNetwork.settings = { dns_enabled = true; }; # defaultNetwork.settings = { dns_enabled = true; };
}; # };
}; # };
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;