Adding networking
This commit is contained in:
@@ -6,28 +6,28 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# NixOS-specific configuration
|
# Enable NetworkManager (NixOS-specific)
|
||||||
config = lib.mkIf (lib.isNixos) {
|
services.networkmanager = lib.mkIf (lib.isNixos) {
|
||||||
# Enable NetworkManager
|
enable = true;
|
||||||
services.networkmanager = {
|
dhcpcd.enable = false; # Ensure dhcpcd is disabled to avoid conflicts
|
||||||
enable = true;
|
};
|
||||||
dhcpcd.enable = false; # Ensure dhcpcd is disabled to avoid conflicts
|
|
||||||
};
|
|
||||||
|
|
||||||
# Install NetworkManager and wofi
|
# Install NetworkManager and wofi (NixOS-specific)
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = lib.mkIf (lib.isNixos) (
|
||||||
|
with pkgs;
|
||||||
|
[
|
||||||
networkmanager
|
networkmanager
|
||||||
wofi
|
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-specific configuration
|
||||||
home-manager = lib.mkIf (lib.isHomeManager) {
|
home-manager = lib.mkIf (lib.isHomeManager) {
|
||||||
# Home Manager configurations go here
|
# 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