This commit is contained in:
2026-01-08 19:13:42 +09:00
parent dece224b2a
commit 6995ae2461
4 changed files with 33 additions and 21 deletions

View File

@@ -49,13 +49,23 @@ in {
security.sudo = {
enable = true;
extraRules = [{
commands = [{
command = "${pkgs.grub2}/bin/grub-reboot";
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}];
extraRules = [
{
users = ["allen"];
commands = [{
command = "/run/current-system/sw/bin/systemctl reboot --force";
options = [ "NOPASSWD" ];
}];
}
{
commands = [{
command = "${pkgs.grub2}/bin/grub-reboot";
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}
];
};
security.pam.loginLimits = [
@@ -136,7 +146,6 @@ in {
gnome-tweaks
xf86_input_wacom
glfw
wacomtablet
libimobiledevice
ifuse
git
@@ -170,3 +179,5 @@ in {
system.stateVersion = "25.05"; # Did you read the comment?
}

16
flake.lock generated
View File

@@ -98,16 +98,16 @@
]
},
"locked": {
"lastModified": 1748665073,
"narHash": "sha256-RMhjnPKWtCoIIHiuR9QKD7xfsKb3agxzMfJY8V9MOew=",
"lastModified": 1767780135,
"narHash": "sha256-5SbmsLMgxzPd9YMbFR4IHfOXv6bjWs+dfl6IbSq3r7s=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "282e1e029cb6ab4811114fc85110613d72771dea",
"rev": "c08430923ed417abc653884328a39e98496cfd0f",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.05",
"ref": "release-25.11",
"repo": "home-manager",
"type": "github"
}
@@ -471,16 +471,16 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1748889542,
"narHash": "sha256-Hb4iMhIbjX45GcrgOp3b8xnyli+ysRPqAgZ/LZgyT5k=",
"lastModified": 1767634882,
"narHash": "sha256-2GffSfQxe3sedHzK+sTKlYo/NTIAGzbFCIsNMUPAAnk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "10d7f8d34e5eb9c0f9a0485186c1ca691d2c5922",
"rev": "3c9db02515ef1d9b6b709fc60ba9a540957f661c",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}

View File

@@ -2,10 +2,10 @@
description = "A simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
helix.url = "github:helix-editor/helix/master";
home-manager = {
url = "github:nix-community/home-manager/release-25.05";
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};

View File

@@ -29,7 +29,7 @@ with pkgs; [
waypaper
swww
sdrpp
rofi-wayland
rofi
hyprshot
vesktop
discordo
@@ -43,10 +43,10 @@ with pkgs; [
blender
jetbrains.idea-ultimate
krita
barrier
deskflow
obsidian
audacity
bitwarden
bitwarden-desktop
texlive.combined.scheme-full
hugo
glow
@@ -57,4 +57,5 @@ with pkgs; [
vscode
zellij
antigravity
google-chrome
]