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
|
|
|
|
./tailscale.nix
|
|
|
|
];
|
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-01-24 21:33:07 +00:00
|
|
|
agenix.defaultPackage."${system}"
|
2022-10-22 22:18:32 +01:00
|
|
|
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";
|
|
|
|
};
|
2022-10-26 23:04:53 +01:00
|
|
|
networking.firewall.enable = true;
|
2022-10-22 22:18:32 +01:00
|
|
|
}
|