Use kernel package from nixos-*-small (updates faster)
This commit is contained in:
parent
3ed2413c3d
commit
d070d1401f
@ -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
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user