2020-07-27 06:18:59 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2020-01-04 06:06:31 +01:00
|
|
|
let inherit (lib) fileContents;
|
2020-07-31 06:17:28 +02:00
|
|
|
in
|
|
|
|
{
|
2019-12-17 23:56:02 +01:00
|
|
|
nix.package = pkgs.nixFlakes;
|
2019-12-05 06:36:36 +01:00
|
|
|
|
2020-01-04 06:06:31 +01:00
|
|
|
nix.systemFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
|
2019-12-05 06:36:36 +01:00
|
|
|
|
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
binutils
|
|
|
|
coreutils
|
|
|
|
curl
|
2021-02-15 06:17:24 +01:00
|
|
|
deploy-rs
|
2020-08-02 21:28:41 +02:00
|
|
|
direnv
|
2019-12-05 06:36:36 +01:00
|
|
|
dnsutils
|
2020-07-07 02:25:32 +02:00
|
|
|
dosfstools
|
2019-12-05 06:36:36 +01:00
|
|
|
fd
|
2021-04-06 13:37:40 +02:00
|
|
|
fzf
|
2019-12-05 06:36:36 +01:00
|
|
|
git
|
2021-04-06 13:37:40 +02:00
|
|
|
bat
|
|
|
|
neovim
|
2019-12-26 08:17:44 +01:00
|
|
|
gotop
|
2019-12-17 05:13:33 +01:00
|
|
|
gptfdisk
|
2019-12-05 06:36:36 +01:00
|
|
|
iputils
|
2020-07-21 02:04:37 +02:00
|
|
|
jq
|
2020-12-16 22:48:40 +01:00
|
|
|
manix
|
2019-12-05 06:36:36 +01:00
|
|
|
moreutils
|
2021-02-15 06:17:24 +01:00
|
|
|
nix-index
|
2021-04-06 20:59:09 +02:00
|
|
|
tmux
|
2020-07-07 02:25:32 +02:00
|
|
|
nmap
|
2019-12-05 06:36:36 +01:00
|
|
|
ripgrep
|
2020-07-07 02:25:32 +02:00
|
|
|
whois
|
2021-04-13 09:02:39 +02:00
|
|
|
|
2021-04-13 16:07:20 +02:00
|
|
|
imagemagick
|
|
|
|
youtube-dl
|
|
|
|
ffmpeg
|
|
|
|
|
2021-04-13 09:02:39 +02:00
|
|
|
libqalculate
|
2021-04-20 08:10:58 +02:00
|
|
|
nur.repos.xe.comma
|
2019-12-05 06:36:36 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts = {
|
2020-01-04 06:06:31 +01:00
|
|
|
fonts = with pkgs; [ powerline-fonts dejavu_fonts ];
|
2019-12-05 06:36:36 +01:00
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
monospace = [ "DejaVu Sans Mono for Powerline" ];
|
|
|
|
sansSerif = [ "DejaVu Sans" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
gc.automatic = true;
|
|
|
|
optimise.automatic = true;
|
|
|
|
useSandbox = true;
|
|
|
|
allowedUsers = [ "@wheel" ];
|
|
|
|
trustedUsers = [ "root" "@wheel" ];
|
|
|
|
extraOptions = ''
|
2020-12-26 06:09:09 +01:00
|
|
|
keep-outputs = true
|
|
|
|
keep-derivations = true
|
2021-02-17 20:54:41 +01:00
|
|
|
fallback = true
|
2019-12-05 06:36:36 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2021-04-06 13:37:40 +02:00
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
2020-07-27 06:24:28 +02:00
|
|
|
|
2019-12-05 06:36:36 +01:00
|
|
|
services.earlyoom.enable = true;
|
2020-01-06 08:38:12 +01:00
|
|
|
users.mutableUsers = false;
|
2019-12-05 06:36:36 +01:00
|
|
|
}
|