nixos-config/configuration.nix

83 lines
2.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, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
2018-03-31 22:35:32 +02:00
./users.nix
2018-04-01 15:04:49 +02:00
./services.nix
2018-03-31 22:16:38 +02:00
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "zfs" ];
2018-04-05 19:22:09 +02:00
services.zfs.autoSnapshot.enable = true;
2018-04-05 19:40:47 +02:00
services.zfs.autoScrub.enable = true;
2018-04-05 19:22:09 +02:00
2018-03-31 22:16:38 +02:00
networking.hostName = "loutreos"; # Define your hostname.
networking.hostId = "7e66e347";
# Select internationalisation properties.
# i18n = {
# consoleFont = "Lat2-Terminus16";
# consoleKeyMap = "en";
# defaultLocale = "en_US.UTF-8";
# };
# Set your time zone.
time.timeZone = "Europe/Paris";
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
neovim
git
tmux
2018-04-22 00:00:25 +02:00
ncdu
2018-03-31 22:16:38 +02:00
];
2018-04-03 20:16:52 +02:00
nixpkgs.config.allowUnfree = true;
2018-04-14 19:59:52 +02:00
users.defaultUserShell = pkgs.zsh;
2018-03-31 22:52:31 +02:00
programs.zsh.enable = true;
2018-04-14 19:59:52 +02:00
programs.zsh.enableAutosuggestions = true;
programs.zsh.enableCompletion = true;
programs.zsh.syntaxHighlighting.enable = true;
programs.zsh.ohMyZsh.enable = true;
programs.zsh.ohMyZsh.plugins = [ "git" "colored-man-pages" "command-not-found" "extract" ];
programs.zsh.ohMyZsh.theme = "bureau";
2018-03-31 22:52:31 +02:00
2018-03-31 22:16:38 +02:00
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.bash.enableCompletion = true;
# programs.mtr.enable = true;
# programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.permitRootLogin = "no";
2018-04-01 11:27:39 +02:00
networking.firewall.allowedTCPPorts = [ ];
networking.firewall.allowedUDPPorts = [ ];
networking.firewall.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 ];
2018-04-13 16:10:51 +02:00
services.fstrim.enable = true;
2018-04-07 19:38:22 +02:00
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 15d";
2018-03-31 22:16:38 +02:00
}