Explorar o código

rename folder, emacs home manager

Johan Rong hai 3 semanas
pai
achega
0db9abd434

+ 0 - 0
home/modules/configs/alacritty.nix → home/modules/apps/alacritty.nix


+ 0 - 0
home/modules/configs/bashrc.nix → home/modules/apps/bashrc.nix


+ 5 - 0
home/modules/apps/emacs/config/emacs.el

@@ -0,0 +1,5 @@
+(modify-all-frames-parameters '((undecorated . t)))
+
+(menu-bar-mode -1)
+(tool-bar-mode -1)
+(scroll-bar-mode -1)

+ 19 - 0
home/modules/apps/emacs/default.nix

@@ -0,0 +1,19 @@
+{ pkgs, ... }:
+{
+  programs.emacs = {
+    enable = true;
+    package = pkgs.emacs;
+    
+    extraPackages = epkgs: [
+    ];
+
+    extraConfig = builtins.readFile ./config/emacs.el;
+  };
+
+  services.emacs = {
+    enable = true;
+    package = pkgs.emacs;
+    socketActivation.enable = true; # Starts Emacs on demand when emacsclient is called
+    startWithUserSession = "graphical"; # Launch with graphical session or true for default.target
+  };
+}

+ 0 - 0
home/modules/configs/fish/default.nix → home/modules/apps/fish/default.nix


+ 0 - 0
home/modules/configs/fish/fileme/completions.fish → home/modules/apps/fish/fileme/completions.fish


+ 0 - 0
home/modules/configs/fish/fileme/function.fish → home/modules/apps/fish/fileme/function.fish


+ 2 - 2
hosts/ideapad/home/default.nix

@@ -8,7 +8,7 @@
     ../../../home/modules/desktop/hyprland
     ./hyprland.nix
 
-    ../../../home/modules/configs/alacritty.nix
-    ../../../home/modules/configs/fish
+    ../../../home/modules/apps/alacritty.nix
+    ../../../home/modules/apps/fish
   ];
 }

+ 3 - 2
hosts/nixstation/home/default.nix

@@ -7,7 +7,8 @@
     ../../../home/modules/desktop/hyprland
     ./hyprland.nix
 
-    ../../../home/modules/configs/alacritty.nix
-    ../../../home/modules/configs/fish
+    ../../../home/modules/apps/alacritty.nix
+    ../../../home/modules/apps/fish
+    ../../../home/modules/apps/emacs
   ];
 }

+ 2 - 2
hosts/ono/home/default.nix

@@ -7,7 +7,7 @@
     ../../../home/modules/desktop/hyprland
     ./hyprland.nix
 
-    ../../../home/modules/configs/alacritty.nix
-    ../../../home/modules/configs/fish
+    ../../../home/modules/apps/alacritty.nix
+    ../../../home/modules/apps/fish
   ];
 }

+ 0 - 1
nixos/profiles/development/default.nix

@@ -6,7 +6,6 @@
     gdb
     onefetch
     graphite-cli
-    emacs
   ];
 
   programs.direnv = {