Adding networking
This commit is contained in:
@@ -6,28 +6,28 @@
|
||||
}:
|
||||
|
||||
{
|
||||
# NixOS-specific configuration
|
||||
config = lib.mkIf (lib.isNixos) {
|
||||
# Enable NetworkManager
|
||||
services.networkmanager = {
|
||||
enable = true;
|
||||
dhcpcd.enable = false; # Ensure dhcpcd is disabled to avoid conflicts
|
||||
};
|
||||
# Enable NetworkManager (NixOS-specific)
|
||||
services.networkmanager = lib.mkIf (lib.isNixos) {
|
||||
enable = true;
|
||||
dhcpcd.enable = false; # Ensure dhcpcd is disabled to avoid conflicts
|
||||
};
|
||||
|
||||
# Install NetworkManager and wofi
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Install NetworkManager and wofi (NixOS-specific)
|
||||
environment.systemPackages = lib.mkIf (lib.isNixos) (
|
||||
with pkgs;
|
||||
[
|
||||
networkmanager
|
||||
wofi
|
||||
];
|
||||
]
|
||||
);
|
||||
|
||||
# Ensure the user is in the necessary groups (NixOS-specific)
|
||||
users.users.${config.users.users."henrov".username} = lib.mkIf (lib.isNixos) {
|
||||
extraGroups = [ "networkmanager" ];
|
||||
};
|
||||
|
||||
# Home Manager-specific configuration
|
||||
home-manager = lib.mkIf (lib.isHomeManager) {
|
||||
# Home Manager configurations go here
|
||||
};
|
||||
|
||||
# Ensure the user is in the necessary groups (NixOS-specific)
|
||||
users.users.${config.users.users."henrov".username} = lib.mkIf (lib.isNixos) {
|
||||
extraGroups = [ "networkmanager" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user