summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usecases/desktop/development.nix56
1 files changed, 53 insertions, 3 deletions
diff --git a/usecases/desktop/development.nix b/usecases/desktop/development.nix
index 022482d..e9c4ca2 100644
--- a/usecases/desktop/development.nix
+++ b/usecases/desktop/development.nix
@@ -15,11 +15,14 @@ let
15in 15in
16{ 16{
17 users.extraUsers.minijackson.packages = with pkgs; [ 17 users.extraUsers.minijackson.packages = with pkgs; [
18 rr
19 rtags
20 gcc
21 clang 18 clang
22 clang-tools 19 clang-tools
20 elixir
21 gcc
22 gdb
23 man-pages
24 rr
25 rtags
23 ]; 26 ];
24 27
25 vim = { 28 vim = {
@@ -36,4 +39,51 @@ in
36 rust_analyzer_path = "'${rust-analyzer-unwrapped}/bin/rust-analyzer'"; 39 rust_analyzer_path = "'${rust-analyzer-unwrapped}/bin/rust-analyzer'";
37 }; 40 };
38 }; 41 };
42
43 programs.zsh.interactiveShellInit = ''
44 (( $+commands[rustc] )) && fpath+="$(rustc --print sysroot)/share/zsh/site-functions"
45 '';
46
47 documentation.dev.enable = true;
48
49 boot.kernel.sysctl = {
50 # For RR
51 "kernel.perf_event_paranoid" = 1;
52 };
53
54 home-manager.users.minijackson = { config, ... }:
55 {
56 home.file.".clang-format".source = (pkgs.formats.yaml { }).generate
57 "clang-format.yml"
58 {
59 BasedOnStyle = "Mozilla";
60 ColumnLimit = 100;
61 TabWidth = 4;
62 IndentWidth = 4;
63 UseTab = "ForIndentation";
64
65 AccessModifierOffset = -4;
66 AlwaysBreakAfterDefinitionReturnType = "None";
67 AlwaysBreakAfterReturnType = "None";
68 AlwaysBreakTemplateDeclarations = true;
69 BinPackArguments = false;
70 BinPackParameters = false;
71 BreakConstructorInitializers = "BeforeComma";
72 Cpp11BracedListStyle = true;
73 DerivePointerAlignment = false;
74 NamespaceIndentation = "Inner";
75 PenaltyBreakBeforeFirstCallParameter = 2;
76 PointerAlignment = "Left";
77 Standard = "Latest";
78 };
79
80 programs.direnv = {
81 enable = true;
82 enableBashIntegration = true;
83 enableZshIntegration = true;
84 };
85
86 };
87
88 services.lorri.enable = true;
39} 89}