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
|
|
|
|
];
|
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
|
2022-10-22 22:18:32 +01:00
|
|
|
git
|
|
|
|
htop
|
|
|
|
nix
|
|
|
|
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;
|
2023-06-17 13:47:47 +01:00
|
|
|
|
|
|
|
custom.hostinfo.enable = true;
|
2022-10-22 22:18:32 +01:00
|
|
|
}
|