Try to optionally include networkmanager

This commit is contained in:
fleaz 2022-02-03 11:09:29 +01:00
parent 7a8af01854
commit 6d0b2273f5
2 changed files with 14 additions and 2 deletions

View file

@ -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"; };

View file

@ -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;
};
}