forked from nyanloutre/nixos-config
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
# 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
|
||
gitRev = "baee8283bb858602e6b8d9c4763f11f79d4ac813";
|
||
nixpkgs = fetchTarball "https://github.com/nyanloutre/nixpkgs/archive/${gitRev}.tar.gz";
|
||
in
|
||
{
|
||
imports = [
|
||
../common.nix
|
||
./hardware-configuration.nix
|
||
./users.nix
|
||
./services.nix
|
||
];
|
||
|
||
boot = {
|
||
loader = {
|
||
systemd-boot.enable = true;
|
||
efi.canTouchEfiVariables = true;
|
||
};
|
||
|
||
supportedFilesystems = [ "zfs" ];
|
||
|
||
tmpOnTmpfs = true;
|
||
};
|
||
|
||
nix.nixPath = [
|
||
"nixpkgs=${nixpkgs}"
|
||
"nixos-config=/etc/nixos/configuration.nix"
|
||
];
|
||
|
||
services.zfs = {
|
||
autoSnapshot.enable = true;
|
||
autoScrub.enable = true;
|
||
};
|
||
|
||
networking = {
|
||
hostName = "loutreos"; # Define your hostname.
|
||
hostId = "7e66e347";
|
||
};
|
||
|
||
nixpkgs.overlays = [
|
||
(import ../../overlays/riot-web.nix)
|
||
];
|
||
|
||
services.openssh = {
|
||
enable = true;
|
||
permitRootLogin = "no";
|
||
passwordAuthentication = false;
|
||
};
|
||
|
||
networking.firewall = {
|
||
allowedTCPPorts = [ ];
|
||
allowedUDPPorts = [ ];
|
||
enable = true;
|
||
};
|
||
|
||
security.sudo.wheelNeedsPassword = false;
|
||
|
||
system.stateVersion = "18.03";
|
||
}
|