This commit is contained in:
Tasia Iso 2024-04-22 21:24:54 +02:00
parent 1d06c2f1f6
commit 455f8dadcc
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
12 changed files with 50 additions and 23 deletions

View file

@ -46,7 +46,7 @@
}) })
config.nix.registry; config.nix.registry;
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
outputs.overlays.additions outputs.overlays.additions
outputs.overlays.modifications outputs.overlays.modifications

View file

@ -3,6 +3,15 @@
./plasma-packages.nix ./plasma-packages.nix
]; ];
services.displayManager = {
sddm = {
enable = true;
wayland.enable = true;
};
defaultSession = "plasma";
};
services.desktopManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
# Use ksshaskpass to access stored secrets # Use ksshaskpass to access stored secrets

View file

@ -2,14 +2,7 @@
networking = { networking = {
networkmanager = { networkmanager = {
enable = true; enable = true;
wifi = {
powersave = true;
scanRandMacAddress = true;
# XXX https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1091
#backend = "iwd";
# Generate a random MAC for each WiFi and associate the two permanently.
macAddress = "stable";
};
# Randomize MAC for every ethernet connetion # Randomize MAC for every ethernet connetion
ethernet.macAddress = "random"; ethernet.macAddress = "random";
connectionConfig = { connectionConfig = {

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
pkgs,
lib,
...
}: {
# Unfree packages that can be installes regardless of whether "allow-unfree.nix" is imported # Unfree packages that can be installes regardless of whether "allow-unfree.nix" is imported
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [

View file

@ -0,0 +1,4 @@
{
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = false;
}

5
common/hardware/tpm2.nix Normal file
View file

@ -0,0 +1,5 @@
{
security.tpm2.enable = true;
security.tpm2.pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so
security.tpm2.tctiEnvironment.enable = true; # TPM2TOOLS_TCTI and TPM2_PKCS11_TCTI env variables
}

10
common/hardware/wifi.nix Normal file
View file

@ -0,0 +1,10 @@
{
networking.networkmanager.wifi = {
powersave = true;
scanRandMacAddress = true;
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1091
# backend = "iwd";
# Generate a random MAC for each WiFi and associate the two permanently.
macAddress = "stable";
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./wifi.nix
./bluetooth.nix
]
}

View file

@ -15,15 +15,18 @@ in {
../../common/locales/fr-keymap.nix ../../common/locales/fr-keymap.nix
../../common/hardware/intel-cpu.nix ../../common/hardware/intel-cpu.nix
../../common/hardware/tpm2.nix
../../common/hardware/wireless.nix
../../common/hardware/nvidia-gpu.nix ../../common/hardware/nvidia-gpu.nix
../../common/hardware/nvidia-gpu-offload.nix ../../common/hardware/nvidia-gpu-offload.nix
../../common/hardware/ssd.nix ../../common/hardware/ssd.nix
../../common/hardware/btrfs.nix ../../common/hardware/btrfs.nix
../../common/hardware/latest-kernel.nix ../../common/hardware/latest-kernel.nix
../../common/de/greetd.nix ../../common/components/de/sddm.nix
../../common/de/plasma6.nix # ../../common/components/de/greetd.nix
../../common/de/hyprland.nix ../../common/components/de/plasma6.nix
../../common/components/de/hyprland.nix
../../common/programs/steam.nix ../../common/programs/steam.nix
../../common/services/syncthing.nix ../../common/services/syncthing.nix
@ -87,13 +90,6 @@ in {
# #
]; ];
security.tpm2.enable = true;
security.tpm2.pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so
security.tpm2.tctiEnvironment.enable = true; # TPM2TOOLS_TCTI and TPM2_PKCS11_TCTI env variables
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = false;
services.blueman.enable = true; services.blueman.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion