nixos-config/systems/LoutreOS/configuration.nix

110 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, ... }:
{
2018-09-04 14:05:06 +02:00
imports = [
./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
time.timeZone = "Europe/Paris";
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/sudo.nix)
(import ../../overlays/neovim.nix)
(import ../../overlays/site-max.nix)
(import ../../overlays/site-musique.nix)
2018-06-26 14:13:45 +02:00
(import ../../overlays/vsftpd.nix)
2018-06-28 20:52:31 +02:00
(import ../../overlays/dogetipbot-telegram.nix)
2018-08-28 15:29:48 +02:00
(import ../../overlays/jackett.nix)
2018-05-04 15:25:24 +02:00
];
2018-03-31 22:16:38 +02:00
environment.systemPackages = with pkgs; [
neovim
git
tmux
2018-04-22 00:00:25 +02:00
ncdu
2018-06-09 13:29:41 +02:00
beets
2018-06-19 17:40:03 +02:00
rclone
borgbackup
bind
tig
2018-06-26 14:13:45 +02:00
openssl
lftp
2018-06-28 20:51:42 +02:00
nix-prefetch-scripts
2018-07-09 17:18:58 +02:00
smartmontools
2018-07-26 11:05:03 +02:00
htop
telnet
2018-08-31 17:14:34 +02:00
tldr
fzf
2018-09-16 16:26:50 +02:00
file
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-08-31 17:14:34 +02:00
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
interactiveShellInit = ''
source "$(${pkgs.fzf}/bin/fzf-share)/key-bindings.zsh"
'';
ohMyZsh = {
enable = true;
plugins = [ "git" "colored-man-pages" "command-not-found" "extract" ];
theme = "bureau";
};
};
2018-03-31 22:52:31 +02:00
2018-05-07 11:35:57 +02:00
environment.variables = { EDITOR = "nvim"; };
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 ];
2018-04-07 19:38:22 +02:00
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 15d";
system.stateVersion = "18.03";
2018-03-31 22:16:38 +02:00
}