2 コミット 50efdd6b05 ... 0b49aa3399

作者 SHA1 メッセージ 日付
  Johan Rong 0b49aa3399 fix warnings and stuff 2 週間 前
  Johan Rong 8487d8558f disable sleep and hibernate etc on nixstation 2 週間 前

+ 17 - 19
home/modules/apps/neovim/default.nix

@@ -20,8 +20,6 @@ in
   programs.nixvim = {
     enable = true;
 
-    nixpkgs.config.allowUnfree = true; 
-
     opts = {
       number = true;
       relativenumber = true;
@@ -56,23 +54,23 @@ in
 
     plugins = {
       visual-multi.enable = true;
-      barbar = {
-        enable = true;
-        settings = {
-          pinned = {
-            button = false;
-          };
-          icons = {
-            button = false;
-            modified.button = false;
-            buffer_index = false;
-            filetype = {
-              custom_colors = false;
-              enabled = true;
-            };
-          };
-        };
-      };
+      # barbar = {
+      #   enable = true;
+      #   settings = {
+      #     pinned = {
+      #       button = false;
+      #     };
+      #     icons = {
+      #       button = false;
+      #       modified.button = false;
+      #       buffer_index = false;
+      #       filetype = {
+      #         custom_colors = false;
+      #         enabled = true;
+      #       };
+      #     };
+      #   };
+      # };
       web-devicons.enable = true;
     };
 

+ 0 - 2
home/modules/system/home-base.nix

@@ -6,8 +6,6 @@ in
 {
   news.display = "silent";
 
-  nixpkgs.config.allowUnfree = true;
-
   home = {
     username = users.default;
     homeDirectory = "/home/${users.default}";

+ 7 - 0
hosts/nixstation/nixos/default.nix

@@ -29,5 +29,12 @@ in
     "resume=UUID=ba1f1991-b3cf-4bb3-8558-da54c9afa148"
   ];
 
+  systemd.sleep.settings.Sleep = {
+    AllowHibernation = "no";
+    AllowHybridSleep = "no";
+    AllowSuspend = "no";
+    AllowSuspendThenHibernate = "no";
+  };
+
   networking.hostName = hosts.nixstation.hostname;
 }

+ 3 - 3
nixos/modules/hardware/power/common.nix

@@ -1,8 +1,8 @@
 { config, pkgs, ... }:
 
 {
-  services.logind = {
-    powerKey = "suspend";
-    powerKeyLongPress = "poweroff";
+  services.logind.settings.Login = {
+    HandlePowerKey = "suspend";
+    HandlePowerKeyLongPress = "poweroff";
   };
 }