networkmanager: fix polkit integrations when running not as root
now nmcli/etc work
This commit is contained in:
@@ -7,12 +7,23 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.sane.programs.networkmanager;
|
cfg = config.sane.programs.networkmanager;
|
||||||
|
networkmanager = pkgs.networkmanager.overrideAttrs (upstream: {
|
||||||
|
src = pkgs.fetchFromGitea {
|
||||||
|
domain = "git.uninsane.org";
|
||||||
|
owner = "colin";
|
||||||
|
repo = "NetworkManager";
|
||||||
|
rev = "dev-sane-1.46.0";
|
||||||
|
hash = "sha256-S5ZiOfCpwtVVVO+DP6OPodJqzSc/LW4waI42DRkT+RA=";
|
||||||
|
};
|
||||||
|
# patches = [];
|
||||||
|
});
|
||||||
|
networkmanager-split = pkgs.networkmanager-split.override { inherit networkmanager; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
sane.programs.networkmanager = {
|
sane.programs.networkmanager = {
|
||||||
packageUnwrapped = pkgs.networkmanager-split.daemon.overrideAttrs (upstream: {
|
packageUnwrapped = networkmanager-split.daemon.overrideAttrs (upstream: {
|
||||||
# postPatch = (upstream.postPatch or "") + ''
|
# postPatch = (upstream.postPatch or "") + ''
|
||||||
# substituteInPlace src/{core/org.freedesktop.NetworkManager,nm-dispatcher/nm-dispatcher}.conf --replace-fail \
|
# substituteInPlace src/{core/org.freedesktop.NetworkManager,nm-dispatcher/nm-dispatcher}.conf --replace-fail \
|
||||||
# 'user="root"' 'user="networkmanager"'
|
# 'user="root"' 'user="networkmanager"'
|
||||||
|
Reference in New Issue
Block a user