Try to optionally include networkmanager
This commit is contained in:
parent
7a8af01854
commit
6d0b2273f5
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
home-manager = (import ../nix/sources.nix).home-manager;
|
||||
|
@ -62,8 +62,17 @@ in {
|
|||
fira-code
|
||||
prusa-slicer
|
||||
htop
|
||||
|
||||
# hack
|
||||
networkmanager
|
||||
networkmanager-openvpn
|
||||
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
||||
# Not working with include
|
||||
networkmanager
|
||||
networkmanager-openvpn
|
||||
];
|
||||
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
sessionVariables = { GOPATH = "/home/fleaz/workspace/go"; };
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
{ pkgs, ... }: {
|
||||
users.users.fleaz = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
extraGroups = [
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"networkmanager" # Access to networkmanager
|
||||
];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue