nixos/modules/common/default.nix

61 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-24 21:33:07 +00:00
{ pkgs, lib, config, agenix, ... }:
2022-10-22 22:18:32 +01:00
{
imports = [
2023-01-11 20:22:35 +00:00
../home/default.nix
2022-10-22 22:18:32 +01:00
./shell.nix
./ssh.nix
2024-04-07 13:54:52 +01:00
./update_scripts.nix
2022-10-22 22:18:32 +01:00
];
2022-11-13 16:37:00 +00:00
2022-10-22 22:18:32 +01:00
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 90d";
};
};
2022-11-11 22:48:56 +00:00
nixpkgs.config.allowUnfree = true;
2022-10-22 22:18:32 +01:00
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; [
2023-02-11 17:59:48 +00:00
agenix.packages."${system}".default
2024-02-04 10:02:47 +00:00
gh
2022-10-22 22:18:32 +01:00
git
htop
nix
2024-02-04 10:02:47 +00:00
sapling
2022-10-22 22:18:32 +01:00
vim
];
variables.EDITOR = "vim";
shellAliases = {
ls = "ls -p --color=auto";
};
};
networking = rec {
2023-04-29 23:34:37 +01:00
nameservers = [ "1.1.1.1" "8.8.8.8" ];
2022-10-22 22:18:32 +01:00
networkmanager.dns = "none";
};
2022-10-26 23:04:53 +01:00
networking.firewall.enable = true;
custom.hostinfo.enable = true;
2022-10-22 22:18:32 +01:00
}