mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: get mac spoofing for ethernet to work, switch to new formatting
This commit is contained in:
parent
2766a4197f
commit
6728fcd5fd
1 changed files with 18 additions and 2 deletions
|
|
@ -5,6 +5,9 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
mac_ethernet = "13:37:00:00:00:01";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -14,6 +17,8 @@
|
|||
./../../modules/services/mpd.nix
|
||||
./../../modules/services/smart-monitoring.nix
|
||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
./../../modules/security/dnscrypt.nix
|
||||
./../../modules/security/syslogd.nix
|
||||
];
|
||||
|
||||
# install some system-utilities; set hosts to be editable by the user.
|
||||
|
|
@ -51,13 +56,25 @@
|
|||
# networkmanager.ethernet.macAddress = "13:37:6a:8a:ed:a4";
|
||||
};
|
||||
|
||||
environment.etc."NetworkManager/conf.d/20-ethernet-mac-address.conf".text = ''
|
||||
[connection.20-ethernet-mac-addr]
|
||||
match-device=type:ethernet
|
||||
ethernet.cloned-mac-address=${mac_ethernet}
|
||||
|
||||
[.config]
|
||||
enable=nm-version-min:1.45
|
||||
'';
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
# powertop.enable = true;
|
||||
cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
};
|
||||
|
||||
services.logind.lidSwitchDocked = "ignore";
|
||||
services.logind.settings.Login = {
|
||||
HandleLidSwitch = "suspend";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
};
|
||||
|
||||
# change battery led to blue on suspend to indicate device is in suspend mode
|
||||
systemd.services."suspend-led-set" = {
|
||||
|
|
@ -81,7 +98,6 @@
|
|||
systemd.sleep.extraConfig = ''
|
||||
HibernateDelaySec=30m
|
||||
'';
|
||||
services.logind.lidSwitch = "suspend";
|
||||
boot = {
|
||||
kernelParams = [
|
||||
"mem_sleep_default=deep"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue