Merge remote-tracking branch 'enklave/master'
This commit is contained in:
commit
a9b1f239dc
|
@ -6,6 +6,7 @@
|
||||||
<stockholm/jeschli>
|
<stockholm/jeschli>
|
||||||
<stockholm/jeschli/2configs/emacs.nix>
|
<stockholm/jeschli/2configs/emacs.nix>
|
||||||
<stockholm/jeschli/2configs/firefox.nix>
|
<stockholm/jeschli/2configs/firefox.nix>
|
||||||
|
<stockholm/jeschli/2configs/rust.nix>
|
||||||
<stockholm/jeschli/2configs/python.nix>
|
<stockholm/jeschli/2configs/python.nix>
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
./i3-configuration.nix
|
./i3-configuration.nix
|
||||||
|
@ -38,6 +39,7 @@
|
||||||
wget vim git
|
wget vim git
|
||||||
rofi
|
rofi
|
||||||
ag
|
ag
|
||||||
|
alacritty
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.ombi = {
|
users.users.ombi = {
|
||||||
|
|
|
@ -114,8 +114,8 @@ let
|
||||||
("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
|
("NEXT" ("WAITING") ("CANCELLED") ("HOLD"))
|
||||||
("DONE" ("WAITING") ("CANCELLED") ("HOLD")))))
|
("DONE" ("WAITING") ("CANCELLED") ("HOLD")))))
|
||||||
|
|
||||||
(setq org-directory "~/git/org")
|
(setq org-directory "~/projects/notes_private")
|
||||||
(setq org-default-notes-file "~/git/org/refile.org")
|
(setq org-default-notes-file "~/projects/notes_private/refile.org")
|
||||||
|
|
||||||
;; I use C-c c to start capture mode
|
;; I use C-c c to start capture mode
|
||||||
(global-set-key (kbd "C-c c") 'org-capture)
|
(global-set-key (kbd "C-c c") 'org-capture)
|
||||||
|
|
|
@ -62,9 +62,6 @@ let
|
||||||
|
|
||||||
magit = ''
|
magit = ''
|
||||||
(global-set-key (kbd "C-x g") 'magit-status) ; "Most Magit commands are commonly invoked from the status buffer"
|
(global-set-key (kbd "C-x g") 'magit-status) ; "Most Magit commands are commonly invoked from the status buffer"
|
||||||
|
|
||||||
(with-eval-after-load 'magit
|
|
||||||
(require 'forge))
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
windowCosmetics = ''
|
windowCosmetics = ''
|
||||||
|
@ -163,6 +160,11 @@ let
|
||||||
(global-set-key (kbd "<f8>") 'delete-other-windows)
|
(global-set-key (kbd "<f8>") 'delete-other-windows)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
lspMode = ''
|
||||||
|
(require 'lsp-mode)
|
||||||
|
(add-hook 'rust-mode-hook #'lsp)
|
||||||
|
'';
|
||||||
|
|
||||||
dotEmacs = pkgs.writeText "dot-emacs" ''
|
dotEmacs = pkgs.writeText "dot-emacs" ''
|
||||||
${packageRepos}
|
${packageRepos}
|
||||||
|
|
||||||
|
@ -177,11 +179,20 @@ let
|
||||||
|
|
||||||
${orgAgendaView}
|
${orgAgendaView}
|
||||||
${myFunctionKeys}
|
${myFunctionKeys}
|
||||||
|
${lspMode}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
#emacsWithCustomPackages
|
#emacsWithCustomPackages
|
||||||
emacsPkgs= epkgs: [
|
emacsPkgs= epkgs: [
|
||||||
#testing
|
# testing lsp mode
|
||||||
|
epkgs.melpaPackages.lsp-ui
|
||||||
|
epkgs.melpaPackages.company-lsp
|
||||||
|
epkgs.melpaPackages.lsp-treemacs
|
||||||
|
epkgs.melpaPackages.helm-lsp
|
||||||
|
epkgs.melpaPackages.dap-mode
|
||||||
|
epkgs.melpaPackages.lsp-mode
|
||||||
|
|
||||||
|
# testing
|
||||||
epkgs.melpaPackages.web-mode
|
epkgs.melpaPackages.web-mode
|
||||||
epkgs.melpaPackages.js2-mode
|
epkgs.melpaPackages.js2-mode
|
||||||
epkgs.melpaPackages.xref-js2
|
epkgs.melpaPackages.xref-js2
|
||||||
|
@ -189,7 +200,6 @@ let
|
||||||
epkgs.melpaPackages.academic-phrases
|
epkgs.melpaPackages.academic-phrases
|
||||||
|
|
||||||
epkgs.melpaPackages.gitlab
|
epkgs.melpaPackages.gitlab
|
||||||
epkgs.melpaPackages.forge
|
|
||||||
epkgs.melpaPackages.helm
|
epkgs.melpaPackages.helm
|
||||||
epkgs.melpaPackages.weechat
|
epkgs.melpaPackages.weechat
|
||||||
|
|
||||||
|
@ -200,6 +210,7 @@ let
|
||||||
epkgs.melpaPackages.evil
|
epkgs.melpaPackages.evil
|
||||||
epkgs.melpaPackages.google-this
|
epkgs.melpaPackages.google-this
|
||||||
epkgs.melpaPackages.monokai-alt-theme
|
epkgs.melpaPackages.monokai-alt-theme
|
||||||
|
epkgs.melpaPackages.zenburn-theme
|
||||||
|
|
||||||
# development
|
# development
|
||||||
epkgs.melpaPackages.magit
|
epkgs.melpaPackages.magit
|
||||||
|
@ -208,7 +219,7 @@ let
|
||||||
epkgs.melpaPackages.haskell-mode
|
epkgs.melpaPackages.haskell-mode
|
||||||
# rust
|
# rust
|
||||||
epkgs.melpaPackages.rust-mode
|
epkgs.melpaPackages.rust-mode
|
||||||
epkgs.melpaPackages.flycheck-rust
|
# epkgs.melpaPackages.flycheck-rust
|
||||||
epkgs.melpaPackages.racer
|
epkgs.melpaPackages.racer
|
||||||
|
|
||||||
# python
|
# python
|
||||||
|
@ -219,16 +230,19 @@ let
|
||||||
epkgs.orgPackages.org-plus-contrib
|
epkgs.orgPackages.org-plus-contrib
|
||||||
epkgs.melpaPackages.smex
|
epkgs.melpaPackages.smex
|
||||||
epkgs.melpaPackages.org-mime
|
epkgs.melpaPackages.org-mime
|
||||||
|
epkgs.melpaPackages.orgit
|
||||||
|
|
||||||
|
|
||||||
epkgs.elpaPackages.which-key
|
epkgs.elpaPackages.which-key
|
||||||
];
|
];
|
||||||
emacsWithOverlay = (pkgsWithOverlay.emacsWithPackagesFromUsePackage {
|
|
||||||
config = builtins.readFile dotEmacs; # builtins.readFile ./emacs.el;
|
emacsWithOverlay = pkgsWithOverlay.emacsWithPackagesFromUsePackage {
|
||||||
# Package is optional, defaults to pkgs.emacs
|
config = builtins.readFile dotEmacs; # builtins.readFile ./emacs.el;
|
||||||
package = pkgsWithOverlay.emacsGit;
|
# Package is optional, defaults to pkgs.emacs
|
||||||
# Optionally provide extra packages not in the configuration file
|
package = pkgsWithOverlay.emacsGit;
|
||||||
extraEmacsPackages = emacsPkgs;
|
# Optionally provide extra packages not in the configuration file
|
||||||
});
|
extraEmacsPackages = emacsPkgs;
|
||||||
|
};
|
||||||
|
|
||||||
myEmacs = pkgs.writeDashBin "my-emacs" ''
|
myEmacs = pkgs.writeDashBin "my-emacs" ''
|
||||||
exec ${emacsWithOverlay}/bin/emacs -q -l ${dotEmacs} "$@"
|
exec ${emacsWithOverlay}/bin/emacs -q -l ${dotEmacs} "$@"
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
rustup
|
rustup
|
||||||
|
gcc
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
nixos-config.symlink = "stockholm/jeschli/1systems/${name}/config.nix";
|
nixos-config.symlink = "stockholm/jeschli/1systems/${name}/config.nix";
|
||||||
nixpkgs-unstable.git = {
|
nixpkgs-unstable.git = {
|
||||||
url = "https://github.com/nixos/nixpkgs-channels";
|
url = "https://github.com/nixos/nixpkgs-channels";
|
||||||
ref = "nixos-unstable";
|
ref = (lib.importJSON ../krebs/nixpkgs-unstable.json).rev;
|
||||||
};
|
};
|
||||||
secrets = if test then {
|
secrets = if test then {
|
||||||
file = toString ./2configs/tests/dummy-secrets;
|
file = toString ./2configs/tests/dummy-secrets;
|
||||||
|
|
Loading…
Reference in a new issue