Last active
August 20, 2021 11:55
-
-
Save offlinehacker/af12978e3df87f8fdb552ee471e26b70 to your computer and use it in GitHub Desktop.
nixos container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ...}: { | |
imports = [ | |
./nixos/modules/profiles/minimal.nix | |
]; | |
boot.isContainer = true; | |
boot.specialFileSystems = lib.mkForce {}; | |
networking.hostName = ""; | |
services.journald.console = "/dev/console"; | |
systemd.services.audit.enable = false; | |
systemd.services.systemd-logind.enable = false; | |
systemd.services.console-getty.enable = false; | |
services.nscd.enable = false; | |
systemd.sockets.nix-daemon.enable = lib.mkDefault false; | |
systemd.services.nix-daemon.enable = lib.mkDefault false; | |
services.postgresql.enable = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, lib, ...}: { | |
imports = [ | |
./nixos/modules/profiles/minimal.nix | |
]; | |
boot.isContainer = true; | |
boot.specialFileSystems = lib.mkForce {}; | |
networking.hostName = ""; | |
services.journald.console = "/dev/console"; | |
systemd.services.audit.enable = false; | |
systemd.services.systemd-logind.enable = false; | |
systemd.services.console-getty.enable = false; | |
services.nscd.enable = false; | |
systemd.sockets.nix-daemon.enable = lib.mkDefault false; | |
systemd.services.nix-daemon.enable = lib.mkDefault false; | |
services.postgresql.enable = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
podman run --systemd=true --pids-limit 0 --tmpfs /run --tmpfs /run/wrappers -ti localhost/xtruder/nixos-postgresql:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment