initial leptin config
This commit is contained in:
parent
b4a8708538
commit
70b453279b
3 changed files with 75 additions and 0 deletions
|
@ -248,6 +248,7 @@
|
||||||
];
|
];
|
||||||
bantime-increment.enable = true;
|
bantime-increment.enable = true;
|
||||||
};
|
};
|
||||||
|
# TODO: check security settings
|
||||||
samba = {
|
samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shares = {
|
shares = {
|
||||||
|
|
|
@ -20,5 +20,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
darwinConfigurations = {
|
||||||
|
leptin = nixpkgs.lib.darwinSystem {
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
modules = [
|
||||||
|
./leptin/configuration.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
66
leptin/configuration.nix
Normal file
66
leptin/configuration.nix
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
package = pkgs.nixFlakes;
|
||||||
|
optimise.automatic = true;
|
||||||
|
extraOptions = ''
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
networking = {
|
||||||
|
hostName = "leptin";
|
||||||
|
};
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
caddy
|
||||||
|
cargo
|
||||||
|
bat
|
||||||
|
chezmoi
|
||||||
|
delta
|
||||||
|
git
|
||||||
|
difftastic
|
||||||
|
btop
|
||||||
|
alejandra
|
||||||
|
neovim
|
||||||
|
hyperfine
|
||||||
|
lazygit
|
||||||
|
docker
|
||||||
|
lsd
|
||||||
|
zsh
|
||||||
|
sheldon
|
||||||
|
starship
|
||||||
|
tealdeer
|
||||||
|
statix
|
||||||
|
tmux
|
||||||
|
viddy
|
||||||
|
yazi
|
||||||
|
zoxide
|
||||||
|
fzf
|
||||||
|
mcfly
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
programs = {
|
||||||
|
nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||||
|
flake = "/Users/mira/nix-config";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
fail2ban = {
|
||||||
|
enable = true;
|
||||||
|
ignoreIP = ["10.0.0.0/8" "172.16.0.0/12" "192.168.0.0/16"];
|
||||||
|
};
|
||||||
|
virtualisation.docker = {
|
||||||
|
enableOnBoot = true;
|
||||||
|
enable = true;
|
||||||
|
autoPrune.enable = true;
|
||||||
|
extraOptions = "--userns-remap=default";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue