Compare commits
2 commits
b533d52727
...
359b8159cc
| Author | SHA1 | Date | |
|---|---|---|---|
| 359b8159cc | |||
| f9bea2df78 |
4 changed files with 17 additions and 12 deletions
|
|
@ -303,6 +303,7 @@
|
|||
auto-cpufreq.nixosModules.default
|
||||
./hosts/tyr/configuration.nix
|
||||
./modules/linux/nixos
|
||||
./modules/servers/tyr
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
|
|
|||
|
|
@ -134,18 +134,6 @@
|
|||
# Enable my specific settings
|
||||
crony.secrets.enable = true;
|
||||
|
||||
# Optimise storage
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 10d";
|
||||
};
|
||||
|
||||
# setup podman for virtualisation
|
||||
virtualisation = {
|
||||
podman = {
|
||||
|
|
|
|||
5
modules/servers/tyr/default.nix
Normal file
5
modules/servers/tyr/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
];
|
||||
}
|
||||
11
modules/servers/tyr/syncthing.nix
Normal file
11
modules/servers/tyr/syncthing.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [8384];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue