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 let
home-manager = (import ../nix/sources.nix).home-manager; home-manager = (import ../nix/sources.nix).home-manager;
@ -62,8 +62,17 @@ in {
fira-code fira-code
prusa-slicer prusa-slicer
htop htop
# hack
networkmanager
networkmanager-openvpn
] ++ lib.optionals (config.networking.hostName == "jimbo") [
# Not working with include
networkmanager
networkmanager-openvpn
]; ];
programs.zsh = { programs.zsh = {
enable = true; enable = true;
sessionVariables = { GOPATH = "/home/fleaz/workspace/go"; }; sessionVariables = { GOPATH = "/home/fleaz/workspace/go"; };

View file

@ -1,7 +1,10 @@
{ pkgs, ... }: { { pkgs, ... }: {
users.users.fleaz = { users.users.fleaz = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [
"wheel" # Enable sudo for the user.
"networkmanager" # Access to networkmanager
];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
} }