nixos-config/systems/LoutreOS/configuration.nix

65 lines
1.3 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, ... }:
let
2018-12-23 01:10:59 +01:00
gitRev = "baee8283bb858602e6b8d9c4763f11f79d4ac813";
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
in
2018-03-31 22:16:38 +02:00
{
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
nix.nixPath = [
"nixpkgs=${nixpkgs}"
"nixos-config=/etc/nixos/configuration.nix"
];
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)
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 = {
2018-11-26 17:25:26 +01:00
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
2018-09-04 14:05:06 +02:00
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
}