Cleanup of some configuration: jellyfin, nvim, systems
This commit is contained in:
parent
b21c3b559b
commit
67243bad11
4 changed files with 8 additions and 10 deletions
|
|
@ -3,9 +3,6 @@
|
||||||
{
|
{
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
# jellyfin frontend
|
|
||||||
8096
|
|
||||||
8920
|
|
||||||
#nginx
|
#nginx
|
||||||
80
|
80
|
||||||
443
|
443
|
||||||
|
|
@ -22,6 +19,7 @@
|
||||||
# 2. override default hardening measure from NixOS - this is default since 22.05
|
# 2. override default hardening measure from NixOS - this is default since 22.05
|
||||||
systemd.services.jellyfin.serviceConfig.PrivateDevices = lib.mkForce false;
|
systemd.services.jellyfin.serviceConfig.PrivateDevices = lib.mkForce false;
|
||||||
|
|
||||||
|
## Expose jelly to "the world"
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
virtualHosts."${lib.strings.fileContents ../../../../secrets/letsencrypt/mediaserver/domain}" = {
|
virtualHosts."${lib.strings.fileContents ../../../../secrets/letsencrypt/mediaserver/domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ filetype plugin indent on
|
||||||
let g:netrw_liststyle = 3
|
let g:netrw_liststyle = 3
|
||||||
set nobackup
|
set nobackup
|
||||||
set noswapfile
|
set noswapfile
|
||||||
set pastetoggle=<F3>
|
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
(pkgs.writeTextFile {
|
(pkgs.writeTextFile {
|
||||||
name = "dev-device-no-auto-name";
|
name = "dev-device-no-auto-name";
|
||||||
text = ''
|
text = ''
|
||||||
SUBSYSTEM=="net", ACTION=="add", DEVTYPE!=="?*", ATTR{address}=="04:7c:16:10:27:5e", NAME="eth0"
|
SUBSYSTEM=="net", ACTION=="add", ENV{DEVTYPE}!="?*", ATTR{address}=="04:7c:16:10:27:5e", NAME="eth0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
destination = "/etc/udev/rules.d/70-persistent-net.rules";
|
destination = "/etc/udev/rules.d/70-persistent-net.rules";
|
||||||
|
|
@ -50,12 +50,12 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.utf8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
layout = "us";
|
xkb.layout = "us";
|
||||||
xkbVariant = "";
|
xkb.variant = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
|
@ -94,5 +94,4 @@
|
||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.stateVersion = "22.05"; # Did you read the comment?
|
system.stateVersion = "22.05"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
name = "dev-device-no-auto-name";
|
name = "dev-device-no-auto-name";
|
||||||
# xps11 uses a usb device as an ethernet port
|
# xps11 uses a usb device as an ethernet port
|
||||||
text = ''
|
text = ''
|
||||||
SUBSYSTEM=="net", ACTION=="add", DEVTYPE!=="?*", ATTR{address}=="00:e0:4c:68:13:bf", NAME="eth0"
|
SUBSYSTEM=="net", ACTION=="add", ENV{DEVTYPE}!="?*", ATTR{address}=="00:e0:4c:68:13:bf", NAME="eth0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
destination = "/etc/udev/rules.d/70-persistent-net.rules";
|
destination = "/etc/udev/rules.d/70-persistent-net.rules";
|
||||||
|
|
@ -116,4 +116,6 @@
|
||||||
# servers. You should change this only after NixOS release notes say you
|
# servers. You should change this only after NixOS release notes say you
|
||||||
# should.
|
# should.
|
||||||
system.stateVersion = "20.03"; # Did you read the comment?
|
system.stateVersion = "20.03"; # Did you read the comment?
|
||||||
|
# postgres 11 has EOL'd
|
||||||
|
services.postgresql.package = pkgs.postgresql_15;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue