1
0

Use kernel package from nixos-*-small (updates faster)

This commit is contained in:
dump_stack() 2020-06-27 17:37:08 +00:00
parent ee26cc2386
commit ac37954e30
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 6 additions and 2 deletions

View File

@ -36,6 +36,7 @@ Notes:
nano secrets.nix nano secrets.nix
nix-channel --add https://nixos.org/channels/nixos-unstable unstable 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 nix-channel --update
nixos-generate-config --root /mnt nixos-generate-config --root /mnt
@ -48,3 +49,4 @@ Notes:
Initial password for `user` is `user`. 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-unstable unstable
sudo nix-channel --add https://nixos.org/channels/nixos-20.03-small nixos-small

View File

@ -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 --add https://nixos.org/channels/nixos-unstable unstable
# nix-channel --update # nix-channel --update
# #
@ -6,6 +7,7 @@
let let
unstable = import <unstable> {}; unstable = import <unstable> {};
nixos-small = import <nixos-small> {};
in { in {
imports = imports =
[ <nixpkgs/nixos/modules/profiles/hardened.nix> [ <nixpkgs/nixos/modules/profiles/hardened.nix>
@ -23,7 +25,7 @@ in {
time.timeZone = "UTC"; time.timeZone = "UTC";
boot.kernelPackages = unstable.linuxPackages_latest; boot.kernelPackages = nixos-small.linuxPackages_latest;
boot.blacklistedKernelModules = [ "nouveau" ]; boot.blacklistedKernelModules = [ "nouveau" ];
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";