fix thing

This commit is contained in:
Sakooooo 2023-12-28 18:57:10 +04:00
parent f78c9ebf67
commit 88798bef93
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -105,14 +105,11 @@ Should make startup faster, taken from doom-emacs
(substring (shell-command-to-string "source /etc/os-release && echo $NAME") 0 -1) (substring (shell-command-to-string "source /etc/os-release && echo $NAME") 0 -1)
(substring (car (cdr (process-exit-code-and-output "uname" "-o"))) 0 -1))))) (substring (car (cdr (process-exit-code-and-output "uname" "-o"))) 0 -1)))))
(let (os-name (get-distro-or-os)) ;; FIXME nixos overlay breaks this
(if (string= os-name "NixOS") ;; (unless (package-installed-p 'use-package)
(message "skipping use-package installation")) ;; (progn
(if (os-name) ;; (package-refresh-contents)
(unless (package-installed-p 'use-package) ;; (package-install 'use-package)))))
(progn
(package-refresh-contents)
(package-install 'use-package)))))
(require 'use-package) (require 'use-package)
(setq use-package-always-ensure t) (setq use-package-always-ensure t)