From ac37954e304090931fb454ad74ddf7b5c717f982 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 27 Jun 2020 17:37:08 +0000 Subject: [PATCH] Use kernel package from nixos-*-small (updates faster) --- README.md | 2 ++ configuration.nix | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c6fc54..d7b8c9c 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ Notes: nano secrets.nix nix-channel --add https://nixos.org/channels/nixos-unstable unstable + nix-channel --add https://nixos.org/channels/nixos-20.03-small nixos-small nix-channel --update nixos-generate-config --root /mnt @@ -48,3 +49,4 @@ Notes: Initial password for `user` is `user`. sudo nix-channel --add https://nixos.org/channels/nixos-unstable unstable + sudo nix-channel --add https://nixos.org/channels/nixos-20.03-small nixos-small diff --git a/configuration.nix b/configuration.nix index ae2f38c..3816f5e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,5 @@ -# nix-channel --add https://nixos.org/channels/nixos-19.03 nixos +# nix-channel --add https://nixos.org/channels/nixos-20.03 nixos +# nix-channel --add https://nixos.org/channels/nixos-20.03-small nixos-small # nix-channel --add https://nixos.org/channels/nixos-unstable unstable # nix-channel --update # @@ -6,6 +7,7 @@ let unstable = import {}; + nixos-small = import {}; in { imports = [ @@ -23,7 +25,7 @@ in { time.timeZone = "UTC"; - boot.kernelPackages = unstable.linuxPackages_latest; + boot.kernelPackages = nixos-small.linuxPackages_latest; boot.blacklistedKernelModules = [ "nouveau" ]; i18n.defaultLocale = "en_US.UTF-8";