From 6995ae2461dc5cb4fe493ad3570323ec8dafaabd Mon Sep 17 00:00:00 2001 From: minco Date: Thu, 8 Jan 2026 19:13:42 +0900 Subject: [PATCH] modify --- configuration.nix | 27 +++++++++++++++++++-------- flake.lock | 16 ++++++++-------- flake.nix | 4 ++-- pkgs/tools.nix | 7 ++++--- 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4821d1b..779268d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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? } + + diff --git a/flake.lock b/flake.lock index 382bc32..cd0bed2 100644 --- a/flake.lock +++ b/flake.lock @@ -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" } diff --git a/flake.nix b/flake.nix index 4439f43..fda783b 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; }; diff --git a/pkgs/tools.nix b/pkgs/tools.nix index 1f047ac..3281488 100644 --- a/pkgs/tools.nix +++ b/pkgs/tools.nix @@ -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 ]