started container config
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
(import ./disko.nix { device1 = "/dev/nvme0n1"; device2 = "/dev/nvme1n1"; })
|
||||
|
||||
inputs.impermanence.nixosModules.impermanence
|
||||
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
|
||||
inputs.home-manager.nixosModules.default
|
||||
|
||||
@@ -96,7 +98,7 @@
|
||||
hostName = "homebox";
|
||||
nameservers = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
||||
networkmanager.enable = true;
|
||||
firewall.allowedTCPPorts = [ 22 ];
|
||||
firewall.allowedTCPPorts = [ 22 80 443 9080 9443 ];
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05"; # Did you read the comment?
|
||||
@@ -164,7 +166,7 @@
|
||||
programs.fuse.userAllowOther = true;
|
||||
|
||||
home-manager = {
|
||||
backupFileExtension = ".backup";
|
||||
backupFileExtension = "backup";
|
||||
extraSpecialArgs = {inherit inputs;};
|
||||
users = {
|
||||
"nathan" = lib.mkMerge [
|
||||
|
||||
7
system-config/services/containers/default.nix
Normal file
7
system-config/services/containers/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }: {
|
||||
|
||||
imports = [
|
||||
./gitlab
|
||||
./traefik
|
||||
];
|
||||
}
|
||||
33
system-config/services/containers/gitlab/default.nix
Normal file
33
system-config/services/containers/gitlab/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.opts.virtualization.gitlab.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.gitlab.enable {
|
||||
|
||||
virtualisation.containers.gitlab = {
|
||||
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.11";
|
||||
config = {
|
||||
|
||||
services.gitlab = {
|
||||
enable = true;
|
||||
#https = true;
|
||||
#port = 443;
|
||||
#host = "localhost";
|
||||
databasePasswordFile = pkgs.writeText "dbPassword" "hellothere!";
|
||||
initialRootPasswordFile = pkgs.writeText "rootPassword" "generalkenobi";
|
||||
|
||||
secrets = {
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
26
system-config/services/containers/traefik/default.nix
Normal file
26
system-config/services/containers/traefik/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.opts.virtualization.traefik.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.traefik.enable {
|
||||
|
||||
services.traefik = {
|
||||
|
||||
enable = true;
|
||||
|
||||
staticConfigOpts = {
|
||||
entryPoints = {
|
||||
web = {};
|
||||
websecure = {};
|
||||
log = {};
|
||||
certificatesResolvers
|
||||
};
|
||||
};
|
||||
|
||||
dynamicConfigOpts = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,5 +4,6 @@
|
||||
./ollama
|
||||
./openssh
|
||||
./pipewire
|
||||
# ./containers
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user