Leptin working

This commit is contained in:
Mira 2024-07-03 12:58:48 -04:00
parent 3224356042
commit 31eae31dd6
3 changed files with 43 additions and 18 deletions

21
flake.lock generated
View file

@ -1,5 +1,25 @@
{ {
"nodes": { "nodes": {
"nix-darwin": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1719845423,
"narHash": "sha256-ZLHDmWAsHQQKnmfyhYSHJDlt8Wfjv6SQhl2qek42O7A=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "ec12b88104d6c117871fad55e931addac4626756",
"type": "github"
},
"original": {
"owner": "LnL7",
"repo": "nix-darwin",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1719848872, "lastModified": 1719848872,
@ -18,6 +38,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
} }

View file

@ -12,7 +12,7 @@
}; };
}; };
outputs = { outputs = inputs@{
self, self,
nixpkgs, nixpkgs,
nix-darwin, nix-darwin,
@ -26,7 +26,7 @@
}; };
}; };
darwinConfigurations = { darwinConfigurations = {
leptin = nixpkgs.lib.darwinSystem { leptin = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
modules = [ modules = [
./leptin/configuration.nix ./leptin/configuration.nix

View file

@ -9,6 +9,7 @@
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
optimise.automatic = true; optimise.automatic = true;
# optimiser.user = "root";
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
@ -33,7 +34,7 @@
docker docker
lsd lsd
zsh zsh
sheldon # sheldon
starship starship
tealdeer tealdeer
statix statix
@ -46,21 +47,24 @@
wget wget
]; ];
programs = { programs = {
nh = { # nh = {
enable = true; # enable = true;
clean.enable = true; # clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3"; # clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/Users/mira/nix-config"; # flake = "/Users/mira/nix-config";
}; # };
}; };
fail2ban = { # fail2ban = {
enable = true; # enable = true;
ignoreIP = ["10.0.0.0/8" "172.16.0.0/12" "192.168.0.0/16"]; # ignoreIP = ["10.0.0.0/8" "172.16.0.0/12" "192.168.0.0/16"];
}; # };
virtualisation.docker = { # virtualisation.docker = {
enableOnBoot = true; # enableOnBoot = true;
enable = true; # enable = true;
autoPrune.enable = true; # autoPrune.enable = true;
extraOptions = "--userns-remap=default"; # extraOptions = "--userns-remap=default";
# };
services = {
nix-daemon.enable = true;
}; };
} }