nixos/modules/common/default.nix
Jake Hillion 2b2ebd9e0b
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
tmux: initial configuration
2023-01-11 22:16:11 +00:00

56 lines
1.0 KiB
Nix

{ pkgs, lib, config, ... }:
{
imports = [
../home/default.nix
./shell.nix
./ssh.nix
./tailscale.nix
];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 90d";
};
};
nixpkgs.config.allowUnfree = true;
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_GB.UTF-8";
users = {
mutableUsers = false;
users."jake" = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # enable sudo
};
};
security.sudo.wheelNeedsPassword = false;
environment = {
systemPackages = with pkgs; [
git
htop
nix
vim
];
variables.EDITOR = "vim";
shellAliases = {
ls = "ls -p --color=auto";
};
};
networking = rec {
nameservers = [ "1.1.1.1" "8.8.8.8" "100.100.100.100" ];
networkmanager.dns = "none";
};
networking.firewall.enable = true;
}