- `hs` host - cam subdomain behind reverse proxy - dynamic dns updater script - `pc` host - ext4 instead of btrfs - ca-derivations experimental feature - nix from unstable channel (2.8) - cura from stable (unstable went broken) - Emacs - company-nixos-options - helm-nixos-options - nix-modeline - disable format hook on save for nix mode - nix from master (only in overlay, not used) - bat (alias for cat) - batman (alias for batman) - disabled weird extra options for nix I couldn't even remember of - Fira Code for sway/waybar - New plain style for waybar
21 lines
451 B
EmacsLisp
21 lines
451 B
EmacsLisp
(use-package nix-mode
|
|
:mode "\\.nix\\'"
|
|
;;:hook
|
|
;;(before-save . lsp-format-buffer)
|
|
)
|
|
|
|
|
|
(require 'sudo-utils)
|
|
|
|
(defun nixos-rebuild-switch ()
|
|
(interactive)
|
|
(sudo-utils-shell-command "nixos-rebuild switch"))
|
|
|
|
(defun nixos-rebuild-test ()
|
|
(interactive)
|
|
;; async-shell command should be sufficient, to check why it isn't
|
|
(sudo-utils-shell-command "nixos-rebuild test"))
|
|
|
|
(global-set-key [f6] 'nixos-rebuild-test)
|
|
|
|
(provide 'config-nix)
|