Try to optionally include networkmanager
This commit is contained in:
parent
7a8af01854
commit
6d0b2273f5
|
@ -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"; };
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue