NixOS Containers: Difference between revisions

imported>Vieta
No edit summary
imported>Onny
Remove whitespaces and update example
Line 17: Line 17:


containers.nextcloud = {
containers.nextcloud = {
   autoStart = true;              
   autoStart = true;
   privateNetwork = true;          
   privateNetwork = true;
   hostAddress = "192.168.100.10";
   hostAddress = "192.168.100.10";
   localAddress = "192.168.100.11";
   localAddress = "192.168.100.11";
Line 25: Line 25:
   config = { config, pkgs, ... }: {
   config = { config, pkgs, ... }: {


     services.nextcloud = {                    
     services.nextcloud = {
       enable = true;                  
       enable = true;
       package = pkgs.nextcloud24;
       package = pkgs.nextcloud27;
       hostName = "localhost";
       hostName = "localhost";
       config.adminpassFile = "${pkgs.writeText "adminpass" "test123"}"; # DON'T DO THIS IN PRODUCTION - the password file will be world-readable in the Nix Store!
       config.adminpassFile = "${pkgs.writeText "adminpass" "test123"}"; # DON'T DO THIS IN PRODUCTION - the password file will be world-readable in the Nix Store!
     };
     };


     system.stateVersion = "22.05";
     system.stateVersion = "23.05";


     networking.firewall = {
     networking.firewall = {