Created
August 3, 2016 20:33
-
-
Save zohl/6b8f8f2af727f13327d3799e75706f2a to your computer and use it in GitHub Desktop.
A minimal example of configuration with networkmanager and without GNOME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
fileSystems."/boot" = | |
{ device = "/dev/sda1"; | |
fsType = "vfat"; | |
}; | |
fileSystems."/" = | |
{ device = "/dev/sda2"; | |
fsType = "btrfs"; | |
}; | |
boot.loader.grub = { | |
enable = true; | |
version = 2; | |
device = "/dev/sda"; | |
}; | |
networking = { | |
hostName = "nixos"; | |
networkmanager.enable = true; | |
}; | |
nixpkgs.config.packageOverrides = pkgs: { | |
networkmanager_openvpn = pkgs.networkmanager_openvpn.override { withGnome = false; }; | |
networkmanager_pptp = pkgs.networkmanager_pptp.override { withGnome = false; }; | |
networkmanager_l2tp = pkgs.networkmanager_l2tp.override { withGnome = false; }; | |
networkmanager_vpnc = pkgs.networkmanager_vpnc.override { withGnome = false; }; | |
networkmanager_openconnect = pkgs.networkmanager_openconnect.override { withGnome = false; }; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment