mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +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,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
mac_ethernet = "13:37:00:00:00:01";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
@ -14,6 +17,8 @@
|
||||||
./../../modules/services/mpd.nix
|
./../../modules/services/mpd.nix
|
||||||
./../../modules/services/smart-monitoring.nix
|
./../../modules/services/smart-monitoring.nix
|
||||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
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.
|
# 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";
|
# 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 = {
|
powerManagement = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# powertop.enable = true;
|
# powertop.enable = true;
|
||||||
cpuFreqGovernor = lib.mkDefault "ondemand";
|
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
|
# change battery led to blue on suspend to indicate device is in suspend mode
|
||||||
systemd.services."suspend-led-set" = {
|
systemd.services."suspend-led-set" = {
|
||||||
|
|
@ -81,7 +98,6 @@
|
||||||
systemd.sleep.extraConfig = ''
|
systemd.sleep.extraConfig = ''
|
||||||
HibernateDelaySec=30m
|
HibernateDelaySec=30m
|
||||||
'';
|
'';
|
||||||
services.logind.lidSwitch = "suspend";
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"mem_sleep_default=deep"
|
"mem_sleep_default=deep"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue