Merge branch 'master' of git.2li.ch:Nebucatnetzer/nixos

This commit is contained in:
Andreas Zweili 2022-09-15 22:13:39 +02:00
commit d4de8a2677
5 changed files with 11 additions and 1 deletions

View File

@ -96,7 +96,7 @@
homeConfigurations = { homeConfigurations = {
"${custom.username}@co-ws-con4" = home-manager.lib.homeManagerConfiguration { "${custom.username}@co-ws-con4" = home-manager.lib.homeManagerConfiguration {
configuration = import "${inputs.self}/home-manager/work-wsl.nix"; configuration = import "${inputs.self}/home-manager/work-wsl.nix";
system = "x86_64"; system = "x86_64-linux";
username = custom.username; username = custom.username;
homeDirectory = "/home/${custom.username}"; homeDirectory = "/home/${custom.username}";
extraSpecialArgs = { extraSpecialArgs = {

View File

@ -23,6 +23,7 @@
python39Packages.flake8 python39Packages.flake8
python39Packages.jedi python39Packages.jedi
python39Packages.pip python39Packages.pip
python39Packages.python-lsp-server
python39Packages.yapf python39Packages.yapf
epkgs.ace-window epkgs.ace-window
epkgs.amx epkgs.amx
@ -62,6 +63,7 @@
epkgs.hydra epkgs.hydra
epkgs.know-your-http-well epkgs.know-your-http-well
epkgs.languagetool epkgs.languagetool
epkgs.lsp-mode
epkgs.lv epkgs.lv
epkgs.magit epkgs.magit
epkgs.makey epkgs.makey

View File

@ -0,0 +1,3 @@
(use-package lsp-mode
:config
(add-hook 'python-mode-hook #'lsp))

View File

@ -30,6 +30,7 @@
(load-file (modules-path "direnv.el")) (load-file (modules-path "direnv.el"))
(load-file (modules-path "format_all.el")) (load-file (modules-path "format_all.el"))
(load-file (modules-path "magit.el")) (load-file (modules-path "magit.el"))
(load-file (modules-path "languageserver.el"))
(load-file (modules-path "powershell.el")) (load-file (modules-path "powershell.el"))
(load-file (modules-path "projectile.el")) (load-file (modules-path "projectile.el"))
(load-file (modules-path "python.el")) (load-file (modules-path "python.el"))

View File

@ -8,6 +8,7 @@
"$hostname" "$hostname"
"$directory" "$directory"
"$nix_shell" "$nix_shell"
"$python"
"$git_branch" "$git_branch"
"$git_status" "$git_status"
"$character" "$character"
@ -15,6 +16,9 @@
nix_shell = { nix_shell = {
format = "$symbol"; format = "$symbol";
}; };
python = {
format = "[$\{symbol\}($virtualenv) ]($style)";
};
}; };
enable = true; enable = true;
}; };