1
- # Edit this configuration file to define what should be installed on
2
- # your system. Help is available in the configuration.nix(5) man page
3
- # and in the NixOS manual (accessible by running ‘nixos-help’).
4
-
1
+ # /etc/nixos/
5
2
{ config , pkgs , ... } :
6
3
7
4
{
8
5
imports =
9
6
[ # Include the results of the hardware scan.
10
7
./hardware-configuration.nix
11
8
./remote.conf.nix
12
- ./helpwave-self-hosting.conf .nix
9
+ ./sentry .nix
13
10
] ;
14
11
15
12
# Bootloader.
20
17
networking . hostName = "helpwave" ; # Define your hostname.
21
18
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
22
19
23
- # Configure network proxy if necessary
24
- # networking.proxy.default = "http://user:password@proxy:port/";
25
- # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
26
20
27
21
# Enable networking
28
22
networking . networkmanager . enable = true ;
72
66
alsa . enable = true ;
73
67
alsa . support32Bit = true ;
74
68
pulse . enable = true ;
75
- # If you want to use JACK applications, uncomment this
76
- #jack.enable = true;
77
-
78
- # use the example session manager (no others are packaged yet so this is enabled by default,
79
- # no need to redefine it in your config for now)
80
- #media-session.enable = true;
81
69
} ;
82
70
83
- # Enable touchpad support (enabled default in most desktopManager).
84
- # services.xserver.libinput.enable = true;
85
71
86
- # Define a user account. Don't forget to set a password with ‘passwd’.
87
72
users . users . helpwave = {
88
73
isNormalUser = true ;
89
74
description = "helpwave" ;
99
84
# Allow unfree packages
100
85
nixpkgs . config . allowUnfree = true ;
101
86
102
- #environment.systemPackages = with pkgs; [
103
- # vim
104
- # git
105
- # wget
106
- # nano
107
- # sudo
108
- #];
109
-
110
- # Some programs need SUID wrappers, can be configured further or are
111
- # started in user sessions.
112
- # programs.mtr.enable = true;
113
- # programs.gnupg.agent = {
114
- # enable = true;
115
- # enableSSHSupport = true;
116
- # };
117
-
118
- # List services that you want to enable:
119
-
120
- # Enable the OpenSSH daemon.
121
- #services.openssh.enable = true;
122
- #services.openssh.settings.PermitRootLogin = "yes";
123
-
124
- # Open ports in the firewall.
125
- #networking.firewall.allowedTCPPorts = [ 22 80 443 3389 ];
126
- #networking.firewall.allowedUDPPorts = [ 22 80 443 3389 ];
127
- # Or disable the firewall altogether.
128
- networking . firewall . enable = false ;
129
-
130
- # This value determines the NixOS release from which the default
131
- # settings for stateful data, like file locations and database versions
132
- # on your system were taken. It‘s perfectly fine and recommended to leave
133
- # this value at the release version of the first install of this system.
134
- # Before changing this value read the documentation for this option
135
- # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
136
- system . stateVersion = "24.05" ; # Did you read the comment?
137
87
88
+ # Docker und Docker Compose aktivieren
89
+ services . dockerRegistry . enable = true ;
90
+ virtualisation . docker . enable = true ;
91
+ virtualisation . docker . registries = [ "docker.io" ] ;
92
+ virtualisation . docker . services = [
93
+ {
94
+ name = "sentry" ;
95
+ image = "getsentry/sentry:latest" ; # Ersetze dies durch die passende Version
96
+ ports = [ "9000:9000" ] ;
97
+ environment = {
98
+ SENTRY_SECRET_KEY = "your_secret_key" ;
99
+ SENTRY_DATABASE_URL = "postgres://sentry_user:password@localhost/sentry_db" ;
100
+ SENTRY_REDIS_URL = "redis://localhost:6379" ;
101
+ } ;
102
+ volumes = [
103
+ { hostPath = "/var/lib/sentry" ; containerPath = "/data" }
104
+ ] ;
105
+ }
106
+ ] ;
107
+
108
+
109
+ environment . systemPackages = with pkgs ; [
110
+ git
111
+ makeWrapper
112
+ vim
113
+ git
114
+ wget
115
+ nano
116
+ sudo
117
+ docker-compose
118
+ docker_27
119
+ ] ;
120
+
121
+ networking . firewall = {
122
+ enable = true ;
123
+ allowedTCPPorts = [ 22 80 443 9000 3000 9092 2181 8123 6379 ] ;
124
+ allowedUDPPorts = [ ] ;
125
+ } ;
126
+
127
+
128
+ system . stateVersion = "24.05" ;
138
129
}
0 commit comments