From 831f9b1b5c2a1edf14428df3c6792c82350b1bcd Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Mon, 16 Dec 2019 02:41:55 -0700 Subject: [PATCH] misc#make-linux-fast-again: init --- profiles/misc/default.nix | 1 + profiles/misc/make-linux-fast-again.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 profiles/misc/make-linux-fast-again.nix diff --git a/profiles/misc/default.nix b/profiles/misc/default.nix index aab211d..b00c411 100644 --- a/profiles/misc/default.nix +++ b/profiles/misc/default.nix @@ -3,5 +3,6 @@ imports = [ ./stubby.nix ./adblocking.nix + ./make-linux-fast-again.nix ]; } diff --git a/profiles/misc/make-linux-fast-again.nix b/profiles/misc/make-linux-fast-again.nix new file mode 100644 index 0000000..c85adb3 --- /dev/null +++ b/profiles/misc/make-linux-fast-again.nix @@ -0,0 +1,14 @@ +# file: make-linux-fast-again.nix +{ pkgs, config, ... }: +let + inherit (builtins) readFile fetchurl; + cmdline = readFile ( + fetchurl { + url = "https://make-linux-fast-again.com"; + sha256 = "sha256:10diw5xn5jjx79nvyjqcpdpcqihnr3y0756fsgiv1nq7w28ph9w6"; + } + ); +in +{ + boot.kernelParams = pkgs.lib.splitString " " cmdline; +}