!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

404 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org107 Servers

Load older messages


SenderMessageTime
13 Dec 2024
@brainlessbitch:matrix.orgbunbun joined the room.09:08:35
@brainlessbitch:matrix.orgbunbunhello all, i was wondering if anyone knows of a way to use ccache for kernel builds? currently my build takes almost 3 hours for one tiny patch and it's kind of a problem. i've done some looking and tried some different things i found but none of them worked09:12:51
@k900:0upti.meK900ccache doesn't really work well with Nix09:13:40
@k900:0upti.meK900What is your patch for?09:13:43
@brainlessbitch:matrix.orgbunbuna very stupid thing09:13:56
@brainlessbitch:matrix.orgbunbun
diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
index d19c78a78ae3..8c87d66bd4b6 100644
--- a/drivers/firmware/dmi-id.c
+++ b/drivers/firmware/dmi-id.c
@@ -19,6 +19,17 @@ struct dmi_device_attribute{
 #define to_dmi_dev_attr(_dev_attr) \
 	container_of(_dev_attr, struct dmi_device_attribute, dev_attr)

+void apply_twinkpad_replacement(char* str)
+{
+	static const char thinkpadstr[] = "thinkpad";
+	while (*str) {
+		if (!strncasecmp(str, thinkpadstr, sizeof(thinkpadstr) - 1)) {
+			str[1] ^= 'H' ^ 'W';
+		}
+		++str;
+	}
+}
+
 static ssize_t sys_dmi_field_show(struct device *dev,
 				  struct device_attribute *attr,
 				  char *page)
@@ -26,6 +37,7 @@ static ssize_t sys_dmi_field_show(struct device *dev,
 	int field = to_dmi_dev_attr(attr)->field;
 	ssize_t len;
 	len = scnprintf(page, PAGE_SIZE, "%s\n", dmi_get_system_info(field));
+	apply_twinkpad_replacement(page);
 	page[len-1] = '\n';
 	return len;
 }
09:14:20
@k900:0upti.meK900I assume "have you considered not doing that" isn't useful then, is it09:16:05
@brainlessbitch:matrix.orgbunbuni think it's worth it, but that's just me09:16:54
@k900:0upti.meK900You could also try changing the string that's actually reported by the firmware09:20:17
@k900:0upti.meK900Using e.g. https://www.ami.com/bios-uefi-utilities/09:20:21
@brainlessbitch:matrix.orgbunbunoh interesting, that's not something i've seen before09:21:12
@ctheune:matrix.flyingcircus.ioChristian Theune joined the room.12:52:26
@benjaminsparks:chat.alugha.appBen Sparks joined the room.13:32:22
@elvishjerricco:matrix.orgElvishJerricco I used this a long time ago. There's a couple of settings that are important there. https://gist.github.com/ElvishJerricco/152c4e7dbffabe7cee2e3a421ccf47ef 14:17:26
@elvishjerricco:matrix.orgElvishJerriccoIIRC some of the env variables are necessary for cache hits14:17:51
@elvishjerricco:matrix.orgElvishJerriccootherwise it barely helps14:17:56
14 Dec 2024
@maxmati:memleak.plMateusz NowotyƄski joined the room.02:03:55
@mixis:bau-ha.usmixis joined the room.10:18:15
@domagojding:matrix.org@domagojding:matrix.org left the room.10:29:49
16 Dec 2024
@bropal:aria-net.orgbropal joined the room.09:36:10
17 Dec 2024
@arclightmat:matrix.org@arclightmat:matrix.org left the room.00:26:20
18 Dec 2024
@tim126:matrix.orgtim126 joined the room.15:50:17
@dmiskovic:matrix.org@dmiskovic:matrix.org joined the room.19:36:29
19 Dec 2024
@adam:robins.wtfadamcstephensWhat kind of sicko makes a trailing comma required in a list?03:25:16
@adam:robins.wtfadamcstephensThe people at grafana apparently03:25:22
@adam:robins.wtfadamcstephensit's a syntax error in the alloy config language to not have a comma after the last element 03:25:47
@hexa:lossy.networkhexajson 03:32:34
@hexa:lossy.networkhexa * json is the most popular offender here03:32:48
@adam:robins.wtfadamcstephensright but it's the opposite. json requires it to be missing04:04:22
@hexa:lossy.networkhexaoh, lol04:05:12

Show newer messages


Back to Room ListRoom Version: 10