nixos-config/systems/LoutreOS/configuration.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

2018-03-31 22:16:38 +02:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
2018-09-04 14:05:06 +02:00
imports = [
2018-09-20 12:22:05 +02:00
../common.nix
2018-09-04 14:05:06 +02:00
./hardware-configuration.nix
./users.nix
./services.nix
];
2018-03-31 22:16:38 +02: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
2018-09-04 14:05:06 +02:00
tmpOnTmpfs = true;
};
2018-04-05 19:22:09 +02:00
2018-09-04 14:05:06 +02:00
services.zfs = {
autoSnapshot.enable = true;
autoScrub.enable = true;
};
2018-03-31 22:16:38 +02:00
2018-09-04 14:05:06 +02:00
networking = {
hostName = "loutreos"; # Define your hostname.
hostId = "7e66e347";
};
2018-03-31 22:16:38 +02:00
2018-05-04 15:25:24 +02:00
nixpkgs.overlays = [
2018-06-09 13:23:26 +02:00
(import ../../overlays/riot-web.nix)
(import ../../overlays/site-max.nix)
(import ../../overlays/site-musique.nix)
2018-06-28 20:52:31 +02:00
(import ../../overlays/dogetipbot-telegram.nix)
(import ../../overlays/unstable_pkgs.nix)
2018-05-04 15:25:24 +02:00
];
2018-05-07 11:35:57 +02:00
2018-09-04 14:05:06 +02:00
services.openssh = {
enable = true;
permitRootLogin = "no";
passwordAuthentication = false;
};
2018-03-31 22:16:38 +02:00
2018-09-04 14:05:06 +02:00
networking.firewall = {
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
enable = true;
};
2018-03-31 22:16:38 +02:00
security.sudo.wheelNeedsPassword = false;
system.autoUpgrade.enable = true;
systemd.services.nixos-upgrade.path = with pkgs; [ gzip gnutar xz.bin config.nix.package.out ];
system.stateVersion = "18.03";
2018-03-31 22:16:38 +02:00
}