Unified cgroup hierarchy, add m1 rules
This commit is contained in:
parent
957bc0fe0b
commit
cefb94c5c2
7
externals/rules/m1n1.nix
vendored
Normal file
7
externals/rules/m1n1.nix
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ writeTextFile }:
|
||||||
|
|
||||||
|
writeTextFile {
|
||||||
|
name = "m1n1-udev-rules";
|
||||||
|
text = builtins.readFile ./m1n1.rules;
|
||||||
|
destination = "/etc/udev/rules.d/80-m1n1.rules";
|
||||||
|
}
|
7
externals/rules/m1n1.rules
vendored
Normal file
7
externals/rules/m1n1.rules
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
SUBSYSTEM=="tty", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="316d", GOTO="m1n1"
|
||||||
|
GOTO="not_m1n1"
|
||||||
|
LABEL="m1n1"
|
||||||
|
SUBSYSTEM=="tty", ATTRS{bInterfaceNumber}=="00", KERNEL=="ttyACM*", SYMLINK+="m1n1"
|
||||||
|
SUBSYSTEM=="tty", ATTRS{bInterfaceNumber}=="02", KERNEL=="ttyACM*", SYMLINK+="m1n1-sec"
|
||||||
|
LABEL="not_m1n1"
|
24
flake.lock
24
flake.lock
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665475263,
|
"lastModified": 1665996265,
|
||||||
"narHash": "sha256-T4at7d+KsQNWh5rfjvOtQCaIMWjSDlSgQZKvxb+LcEY=",
|
"narHash": "sha256-/k9og6LDBQwT+f/tJ5ClcWiUl8kCX5m6ognhsAxOiCY=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "17208be516fc36e2ab0ceb064d931e90eb88b2a3",
|
"rev": "b81e128fc053ab3159d7b464d9b7dedc9d6a6891",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -23,11 +23,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665839131,
|
"lastModified": 1666873549,
|
||||||
"narHash": "sha256-0KYo13PfwvPw5i/SC+hGy3hsgR++Co7SIzv+0e9YOnM=",
|
"narHash": "sha256-a6Eu1Qv/EndjepSMja5SvcG+4vM5Rl2gzJD7xscRHss=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "674d05f9ae2249d606a0e6fc63e522d2031a27ac",
|
"rev": "419dcc0ec767803182ed01a326f134230578bf60",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -38,11 +38,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665856284,
|
"lastModified": 1666867875,
|
||||||
"narHash": "sha256-FQusb2DuFo8UF0jhUSPFhDKc40jRbHcdyyw4anN20WA=",
|
"narHash": "sha256-3nD7iQXd/J6KjkT8IjozTuA5p8qjiLKTxvOUmH+AzNM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "be44bf672c61a284f759898d1e59077b00655c4c",
|
"rev": "c132d0837dfb9035701dcd8fc91786c605c855c3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -54,11 +54,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665848363,
|
"lastModified": 1666869603,
|
||||||
"narHash": "sha256-3Jow1YxzPtQnck1bAAvbVxgRH4gNnkIdw871Vm6UtAU=",
|
"narHash": "sha256-3V53or4Vpu4+LrGfGSh3T2V8+qf5RP6nRuex9GywkwE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "83b198a2083774844962c854f811538323f9f7b1",
|
"rev": "2001e2b31c565bcdf7bc13062b8d7cfccaca05b8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
@ -17,6 +17,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# no more cgroups v1
|
||||||
|
systemd.enableUnifiedCgroupHierarchy = lib.mkForce true;
|
||||||
|
|
||||||
# Breaks IPv4 on bridge
|
# Breaks IPv4 on bridge
|
||||||
boot.kernel.sysctl."net.bridge.bridge-nf-call-iptables" = 0;
|
boot.kernel.sysctl."net.bridge.bridge-nf-call-iptables" = 0;
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,10 @@
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.udev.packages = [
|
||||||
|
(pkgs.callPackage ../../externals/rules/m1n1.nix { })
|
||||||
|
];
|
||||||
|
|
||||||
hardware.opengl.extraPackages = with pkgs; [ vulkan-validation-layers ];
|
hardware.opengl.extraPackages = with pkgs; [ vulkan-validation-layers ];
|
||||||
|
|
||||||
# Home
|
# Home
|
||||||
|
|
Loading…
Reference in a new issue