Add tc_cake to nas
This commit is contained in:
parent
4bf996f96b
commit
87a1c262f0
3 changed files with 54 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, modulesPath, lib, nixos-hardware, ... } @ args: {
|
||||
{ config, pkgs, modulesPath, lib, nixos-hardware, mrobbetts-extra, ... } @ args: {
|
||||
networking.hostName = "nas";
|
||||
networking.hostId = "70af00ed";
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
|||
./services/mautrix-signal.nix
|
||||
./services/router.nix
|
||||
./services/syncthing.nix
|
||||
"${mrobbetts-extra}/tc_cake.nix"
|
||||
];
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
|
@ -249,4 +250,37 @@
|
|||
hardware.nvidia.prime.offload.enable = false;
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
home-manager.users.darkkirb = import ./home-manager/darkkirb.nix { desktop = false; inherit args; };
|
||||
|
||||
networking.tc_cake = {
|
||||
enp1s0f0u4 = {
|
||||
shapeEgress = {
|
||||
bandwidth = "4mbit";
|
||||
extraArgs = "docsis nat ack-filter";
|
||||
};
|
||||
shapeIngress = {
|
||||
bandwidth = "33mbit";
|
||||
ifb = "ifb4enp1s0f0u4";
|
||||
};
|
||||
};
|
||||
enp8s0 = {
|
||||
shapeEgress = {
|
||||
bandwidth = "1gbit";
|
||||
extraArgs = "ethernet nonat ack-filter lan";
|
||||
};
|
||||
shapeIngress = {
|
||||
bandwidth = "1gbit";
|
||||
ifb = "ifb4enp8s0";
|
||||
};
|
||||
};
|
||||
wlp6s0 = {
|
||||
shapeEgress = {
|
||||
bandwidth = "65mbit";
|
||||
extraArgs = "ethernet nonat ack-filter lan";
|
||||
};
|
||||
shapeIngress = {
|
||||
bandwidth = "65mbit";
|
||||
ifb = "ifb4wlp6s0";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -249,6 +249,22 @@
|
|||
"url": "https://git.chir.rs/CarolineHusky/MiiFox.net"
|
||||
}
|
||||
},
|
||||
"mrobbetts-extra": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1651793149,
|
||||
"narHash": "sha256-b2PGTx8FOypHN5yvyAYYfeBqI0MLAQ4t+9g1NJGSTvM=",
|
||||
"owner": "mrobbetts",
|
||||
"repo": "nixos_extra_modules",
|
||||
"rev": "0fb4e94fceaef7fed497562bab31922a6bfd24b3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "mrobbetts",
|
||||
"repo": "nixos_extra_modules",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"newNixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1647380550,
|
||||
|
@ -472,6 +488,7 @@
|
|||
"hosts-list": "hosts-list",
|
||||
"hydra": "hydra",
|
||||
"miifox-net": "miifox-net",
|
||||
"mrobbetts-extra": "mrobbetts-extra",
|
||||
"nix": "nix",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
|
|
|
@ -24,6 +24,8 @@ rec {
|
|||
miifox-net.url = "git+https://git.chir.rs/CarolineHusky/MiiFox.net";
|
||||
miifox-net.flake = false;
|
||||
nixpkgs-systemd-249.url = github:NixOS/nixpkgs/47494ea53c11312dcbf8e453a13f8e605814aa0f;
|
||||
mrobbetts-extra.url = github:mrobbetts/nixos_extra_modules;
|
||||
mrobbetts-extra.flake = false;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sops-nix, home-manager, chir-rs, nur, polymc, ... } @ args:
|
||||
|
|
Loading…
Reference in a new issue