use docker on sgx-nixos
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
e181ef3e75
commit
47a192c1e9
|
@ -30,6 +30,8 @@
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
# jetbrains.enable = true;
|
# jetbrains.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
user.extraGroups = [ "docker" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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}";
|
||||||
|
|
BIN
modules/nixos/user/profile.jpg
Normal file
BIN
modules/nixos/user/profile.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Binary file not shown.
Before Width: | Height: | Size: 90 KiB |
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue