ctucx.git: nixfiles

ctucx' nixfiles

commit 04d57c9eac2ce58c32804345a0d6a60d6768b8ce
parent 208d4114c65a6abe96a9a2c36c4c21c9d4f15d9d
Author: Leah (ctucx) <git@ctu.cx>
Date: Sun, 11 Dec 2022 12:51:11 +0100

configurations/common/programs/micro: add settings
1 file changed, 17 insertions(+), 13 deletions(-)
M
configurations/common/programs/micro.nix
|
30
+++++++++++++++++-------------
diff --git a/configurations/common/programs/micro.nix b/configurations/common/programs/micro.nix
@@ -1,23 +1,27 @@
 { pkgs, lib, ... }:
 
 {
+
   home-manager.users.leah = {
-    home = {
-      packages = (
-        if pkgs.stdenv.isLinux then
-          [
-            (pkgs.micro.overrideAttrs(oldAttrs: {
-              postInstall = "";
-            }))
-          ]
-        else
-          [
-            pkgs.micro
-          ]
-      );
+    programs.micro = {
+      enable   = true;
+      settings = {
+        "*.nix".tabstospaces = true;
+        "*.nix".tabmovement  = true;
+        "*.nix".tabsize      = 2;
+        "*.nim".tabstospaces = true;
+        "*.nim".tabmovement  = true;
+        "*.nim".tabsize      = 2;
+
+        scrollbar  = true;
+        eofnewline = false;
+      };
+    };
 
+    home = {
       sessionVariables.EDITOR = "micro";
       shellAliases.nano       = "micro";
     };
   };
+
 }