Loki: re-enabling services
This commit is contained in:
parent
723ba0ab6a
commit
507ed80b96
2 changed files with 192 additions and 194 deletions
|
|
@ -122,53 +122,53 @@ with lib; {
|
||||||
enable = true;
|
enable = true;
|
||||||
discovery = true;
|
discovery = true;
|
||||||
};
|
};
|
||||||
# samba = {
|
samba = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# enableNmbd = true;
|
enableNmbd = true;
|
||||||
# enableWinbindd = true;
|
enableWinbindd = true;
|
||||||
# nsswins = true;
|
nsswins = true;
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# workgroup = WORKGROUP
|
workgroup = WORKGROUP
|
||||||
# load printers = no
|
load printers = no
|
||||||
# smb encrypt = required
|
smb encrypt = required
|
||||||
# '';
|
'';
|
||||||
# shares =
|
shares =
|
||||||
# let
|
let
|
||||||
# common = {
|
common = {
|
||||||
# "public" = "no";
|
"public" = "no";
|
||||||
# "writeable" = "yes";
|
"writeable" = "yes";
|
||||||
# "create mask" = "0700";
|
"create mask" = "0700";
|
||||||
# "directory mask" = "2700";
|
"directory mask" = "2700";
|
||||||
# "browseable" = "yes";
|
"browseable" = "yes";
|
||||||
# "guest ok" = "no";
|
"guest ok" = "no";
|
||||||
# "read only" = "no";
|
"read only" = "no";
|
||||||
# "force group" = "users";
|
"force group" = "users";
|
||||||
# };
|
};
|
||||||
# in
|
in
|
||||||
# {
|
{
|
||||||
# bertof = recursiveUpdate common {
|
bertof = recursiveUpdate common {
|
||||||
# path = "/home/bertof/";
|
path = "/home/bertof/";
|
||||||
# comment = "Bertof samba share";
|
comment = "Bertof samba share";
|
||||||
# "force user" = "bertof";
|
"force user" = "bertof";
|
||||||
# "valid users" = "bertof";
|
"valid users" = "bertof";
|
||||||
# };
|
};
|
||||||
# tiziano = recursiveUpdate common {
|
tiziano = recursiveUpdate common {
|
||||||
# path = "/home/tiziano/";
|
path = "/home/tiziano/";
|
||||||
# comment = "Tiziano samba share";
|
comment = "Tiziano samba share";
|
||||||
# "force user" = "tiziano";
|
"force user" = "tiziano";
|
||||||
# "valid users" = "tiziano";
|
"valid users" = "tiziano";
|
||||||
# };
|
};
|
||||||
# condiviso = recursiveUpdate common {
|
condiviso = recursiveUpdate common {
|
||||||
# path = "/mnt/raid0/condiviso";
|
path = "/mnt/condiviso";
|
||||||
# comment = "Samba share condiviso";
|
comment = "Samba share condiviso";
|
||||||
# "valid users" = "bertof tiziano";
|
"valid users" = "bertof tiziano";
|
||||||
# "create mask" = "0770";
|
"create mask" = "0770";
|
||||||
# "directory mask" = "2770";
|
"directory mask" = "2770";
|
||||||
# "force create mode" = "0660";
|
"force create mode" = "0660";
|
||||||
# "force directory mode" = "2770";
|
"force directory mode" = "2770";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
smartd.enable = true;
|
smartd.enable = true;
|
||||||
sonarr = {
|
sonarr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -176,15 +176,15 @@ with lib; {
|
||||||
group = "users";
|
group = "users";
|
||||||
};
|
};
|
||||||
thermald.enable = true;
|
thermald.enable = true;
|
||||||
# transmission = {
|
transmission = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# openFirewall = true;
|
openFirewall = true;
|
||||||
# group = "users";
|
group = "users";
|
||||||
# settings = {
|
settings = {
|
||||||
# download-dir = "/mnt/raid0/condiviso/Scaricati/Torrent";
|
download-dir = "/mnt/condiviso/Torrent";
|
||||||
# incomplete-dir = "/mnt/raid0/condiviso/Scaricati/Torrent/.incomplete";
|
incomplete-dir = "/mnt/condiviso/Torrent/.incomplete";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
xserver = {
|
xserver = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# videoDrivers = [ "nvidia" ];
|
# videoDrivers = [ "nvidia" ];
|
||||||
|
|
@ -249,34 +249,27 @@ with lib; {
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
bertof_raid0 = {
|
bertof = {
|
||||||
subvolume = "/home/bertof/";
|
subvolume = "/home/bertof/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
ALLOW_USERS="bertof"
|
ALLOW_USERS="bertof"
|
||||||
${commonExtraConfig}
|
${commonExtraConfig}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
tiziano_raid0 = {
|
tiziano = {
|
||||||
subvolume = "/home/tiziano/";
|
subvolume = "/home/tiziano/";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
ALLOW_USERS="tiziano"
|
ALLOW_USERS="tiziano"
|
||||||
${commonExtraConfig}
|
${commonExtraConfig}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# condiviso_raid0 = {
|
condiviso = {
|
||||||
# subvolume = "/mnt/raid0/condiviso";
|
subvolume = "/mnt/condiviso";
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# ALLOW_USERS="bertof tiziano"
|
ALLOW_USERS="bertof tiziano"
|
||||||
# ${commonExtraConfig}
|
${commonExtraConfig}
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
# condiviso_raid1 = {
|
|
||||||
# subvolume = "/mnt/raid1/condiviso";
|
|
||||||
# extraConfig = ''
|
|
||||||
# ALLOW_USERS="bertof tiziano"
|
|
||||||
# ${commonExtraConfig}
|
|
||||||
# '';
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -318,125 +311,125 @@ with lib; {
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.home-assistant = {
|
services.home-assistant = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# # openFirewall = true;
|
# openFirewall = true;
|
||||||
# config = {
|
config = {
|
||||||
# default_config = { };
|
default_config = { };
|
||||||
|
|
||||||
# homeassistant = {
|
homeassistant = {
|
||||||
# name = "Casa";
|
name = "Casa";
|
||||||
# latitude = "!secret home-latitude";
|
latitude = "!secret home-latitude";
|
||||||
# longitude = "!secret home-longitude";
|
longitude = "!secret home-longitude";
|
||||||
# elevation = 17;
|
elevation = 17;
|
||||||
# unit_system = "metric";
|
unit_system = "metric";
|
||||||
# time_zone = "Europe/Rome";
|
time_zone = "Europe/Rome";
|
||||||
# external_url = "https://home-assistant.bertof.net";
|
external_url = "https://home-assistant.bertof.net";
|
||||||
# };
|
};
|
||||||
|
|
||||||
# http = {
|
http = {
|
||||||
# use_x_forwarded_for = true;
|
use_x_forwarded_for = true;
|
||||||
# trusted_proxies = [ "172.23.4.159" "::1" "127.0.0.1" ];
|
trusted_proxies = [ "172.23.4.159" "::1" "127.0.0.1" ];
|
||||||
# };
|
};
|
||||||
|
|
||||||
# automation = "!include automations.yaml";
|
automation = "!include automations.yaml";
|
||||||
# scene = "!include scenes.yaml";
|
scene = "!include scenes.yaml";
|
||||||
|
|
||||||
# cloud = { };
|
cloud = { };
|
||||||
# config = { };
|
config = { };
|
||||||
# device_tracker = [{
|
device_tracker = [{
|
||||||
# platform = "bluetooth_tracker";
|
platform = "bluetooth_tracker";
|
||||||
# request_rssi = true;
|
request_rssi = true;
|
||||||
# }];
|
}];
|
||||||
# esphome = { };
|
esphome = { };
|
||||||
# frontend = { };
|
frontend = { };
|
||||||
# # google_assistant = { project_id = "light-cathode-372118"; };
|
# google_assistant = { project_id = "light-cathode-372118"; };
|
||||||
# history = { };
|
history = { };
|
||||||
# logbook = { };
|
logbook = { };
|
||||||
# # logger.default = "debug";
|
# logger.default = "debug";
|
||||||
# logger.default = "info";
|
logger.default = "info";
|
||||||
# "map" = { };
|
"map" = { };
|
||||||
# mobile_app = { };
|
mobile_app = { };
|
||||||
# recorder.purge_keep_days = 30;
|
recorder.purge_keep_days = 30;
|
||||||
# shopping_list = { };
|
shopping_list = { };
|
||||||
# sun = { };
|
sun = { };
|
||||||
# system_health = { };
|
system_health = { };
|
||||||
# tts = [{
|
tts = [{
|
||||||
# platform = "google_translate";
|
platform = "google_translate";
|
||||||
# language = "it";
|
language = "it";
|
||||||
# # tld = "it";
|
# tld = "it";
|
||||||
# }];
|
}];
|
||||||
# };
|
};
|
||||||
# configDir = "/var/lib/hass";
|
configDir = "/var/lib/hass";
|
||||||
# configWritable = true;
|
configWritable = true;
|
||||||
# extraPackages = ps: with ps; [ securetar ];
|
extraPackages = ps: with ps; [ securetar ];
|
||||||
# extraComponents = [
|
extraComponents = [
|
||||||
# "default_config"
|
"default_config"
|
||||||
|
|
||||||
# "accuweather"
|
"accuweather"
|
||||||
# "alert"
|
"alert"
|
||||||
# "analytics"
|
"analytics"
|
||||||
# "bayesian"
|
"bayesian"
|
||||||
# "binary_sensor"
|
"binary_sensor"
|
||||||
# "blueprint"
|
"blueprint"
|
||||||
# "bluetooth_le_tracker"
|
"bluetooth_le_tracker"
|
||||||
# "bluetooth_tracker"
|
"bluetooth_tracker"
|
||||||
# "button"
|
"button"
|
||||||
# "camera"
|
"camera"
|
||||||
# "cast"
|
"cast"
|
||||||
# "caldav"
|
"caldav"
|
||||||
# "calendar"
|
"calendar"
|
||||||
# "citybikes"
|
"citybikes"
|
||||||
# "configurator"
|
"configurator"
|
||||||
# "coronavirus"
|
"coronavirus"
|
||||||
# "cover"
|
"cover"
|
||||||
# "default_config"
|
"default_config"
|
||||||
# "derivative"
|
"derivative"
|
||||||
# "device_automation"
|
"device_automation"
|
||||||
# "device_sun_light_trigger"
|
"device_sun_light_trigger"
|
||||||
# "device_tracker"
|
"device_tracker"
|
||||||
# "dlib_face_detect"
|
"dlib_face_detect"
|
||||||
# "dlib_face_identify"
|
"dlib_face_identify"
|
||||||
# "dlna_dmr"
|
"dlna_dmr"
|
||||||
# "dlna_dms"
|
"dlna_dms"
|
||||||
# "esphome"
|
"esphome"
|
||||||
# "flux"
|
"flux"
|
||||||
# "gdacs"
|
"gdacs"
|
||||||
# "google"
|
"google"
|
||||||
# "google_translate"
|
"google_translate"
|
||||||
# "group"
|
"group"
|
||||||
# "hassio"
|
"hassio"
|
||||||
# "jellyfin"
|
"jellyfin"
|
||||||
# "local_file"
|
"local_file"
|
||||||
# "media_player"
|
"media_player"
|
||||||
# "met"
|
"met"
|
||||||
# "meteoalarm"
|
"meteoalarm"
|
||||||
# "network"
|
"network"
|
||||||
# "nmap_tracker"
|
"nmap_tracker"
|
||||||
# "notify"
|
"notify"
|
||||||
# "ping"
|
"ping"
|
||||||
# "plex"
|
"plex"
|
||||||
# "proximity"
|
"proximity"
|
||||||
# "radarr"
|
"radarr"
|
||||||
# "radio_browser"
|
"radio_browser"
|
||||||
# "random"
|
"random"
|
||||||
# "scene"
|
"scene"
|
||||||
# "schedule"
|
"schedule"
|
||||||
# "sonarr"
|
"sonarr"
|
||||||
# "spotify"
|
"spotify"
|
||||||
# "tcp"
|
"tcp"
|
||||||
# "telegram"
|
"telegram"
|
||||||
# "telegram_bot"
|
"telegram_bot"
|
||||||
# "template"
|
"template"
|
||||||
# "threshold"
|
"threshold"
|
||||||
# "tod" # times of the day
|
"tod" # times of the day
|
||||||
# "trend"
|
"trend"
|
||||||
# "upnp"
|
"upnp"
|
||||||
# "wake_on_lan"
|
"wake_on_lan"
|
||||||
# "workday"
|
"workday"
|
||||||
# "zoneminder"
|
"zoneminder"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
|
|
||||||
security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
Defaults pwfeedback
|
Defaults pwfeedback
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/44c53e75-a00d-47bc-a99b-2544fe513e51";
|
device = "/dev/disk/by-uuid/44c53e75-a00d-47bc-a99b-2544fe513e51";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
options = [ "compress=lzo" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
|
|
@ -24,21 +25,25 @@
|
||||||
fileSystems."/home/bertof" = {
|
fileSystems."/home/bertof" = {
|
||||||
device = "/dev/disk/by-partlabel/5T";
|
device = "/dev/disk/by-partlabel/5T";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=@bertof" ];
|
options = [ "subvol=@bertof" "compress=lzo" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home/tiziano" = {
|
fileSystems."/home/tiziano" = {
|
||||||
device = "/dev/disk/by-partlabel/5T";
|
device = "/dev/disk/by-partlabel/5T";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "subvol=@tiziano" ];
|
options = [ "subvol=@tiziano" "compress=lzo" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
fileSystems."/mnt/condiviso" = {
|
||||||
{
|
device = "/dev/disk/by-partlabel/5T";
|
||||||
device = "/swapfile";
|
fsType = "btrfs";
|
||||||
size = 1024 * 4;
|
options = [ "subvol=@condiviso" "compress=lzo" ];
|
||||||
}
|
};
|
||||||
];
|
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/swapfile";
|
||||||
|
size = 1024 * 4;
|
||||||
|
}];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue