pull out some extra modules
This commit is contained in:
@@ -1,26 +1,17 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./hardware-configuration.nix ../../modules/ssh.nix ];
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
||||
../../modules/backup-server.nix
|
||||
../../modules/ssh.nix
|
||||
|
||||
../../lilac.nix
|
||||
];
|
||||
|
||||
networking.hostName = "backup";
|
||||
|
||||
users.users.lilac = {
|
||||
isNormalUser = true;
|
||||
group = "lilac";
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
users.groups.lilac = {};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
|
||||
users.lilac = import ../../home/lilac.nix;
|
||||
};
|
||||
programs.zsh.enable = true;
|
||||
users.users.lilac.shell = pkgs.zsh;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
time.timeZone = "America/Winnipeg";
|
||||
|
||||
systemd.sleep.settings.Sleep = {
|
||||
@@ -95,15 +86,5 @@ networking = {
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
|
||||
|
||||
services.restic.server = {
|
||||
enable = true;
|
||||
listenAddress = "10.0.0.4:8000";
|
||||
dataDir = "/var/lib/restic";
|
||||
appendOnly = true;
|
||||
extraFlags = [ "--no-auth" ];
|
||||
};
|
||||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 8000 ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user