b
This commit is contained in:
parent
1d06c2f1f6
commit
455f8dadcc
|
@ -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
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
programs.gnupg.agent = {
|
programs.gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
fwupd.enable = true;
|
fwupd.enable = true;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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) [
|
||||||
|
@ -28,4 +32,4 @@
|
||||||
ffmpeg
|
ffmpeg
|
||||||
usbutils
|
usbutils
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
# sudo and nix can only be used by the wheel group
|
# sudo and nix can only be used by the wheel group
|
||||||
nix.settings.allowed-users = ["@wheel"];
|
nix.settings.allowed-users = ["@wheel"];
|
||||||
security.sudo.execWheelOnly = true;
|
security.sudo.execWheelOnly = true;
|
||||||
}
|
}
|
||||||
|
|
4
common/hardware/bluetooth.nix
Normal file
4
common/hardware/bluetooth.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.powerOnBoot = false;
|
||||||
|
}
|
5
common/hardware/tpm2.nix
Normal file
5
common/hardware/tpm2.nix
Normal 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
10
common/hardware/wifi.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
6
common/hardware/wireless.nix
Normal file
6
common/hardware/wireless.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./wifi.nix
|
||||||
|
./bluetooth.nix
|
||||||
|
]
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue