kernel and unfree

This commit is contained in:
Daniel Langbein 2023-09-20 22:23:48 +02:00
parent ea097702c5
commit 9d10bbcf13
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
4 changed files with 27 additions and 3 deletions

View File

@ -58,4 +58,9 @@ in
networking.hostName = "yodaTab";
services.openssh.ports = [ 22 ];
boot.initrd.network.ssh.port = 22;
# Allow unfree packages.
nixpkgs.config.allowUnfree = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
}

View File

@ -58,4 +58,21 @@ in
networking.hostName = "yodaTux";
services.openssh.ports = [ 22 ];
boot.initrd.network.ssh.port = 22;
# Allow unfree packages.
nixpkgs.config.allowUnfree = false;
# List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default.
#boot.kernelPackages = pkgs.linuxPackages;
# Latest.
boot.kernelPackages = pkgs.linuxPackages_latest;
# Hardened.
# https://archlinux.org/packages/extra/x86_64/linux-hardened/
# -> https://github.com/anthraxx/linux-hardened
#boot.kernelPackages = pkgs.linuxPackages_hardened;
# Free/Libre.
# https://en.wikipedia.org/wiki/Linux-libre
#boot.kernelPackages = pkgs.linuxPackages-libre;
}

View File

@ -60,4 +60,9 @@ in
networking.hostName = "yodaYoga";
services.openssh.ports = [ 2224 ];
boot.initrd.network.ssh.port = 2225;
# Allow unfree packages.
nixpkgs.config.allowUnfree = false;
boot.kernelPackages = pkgs.linuxPackages;
}

View File

@ -46,9 +46,6 @@
# Configure console keymap.
console.keyMap = "de-latin1-nodeadkeys";
# Allow unfree packages.
nixpkgs.config.allowUnfree = true;
# Define a user account. Don't forget to set a password with `passwd`.
users.users.yoda = {
isNormalUser = true;