mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/personal-computer/default.nix
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
./users.nix
|
./users.nix
|
||||||
./automatic-timezone.nix
|
./automatic-timezone.nix
|
||||||
./wireless.nix
|
./wireless.nix
|
||||||
|
./libinput.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
11
modules/clan/personal-computer/libinput.nix
Normal file
11
modules/clan/personal-computer/libinput.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
services = {
|
||||||
|
libinput = {
|
||||||
|
enable = true;
|
||||||
|
touchpad = {
|
||||||
|
disableWhileTyping = true;
|
||||||
|
naturalScrolling = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
users.mutableUsers = lib.mkForce true;
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
users.mutableUsers = lib.mkForce true;
|
||||||
|
security.polkit.extraConfig = ''
|
||||||
|
polkit.addRule(function(action, subject) {
|
||||||
|
if (action.id == "org.freedesktop.accounts.change-own-password") {
|
||||||
|
if (subject.user == polkit.getUserForSubject(subject).getUserName()) {
|
||||||
|
return polkit.Result.YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user