Switch to sudo-rs

This commit is contained in:
Artemis Tosini 2024-04-12 02:21:26 +00:00
parent cd7b5c07a7
commit 317da1665a
Signed by: artemist
SSH key fingerprint: SHA256:EsuWCwx6fjxxExxf65rX+ocQJJAdw4R1KarpFue6Uwc
2 changed files with 36 additions and 33 deletions

View file

@ -188,11 +188,11 @@
]
},
"locked": {
"lastModified": 1709336216,
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
"lastModified": 1712014858,
"narHash": "sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm+GpZNw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
"rev": "9126214d0a59633752a136528f5f3b9aa8565b7d",
"type": "github"
},
"original": {
@ -329,11 +329,11 @@
]
},
"locked": {
"lastModified": 1712390667,
"narHash": "sha256-ebq+fJZfobqpsAdGDGpxNWSySbQejRwW9cdiil6krCo=",
"lastModified": 1712759992,
"narHash": "sha256-2APpO3ZW4idlgtlb8hB04u/rmIcKA8O7pYqxF66xbNY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "b787726a8413e11b074cde42704b4af32d95545c",
"rev": "31357486b0ef6f4e161e002b6893eeb4fafc3ca9",
"type": "github"
},
"original": {
@ -350,11 +350,11 @@
]
},
"locked": {
"lastModified": 1712296875,
"narHash": "sha256-Cmyer1n39J5IucCiyy84kf1XLr1Gdz/i5HKbzzEOQYM=",
"lastModified": 1712521891,
"narHash": "sha256-qJRkB7QZo2mdR/nABeHQKi3xkQxUsSGjVVQXTSHQocI=",
"owner": "jovian-experiments",
"repo": "jovian-nixos",
"rev": "9b0e8712f1a9e5569036b227d539b745fcf54aad",
"rev": "ec53086c76303dc8880fa7ba06c45abcae8b3398",
"type": "github"
},
"original": {
@ -395,11 +395,11 @@
"lix": {
"flake": false,
"locked": {
"lastModified": 1712439386,
"narHash": "sha256-gvD1samGrEe+EYGoc25lbXzQxrEviPJtDD8QG4yTUWI=",
"lastModified": 1712862513,
"narHash": "sha256-xTEsLCnen1zDZ7DqCnqtg8kZl13XzBKV6Qb+uAbppZM=",
"ref": "refs/heads/main",
"rev": "08713d5a15799b4bd099e702a407c37c9bf78663",
"revCount": 15342,
"rev": "2e13e9811af65ece69665e506c36a7791e0dc8e6",
"revCount": 15393,
"type": "git",
"url": "ssh://git@lix.systems/lix-project/lix"
},
@ -423,11 +423,11 @@
]
},
"locked": {
"lastModified": 1712377825,
"narHash": "sha256-YLliaWMaatyf0qOrgd6XIDgMh8AsAV5dAUg27bjU9VU=",
"lastModified": 1712775567,
"narHash": "sha256-Zn27r1W+KU5ezwvvcoo6LrJQgYQ0+BHZDQxEM6RjFVk=",
"ref": "refs/heads/main",
"rev": "93ce1e3f5defd0091a1da2b1964a89a748257ada",
"revCount": 41,
"rev": "6804fe0ec5f1c24f1ca5fc2c9e11506317353a06",
"revCount": 44,
"type": "git",
"url": "ssh://git@lix.systems/lix-project/nixos-module"
},
@ -443,11 +443,11 @@
]
},
"locked": {
"lastModified": 1711854532,
"narHash": "sha256-JPStavwlT7TfxxiXHk6Q7sbNxtnXAIjXQJMLO0KB6M0=",
"lastModified": 1712459390,
"narHash": "sha256-e12bNDottaGoBgd0AdH/bQvk854xunlWAdZwr/oHO1c=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "2844b5f3ad3b478468151bd101370b9d8ef8a3a7",
"rev": "4676d72d872459e1e3a248d049609f110c570e9a",
"type": "github"
},
"original": {
@ -458,11 +458,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1712324865,
"narHash": "sha256-+BatEWd4HlMeK7Ora+gYIkarjxFVCg9oKrIeybHIIX4=",
"lastModified": 1712760404,
"narHash": "sha256-4zhaEW1nB+nGbCNMjOggWeY5nXs/H0Y71q0+h+jdxoU=",
"owner": "nixos",
"repo": "nixos-hardware",
"rev": "f3b959627bca46a9f7052b8fbc464b8323e68c2c",
"rev": "e1c4bac14beb8c409d0534382cf967171706b9d9",
"type": "github"
},
"original": {
@ -473,11 +473,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1712163089,
"narHash": "sha256-Um+8kTIrC19vD4/lUCN9/cU9kcOsD1O1m+axJqQPyMM=",
"lastModified": 1712608508,
"narHash": "sha256-vMZ5603yU0wxgyQeHJryOI+O61yrX2AHwY6LOFyV1gM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fd281bd6b7d3e32ddfa399853946f782553163b5",
"rev": "4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6",
"type": "github"
},
"original": {
@ -520,11 +520,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1712299511,
"narHash": "sha256-yrBK6Jq0UuJjP+nc01OFNoKRRJgPNkbmwPpE4mD2Bis=",
"lastModified": 1712741888,
"narHash": "sha256-G4HDgs27bwy6/snFHIhU4OZKWdFBHFuxDyCkYj2L9bw=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "f285a958c089ccbca9c5710d4a075683fa1af654",
"rev": "ffa3020522e210fcae934f10440c24ea1d46f6ea",
"type": "github"
},
"original": {
@ -548,11 +548,11 @@
]
},
"locked": {
"lastModified": 1711760932,
"narHash": "sha256-DqUTQ2iAAqSDwMhKBqvi24v0Oc7pD3LCK/0FCG//TdA=",
"lastModified": 1712579741,
"narHash": "sha256-igpsH+pa6yFwYOdah3cFciCk8gw+ytniG9quf5f/q84=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "c11e43aed6f17336c25cd120eac886b96c455731",
"rev": "70f504012f0a132ac33e56988e1028d88a48855c",
"type": "github"
},
"original": {

View file

@ -89,7 +89,10 @@
mutableUsers = false;
};
security.sudo.execWheelOnly = true;
security.sudo-rs = {
enable = true;
execWheelOnly = true;
};
systemd.extraConfig = "DefaultLimitCORE=infinity";
security.pam.loginLimits = [