update lock and emacs
This commit is contained in:
parent
cf0c1a685e
commit
cf3a2d98c7
|
@ -31,19 +31,30 @@ let
|
||||||
rainbow-delimiters
|
rainbow-delimiters
|
||||||
use-package
|
use-package
|
||||||
|
|
||||||
|
cmake-mode
|
||||||
lsp-mode
|
lsp-mode
|
||||||
lsp-bridge
|
lsp-java
|
||||||
|
lsp-jedi
|
||||||
|
lsp-haskell
|
||||||
|
lsp-ui
|
||||||
|
lsp-treemacs
|
||||||
dap-mode
|
dap-mode
|
||||||
d-mode
|
d-mode
|
||||||
multiple-cursors
|
multiple-cursors
|
||||||
org
|
org
|
||||||
org-rainbow-tags
|
org-rainbow-tags
|
||||||
|
org-roam
|
||||||
|
org-roam-ui
|
||||||
|
org-review
|
||||||
markdown-mode
|
markdown-mode
|
||||||
json-mode
|
json-mode
|
||||||
nix-mode
|
nix-mode
|
||||||
|
|
||||||
minimap
|
minimap
|
||||||
|
|
||||||
|
|
||||||
moe-theme
|
moe-theme
|
||||||
|
doom-themes
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,8 +63,10 @@ let
|
||||||
(defvar materus/init-from-home nil)
|
(defvar materus/init-from-home nil)
|
||||||
(defvar materus/init-from-default nil)
|
(defvar materus/init-from-default nil)
|
||||||
(when (not materus/init-from-home)
|
(when (not materus/init-from-home)
|
||||||
|
(setq-default materus/home-dir (concat user-emacs-directory "materus/" ))
|
||||||
(setq-default materus/init-from-default t)
|
(setq-default materus/init-from-default t)
|
||||||
(message "Config loading not from homeDir, need "materus/init-from-home" variable in init.el")
|
(message "Config loading not from homeDir, need "materus/init-from-home" variable in init.el")
|
||||||
|
|
||||||
${setNixInit}
|
${setNixInit}
|
||||||
(require 'materus-config)
|
(require 'materus-config)
|
||||||
)
|
)
|
||||||
|
@ -113,12 +126,21 @@ in
|
||||||
options.materus.profile.editor.emacs.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable emacs with materus cfg";
|
options.materus.profile.editor.emacs.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable emacs with materus cfg";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.activation.emacsCompile = lib.hm.dag.entryAfter [ "linkGeneration" ] ''
|
||||||
|
${config.programs.emacs.finalPackage}/bin/emacs --batch \
|
||||||
|
--eval '(setq warning-minimum-log-level :error)' \
|
||||||
|
--eval '(byte-recompile-directory "${config.xdg.configHome}/emacs/materus" 0 t)' \
|
||||||
|
--eval '(byte-recompile-file "${config.xdg.configHome}/emacs/init.el")'
|
||||||
|
'';
|
||||||
xdg.configFile."emacs/init.el".text = ''
|
xdg.configFile."emacs/init.el".text = ''
|
||||||
|
(setq inhibit-defaul-init 1)
|
||||||
|
(setq native-comp-speed 3)
|
||||||
(defvar materus/nix-packages nil)
|
(defvar materus/nix-packages nil)
|
||||||
(defvar materus/init-from-home t)
|
(defvar materus/init-from-home t)
|
||||||
(defvar materus/init-from-default nil)
|
(defvar materus/init-from-default nil)
|
||||||
${setNixInit}
|
${setNixInit}
|
||||||
(setq-default materus/init-from-home t)
|
(setq-default materus/init-from-home t)
|
||||||
|
(setq-default materus/home-dir (concat user-emacs-directory "materus/" ))
|
||||||
(setq-default materus/nix-packages (require 'materus-config nil 'noerror))
|
(setq-default materus/nix-packages (require 'materus-config nil 'noerror))
|
||||||
(when (not materus/nix-packages)
|
(when (not materus/nix-packages)
|
||||||
(load (concat user-emacs-directory "materus/init"))
|
(load (concat user-emacs-directory "materus/init"))
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
(message "Config loading from package")
|
(message "Config loading from package")
|
||||||
(setq-default materus/nix-packages t)
|
(setq-default materus/nix-packages t)
|
||||||
|
(require 'load-relative)
|
||||||
(load-relative "materus/init")
|
(load-relative "materus/init")
|
||||||
(provide 'materus-config)
|
(provide 'materus-config)
|
|
@ -1,12 +1,13 @@
|
||||||
(defvar materus/nix-packages nil)
|
(defvar materus/nix-packages nil)
|
||||||
(defvar materus/init-from-home nil)
|
(defvar materus/init-from-home nil)
|
||||||
|
(defvar materus/home-dir (concat user-emacs-directory "materus/" ))
|
||||||
|
(setq native-comp-async-report-warnings-errors nil)
|
||||||
|
(setq package-enable-at-startup nil)
|
||||||
|
(setq frame-inhibit-implied-resize t)
|
||||||
|
|
||||||
|
|
||||||
(when (not materus/nix-packages)
|
(when (not materus/nix-packages)
|
||||||
(message "Not using config from packages, will compile")
|
(message "Not using config from nix packages, using straight")
|
||||||
(setq native-comp-async-report-warnings-errors nil)
|
|
||||||
(setq package-enable-at-startup nil)
|
|
||||||
(defvar straight-use-package-by-default nil)
|
|
||||||
(setq straight-use-package-by-default t)
|
|
||||||
(defvar bootstrap-version)
|
(defvar bootstrap-version)
|
||||||
(let ((bootstrap-file
|
(let ((bootstrap-file
|
||||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
|
@ -22,19 +23,14 @@
|
||||||
(declare-function straight-use-package "straight" (&optional ARG))
|
(declare-function straight-use-package "straight" (&optional ARG))
|
||||||
(declare-function load-relative "load-relative" (&optional ARG))
|
(declare-function load-relative "load-relative" (&optional ARG))
|
||||||
(straight-use-package 'load-relative)
|
(straight-use-package 'load-relative)
|
||||||
(require 'load-relative)
|
|
||||||
(load-relative "packages")
|
(load-relative "packages")
|
||||||
|
|
||||||
(if materus/init-from-home
|
|
||||||
(byte-recompile-directory (concat (expand-file-name user-emacs-directory) "materus/" ) 0)
|
|
||||||
(byte-recompile-directory (expand-file-name user-emacs-directory) 0))
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
(require 'telephone-line)
|
(require 'telephone-line)
|
||||||
(require 'elcord)
|
(require 'elcord)
|
||||||
(require 'dashboard)
|
(require 'dashboard)
|
||||||
(require 'minions)
|
(require 'minions)
|
||||||
|
(require 'doom-themes)
|
||||||
|
|
||||||
|
|
||||||
;Graphical
|
;Graphical
|
||||||
|
@ -53,7 +49,7 @@
|
||||||
|
|
||||||
|
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(load-theme 'moe-dark t)
|
(load-theme 'doom-horizon t)
|
||||||
|
|
||||||
(setq ring-bell-function 'ignore)
|
(setq ring-bell-function 'ignore)
|
||||||
(setq-default cursor-type '(bar . 1))
|
(setq-default cursor-type '(bar . 1))
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
(straight-use-package 'elcord)
|
(straight-use-package 'elcord)
|
||||||
(straight-use-package 'dashboard)
|
(straight-use-package 'dashboard)
|
||||||
(straight-use-package 'minions)
|
(straight-use-package 'minions)
|
||||||
|
(straight-use-package 'lsp-mode)
|
||||||
|
(straight-use-package 'lsp-ui)
|
||||||
|
|
||||||
(straight-use-package 'moe-theme)
|
(straight-use-package 'moe-theme)
|
||||||
|
(straight-use-package 'doom-themes)
|
||||||
|
|
||||||
|
|
84
flake.lock
84
flake.lock
|
@ -64,11 +64,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699090626,
|
"lastModified": 1699954689,
|
||||||
"narHash": "sha256-QOE2Cf5WDBfgP4ENQQHJs+u2MPrGE1LZKUri3ERgBcA=",
|
"narHash": "sha256-gJtxMQotdEyiuGoiPPSdYqa8Pdw9ptgFFMrxKsWKj54=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "8e42a3463ac1a25a9948e965e2fefc570fadd702",
|
"rev": "1d4ed29d4d9d076210485697c325f8d6914d908f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -88,11 +88,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699090626,
|
"lastModified": 1699954689,
|
||||||
"narHash": "sha256-QOE2Cf5WDBfgP4ENQQHJs+u2MPrGE1LZKUri3ERgBcA=",
|
"narHash": "sha256-gJtxMQotdEyiuGoiPPSdYqa8Pdw9ptgFFMrxKsWKj54=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "8e42a3463ac1a25a9948e965e2fefc570fadd702",
|
"rev": "1d4ed29d4d9d076210485697c325f8d6914d908f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -145,11 +145,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1695108154,
|
"lastModified": 1699748081,
|
||||||
"narHash": "sha256-gSg7UTVtls2yO9lKtP0yb66XBHT1Fx5qZSZbGMpSn2c=",
|
"narHash": "sha256-MOmMapBydd7MTjhX4eeQZzKlCABWw8W6iSHSG4OeFKE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "07682fff75d41f18327a871088d20af2710d4744",
|
"rev": "04bac349d585c9df38d78e0285b780a140dc74a4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -167,11 +167,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699025595,
|
"lastModified": 1699783872,
|
||||||
"narHash": "sha256-e+o4PoSu2Z6Ww8y/AVUmMU200rNZoRK+p2opQ7Db8Rg=",
|
"narHash": "sha256-4zTwLT2LL45Nmo6iwKB3ls3hWodVP9DiSWxki/oewWE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8765d4e38aa0be53cdeee26f7386173e6c65618d",
|
"rev": "280721186ab75a76537713ec310306f0eba3e407",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -186,11 +186,11 @@
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699025595,
|
"lastModified": 1699783872,
|
||||||
"narHash": "sha256-e+o4PoSu2Z6Ww8y/AVUmMU200rNZoRK+p2opQ7Db8Rg=",
|
"narHash": "sha256-4zTwLT2LL45Nmo6iwKB3ls3hWodVP9DiSWxki/oewWE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8765d4e38aa0be53cdeee26f7386173e6c65618d",
|
"rev": "280721186ab75a76537713ec310306f0eba3e407",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -254,11 +254,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699044561,
|
"lastModified": 1699954245,
|
||||||
"narHash": "sha256-3uHmbq74CicpBPP40a6NHp830S7Rvh33uFgfIIC+7nw=",
|
"narHash": "sha256-CSnfeOHc/wco8amdA0j268OaLrMcI5gGtK6Zm+y3lT0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "87f8403371fa74d9ad21ed677403cc235f37b96c",
|
"rev": "df9bb8a436607da124e8cfa0fd19e70e9d9e0b7b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -270,11 +270,11 @@
|
||||||
},
|
},
|
||||||
"nixos-hardware_2": {
|
"nixos-hardware_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699044561,
|
"lastModified": 1699954245,
|
||||||
"narHash": "sha256-3uHmbq74CicpBPP40a6NHp830S7Rvh33uFgfIIC+7nw=",
|
"narHash": "sha256-CSnfeOHc/wco8amdA0j268OaLrMcI5gGtK6Zm+y3lT0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixos-hardware",
|
"repo": "nixos-hardware",
|
||||||
"rev": "87f8403371fa74d9ad21ed677403cc235f37b96c",
|
"rev": "df9bb8a436607da124e8cfa0fd19e70e9d9e0b7b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -302,11 +302,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698942558,
|
"lastModified": 1699596684,
|
||||||
"narHash": "sha256-/UmnB+mEd6Eg3mJBrAgqRcyZX//RSjHphcCO7Ig9Bpk=",
|
"narHash": "sha256-XSXP8zjBZJBVvpNb2WmY0eW8O2ce+sVyj1T0/iBRIvg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "621f51253edffa1d6f08d5fce4f08614c852d17e",
|
"rev": "da4024d0ead5d7820f6bd15147d3fe2a0c0cec73",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -318,11 +318,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable_2": {
|
"nixpkgs-stable_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698942558,
|
"lastModified": 1699596684,
|
||||||
"narHash": "sha256-/UmnB+mEd6Eg3mJBrAgqRcyZX//RSjHphcCO7Ig9Bpk=",
|
"narHash": "sha256-XSXP8zjBZJBVvpNb2WmY0eW8O2ce+sVyj1T0/iBRIvg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "621f51253edffa1d6f08d5fce4f08614c852d17e",
|
"rev": "da4024d0ead5d7820f6bd15147d3fe2a0c0cec73",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -334,11 +334,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable_3": {
|
"nixpkgs-stable_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698942558,
|
"lastModified": 1699596684,
|
||||||
"narHash": "sha256-/UmnB+mEd6Eg3mJBrAgqRcyZX//RSjHphcCO7Ig9Bpk=",
|
"narHash": "sha256-XSXP8zjBZJBVvpNb2WmY0eW8O2ce+sVyj1T0/iBRIvg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "621f51253edffa1d6f08d5fce4f08614c852d17e",
|
"rev": "da4024d0ead5d7820f6bd15147d3fe2a0c0cec73",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -350,11 +350,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1698924604,
|
"lastModified": 1699781429,
|
||||||
"narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=",
|
"narHash": "sha256-UYefjidASiLORAjIvVsUHG6WBtRhM67kTjEY4XfZOFs=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40",
|
"rev": "e44462d6021bfe23dfb24b775cc7c390844f773d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -380,11 +380,11 @@
|
||||||
},
|
},
|
||||||
"nur_2": {
|
"nur_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699105543,
|
"lastModified": 1699957785,
|
||||||
"narHash": "sha256-ZAArNdE3cO59tIlomzhWPksA4enZ0LoGR7VEtFHYaXI=",
|
"narHash": "sha256-N7XJ+Otvn5GERktkIxw6K757JsmfvyO7I95VPgk38Z8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "ae4f2079a94ebbf4f3ec66f7d25372de5d4b346d",
|
"rev": "34dadf63b2715951bec44a3ba01c4e72e07900dc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -410,11 +410,11 @@
|
||||||
},
|
},
|
||||||
"nur_4": {
|
"nur_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699105543,
|
"lastModified": 1699957785,
|
||||||
"narHash": "sha256-ZAArNdE3cO59tIlomzhWPksA4enZ0LoGR7VEtFHYaXI=",
|
"narHash": "sha256-N7XJ+Otvn5GERktkIxw6K757JsmfvyO7I95VPgk38Z8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "ae4f2079a94ebbf4f3ec66f7d25372de5d4b346d",
|
"rev": "34dadf63b2715951bec44a3ba01c4e72e07900dc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -426,11 +426,11 @@
|
||||||
},
|
},
|
||||||
"nur_5": {
|
"nur_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1699105543,
|
"lastModified": 1699957785,
|
||||||
"narHash": "sha256-ZAArNdE3cO59tIlomzhWPksA4enZ0LoGR7VEtFHYaXI=",
|
"narHash": "sha256-N7XJ+Otvn5GERktkIxw6K757JsmfvyO7I95VPgk38Z8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NUR",
|
"repo": "NUR",
|
||||||
"rev": "ae4f2079a94ebbf4f3ec66f7d25372de5d4b346d",
|
"rev": "34dadf63b2715951bec44a3ba01c4e72e07900dc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in New Issue