Compare commits

...

2 commits

Author SHA1 Message Date
Laureηt e75a5fc02e
⬆️ nix flake update 2024-01-07 20:11:52 +01:00
Laureηt 03bdffa558
️ (hosts/system) enable stevenblack blocklists 2024-01-07 20:11:48 +01:00
3 changed files with 36 additions and 38 deletions

View file

@ -433,11 +433,11 @@
]
},
"locked": {
"lastModified": 1704383912,
"narHash": "sha256-Be7O73qoOj/z+4ZCgizdLlu+5BkVvO2KO299goZ9cW8=",
"lastModified": 1704498488,
"narHash": "sha256-yINKdShHrtjdiJhov+q0s3Y3B830ujRoSbHduUNyKag=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "26b8adb300e50efceb51fff6859a1a6ba1ade4f7",
"rev": "51e44a13acea71b36245e8bd8c7db53e0a3e61ee",
"type": "github"
},
"original": {
@ -455,11 +455,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1704401523,
"narHash": "sha256-NSomiVEOXMRYlYLkPtBfXmMEL73tvWDAinG6zRWeRPo=",
"lastModified": 1704649868,
"narHash": "sha256-PKVOCPV5i8prioWway5PjRMsICtrVONV3y5W69gQLWw=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "aeeeace102c14ea0ab4df6840ee225e1b14ea970",
"rev": "d7d333d162da2d3fc852b2c7a3faa2709440cefa",
"type": "github"
},
"original": {
@ -522,11 +522,11 @@
"rust-overlay": "rust-overlay_2"
},
"locked": {
"lastModified": 1704230057,
"narHash": "sha256-YTkPHIM/RF1WtWqRAxlaE2lqvzEBa58SZzQZB2sx4PY=",
"lastModified": 1704497899,
"narHash": "sha256-eyImNjgTHaF+be2fnNFY+Lv73rWVj7yOGxrafZNB/gI=",
"owner": "nix-community",
"repo": "lanzaboote",
"rev": "81f7a56f0ee6bb454284feeeb192df56e39d98d1",
"rev": "a454a5894700db8b85d0e08ae1bb870c4b88ef77",
"type": "github"
},
"original": {
@ -549,11 +549,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1704275368,
"narHash": "sha256-Ertx6H6k4UM61g/DjBS+mBUSUgtL6dEQWn0MgDLNbOg=",
"lastModified": 1704629536,
"narHash": "sha256-hCMBZ61Kpj54JD/miAhhoSHWMyP6NWrOmYOSHd0rB4E=",
"owner": "nix-community",
"repo": "nixos-anywhere",
"rev": "1d0b24b0a8b97643e51ed859793c92231807bb2a",
"rev": "4c94cecf3dd551adf1359fb06aa926330f44e5a6",
"type": "github"
},
"original": {
@ -564,11 +564,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1704445197,
"narHash": "sha256-GGtUGSXlwWM3bNTlNgFtsM4TJ2xFMecLjKbfiqOgbZI=",
"lastModified": 1704632650,
"narHash": "sha256-83J/nd/NoLqo3vj0S0Ppqe8L+ijIFiGL6HNDfCCUD/Q=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "03e00336034c75e67609e953ded47c23de7f90f7",
"rev": "c478b3d56969006e015e55aaece4931f3600c1b2",
"type": "github"
},
"original": {
@ -1079,11 +1079,11 @@
]
},
"locked": {
"lastModified": 1704233915,
"narHash": "sha256-GYDC4HjyVizxnyKRbkrh1GugGp8PP3+fJuh40RPCN7k=",
"lastModified": 1704649711,
"narHash": "sha256-+qxqJrZwvZGilGiLQj3QbYssPdYCwl7ejwMImgH7VBQ=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "e434da615ef74187ba003b529cc72f425f5d941e",
"rev": "04f25d7bec9fb29d2c3bacaa48a3304840000d36",
"type": "github"
},
"original": {

View file

@ -8,5 +8,11 @@
# domain name servers, use clouflare family
nameservers = ["1.1.1.2" "1.0.0.2"];
# firewall
firewall.enable = true;
# https://github.com/StevenBlack/hosts
stevenblack.enable = true;
};
}

View file

@ -1,26 +1,18 @@
{lib, ...}: {
# the name of the machine
networking.hostName = "neodymium";
{...}: {
network = {
# the name of the machine
hostName = "neodymium";
# domain name servers, use clouflare family
networking.nameservers = ["1.1.1.2" "1.0.0.2"];
# domain name servers, use clouflare family
nameservers = ["1.1.1.2" "1.0.0.2"];
# use networkManager, see nmcli
networking.networkmanager.enable = true;
# use networkManager, see nmcli
networkmanager.enable = true;
# firewall
networking.firewall = {
enable = true;
# firewall
firewall.enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
# https://github.com/StevenBlack/hosts
stevenblack.enable = true;
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
}