refactor: modularize netowrking

This commit is contained in:
EinEtwas 2024-10-18 19:24:48 +02:00
parent 5d8ed54b8f
commit 8fa0a0acfe
3 changed files with 7 additions and 17 deletions

View file

@ -13,13 +13,6 @@
networking.hostName = "rhea-laptop"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Berlin";
@ -50,22 +43,12 @@
# Enable Fingerprint Support
services.fprintd.enable = true;
# Define a user account. Don't forget to set a password with passwd.
#users.users.rhea = {
# isNormalUser = true;
# description = "Rhea";
# extraGroups = [ "networkmanager" "wheel" ];
# packages = with pkgs; [ ];
#};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
fprintd
];

View file

@ -9,5 +9,6 @@
./power-profiles.nix
./environment.nix
./polkit.nix
,/networking.nix
];
}

6
modules/networking.nix Normal file
View file

@ -0,0 +1,6 @@
{
# Enable networking
networking.networkmanager.enable = true;
networking.networkmanager.wifi.powersave = true;
}