This commit is contained in:
Tao Tien 2023-11-08 16:37:18 -08:00
parent a61c11d2cb
commit aa25b68e52
4 changed files with 19 additions and 4 deletions

View file

@ -1,5 +1,8 @@
{ pkgs, ... }: { { pkgs, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# unstable.swagger-cli
# swagger-codegen
openapi-generator-cli
bacon bacon
clang clang
clang-tools clang-tools
@ -28,7 +31,6 @@
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"electron-12.2.3" "electron-12.2.3"
# "electron-24.8.6"
]; ];
services.udev.extraRules = '' services.udev.extraRules = ''

6
flake.lock generated
View file

@ -119,11 +119,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1699169573, "lastModified": 1699291058,
"narHash": "sha256-cvUb1xZkvOp3W2SzylStrTirhVd9zCeo5utJl9nSIhw=", "narHash": "sha256-5ggduoaAMPHUy4riL+OrlAZE14Kh7JWX4oLEs22ZqfU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "aeefe2054617cae501809b82b44a8e8f7be7cc4b", "rev": "41de143fda10e33be0f47eab2bfe08a50f234267",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,5 +1,6 @@
{ lib, pkgs, modulesPath, ... }: { { lib, pkgs, modulesPath, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
libthai
bat bat
bottom bottom
cifs-utils cifs-utils

View file

@ -79,6 +79,18 @@
shell = pkgs.unstable.nushell; shell = pkgs.unstable.nushell;
}; };
security.sudo = {
extraRules = [{
commands = [
{
command = "${pkgs.systemd}/bin/bootctl set-oneshot auto-windows";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
};
# i18n.inputMethod = { # i18n.inputMethod = {
# enabled = "fcitx5"; # enabled = "fcitx5";
# fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ]; # fcitx5.addons = with pkgs; [ fcitx5-mozc fcitx5-chewing fcitx5-chinese-addons fcitx5-rime ];