nixos-config/systems/LoutreOS/configuration.nix

64 lines
1.2 KiB
Nix
Raw Normal View History

2024-10-28 22:18:03 +01:00
{ config, pkgs, inputs, ... }:
2018-03-31 22:16:38 +02:00
{
2018-09-04 14:05:06 +02:00
imports = [
2024-10-28 22:18:03 +01:00
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/flaresolverr.nix"
2019-10-04 22:01:49 +02:00
../common-cli.nix
2018-09-04 14:05:06 +02:00
./hardware-configuration.nix
2024-11-20 16:50:26 +01:00
./network.nix
2018-09-04 14:05:06 +02:00
./users.nix
./services.nix
];
2018-03-31 22:16:38 +02:00
2022-12-30 15:08:20 +01:00
nix.settings.trusted-users = [ "root" "paul" ];
2021-12-16 19:07:52 +01:00
2018-09-04 14:05:06 +02:00
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
2018-03-31 22:16:38 +02:00
2018-09-04 14:05:06 +02:00
supportedFilesystems = [ "zfs" ];
2018-03-31 22:16:38 +02:00
tmp.useTmpfs = true;
2023-09-15 15:27:47 +02:00
2024-10-02 19:05:08 +02:00
# Enabling both boot.enableContainers & virtualisation.containers on system.stateVersion < 22.05 is unsupported
enableContainers = false;
2018-09-04 14:05:06 +02:00
};
2018-04-05 19:22:09 +02:00
2021-01-06 02:06:34 +01:00
documentation.nixos.enable = false;
2018-09-04 14:05:06 +02:00
services.zfs = {
autoSnapshot.enable = true;
2022-06-30 18:58:34 +02:00
autoScrub = {
enable = true;
interval = "monthly";
};
2018-09-04 14:05:06 +02:00
};
2018-03-31 22:16:38 +02:00
2018-09-04 14:05:06 +02:00
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
X11Forwarding = true;
};
2018-09-04 14:05:06 +02:00
};
2018-03-31 22:16:38 +02:00
2020-08-30 16:25:51 +02:00
users = {
groups.autossh = { };
users.autossh = {
home = "/home/autossh";
createHome = true;
group = "autossh";
2021-10-11 10:49:30 +02:00
isSystemUser = true;
2020-08-30 16:25:51 +02:00
};
};
2021-10-11 10:48:26 +02:00
virtualisation.podman.enable = true;
2018-03-31 22:16:38 +02:00
security.sudo.wheelNeedsPassword = false;
system.stateVersion = "18.03";
2018-03-31 22:16:38 +02:00
}