gurkan
/
nixos-config
Archived
1
0
Fork 0

Some replacing and security

This commit is contained in:
Gürkan 2021-09-07 16:25:42 +02:00
parent 5cffa9ec2e
commit 35ff45d140
2 changed files with 38 additions and 34 deletions

View File

@ -5,38 +5,4 @@
# This has to be manually symlinked per host
/etc/nixos/special.nix
];
# When there is a false positive
# nixpkgs.config.allowBroken = true;
i18n = {
defaultLocale = "en_DK.UTF-8";
};
time.timeZone = "Europe/Berlin";
boot = {
tmpOnTmpfs = true;
kernel.sysctl = {
"kernel.pty.max" = 24000;
"kernel.sysrq" = 1;
"vm.swappiness" = 10;
};
cleanTmpDir = true;
};
services = {
journald.extraConfig = ''
SystemMaxUse=1G
'';
};
nix = {
# package = pkgs.nixFlakes;
extraOptions = ''
keep-outputs = true
keep-derivations = true
# experimental-features = nix-command flakes
'';
};
}

View File

@ -1,4 +1,7 @@
{ config, lib, pkgs, ... }:
# Common options for all machines
{
imports =
[
@ -12,4 +15,39 @@
./syncthing.nix
./users.nix
];
# When there is a false positive
# nixpkgs.config.allowBroken = true;
i18n = {
defaultLocale = "en_DK.UTF-8";
};
time.timeZone = "Europe/Berlin";
boot = {
tmpOnTmpfs = true;
kernel.sysctl = {
"kernel.pty.max" = 24000;
"kernel.sysrq" = 1;
"vm.swappiness" = 10;
};
cleanTmpDir = true;
};
services = {
journald.extraConfig = ''
SystemMaxUse=1G
'';
};
nix = {
allowedUsers = [ "@wheel" ];
# package = pkgs.nixFlakes;
extraOptions = ''
keep-outputs = true
keep-derivations = true
# experimental-features = nix-command flakes
'';
};
}