this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

trying to get cube off the ground again

+58 -72
+5 -19
README.md
··· 24 24 25 25 | | | 26 26 |----------------|----------------------------------------------------------| 27 - | **Shell:** | bash / elvish | 27 + | **Shell:** | bash / zsh | 28 28 | **DM:** | lightdm + lightdm-mini-greeter | 29 29 | **WM:** | bspwm + polybar | 30 30 | **Editor:** | nvim | ··· 36 36 ----- 37 37 38 38 39 - ### Status: Beta 40 - The volcanic rock still shifts below this structure. It has not solidified and cannot yet be considered `home` 41 - You should not expect landmarks here. 42 - Learn to adopt Chaos. 39 + ### Status: Tectonic 40 + The planet is cooling down, and approaching stability. It is well understood, and the continents are not expected to change much more. One should expect some more localized changes, and further development. 43 41 44 42 ## Shoulders 45 43 Summoning is powerful magic, and cannot be created in isolation. It stands on the [shoulders of the 46 44 following giants][giants]: 47 45 48 46 ### :onion: — like the layers of an onion 49 - - [`divnix/digga`][digga] 50 - - [`gytis-ivaskevicius/flake-utils-plus`][fup] 51 - - [`numtide/flake-utils`][fu] 52 - - [`numtide/devshell`][devshell] 53 47 - [`serokell/deploy-rs`][deploy] 54 - - [`berberman/nvfetcher`][nvfetcher] 55 48 - [`NixOS/nixpkgs`][nixpkgs] 56 - - Agenix 57 - - direnv 49 + - [`ryantm/agenix`][agenix] 50 + - [`direnv/direnv`][direnv] 58 51 59 52 :heart: 60 53 ··· 73 66 DevOS is licensed under the [MIT License][mit]. 74 67 75 68 [community]: https://github.com/divnix/devos/tree/community 76 - [core]: https://github.com/divnix/devos 77 69 [deploy]: https://github.com/serokell/deploy-rs 78 - [devshell]: https://github.com/numtide/devshell 79 - [digga]: https://github.com/divnix/digga 80 70 [dotfiles]: https://github.com/hlissner/dotfiles 81 71 [flake-doc]: https://github.com/NixOS/nix/blob/master/src/nix/flake.md 82 72 [flakes]: https://nixos.wiki/wiki/Flakes 83 - [fu]: https://github.com/numtide/flake-utils 84 - [fup]: https://github.com/gytis-ivaskevicius/flake-utils-plus 85 73 [giants]: https://en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants 86 74 [home-manager]: https://nix-community.github.io/home-manager 87 75 [mit]: https://mit-license.org 88 - [mk-flake]: https://github.com/divnix/digga/tree/master/src/mkFlake 89 76 [nix]: https://nixos.org/manual/nix/stable 90 77 [nixos]: https://nixos.org/manual/nixos/stable 91 78 [nixpkgs]: https://github.com/NixOS/nixpkgs 92 - [nvfetcher]: https://github.com/berberman/nvfetcher 93 79
+16 -7
flake.nix
··· 74 74 unstable = unstable.legacyPackages.${prev.system}; 75 75 deploy = deploy-rs.packages.${prev.system}.deploy-rs; 76 76 }; 77 + 77 78 nixpkgsFor = forAllSystems (system: import nixpkgs { 78 79 inherit system; 79 80 config.allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ ··· 88 89 agenix.overlay 89 90 nur.overlay 90 91 unstableOverlay 92 + self.overlays.additions 93 + ]; 94 + }); 95 + 96 + # for when space matters 97 + litePkgsFor = forAllSystems (system: import nixpkgs { 98 + inherit system; 99 + overlays = [ 100 + agenix.overlay 101 + tidalcycles.overlays.default # needed for nvim which comes pre-installed lol 91 102 self.overlays.additions 92 103 ]; 93 104 }); ··· 134 145 } 135 146 ]; 136 147 }; 148 + 137 149 helix = nixpkgs.lib.nixosSystem rec { 138 150 specialArgs = { inherit inputs self; }; 139 151 system = "x86_64-linux"; ··· 151 163 } 152 164 ]; 153 165 }; 166 + 154 167 lituus = nixpkgs.lib.nixosSystem rec { 155 168 specialArgs = { inherit inputs self; }; 156 169 system = "x86_64-linux"; ··· 168 181 } 169 182 ]; 170 183 }; 184 + 171 185 cube = nixpkgs.lib.nixosSystem rec { 172 186 specialArgs = { inherit inputs self; }; 173 187 system = "x86_64-linux"; 174 - pkgs = nixpkgsFor.${system}; 188 + pkgs = litePkgsFor.${system}; 175 189 modules = [ 176 190 ./hosts/cube 177 191 agenix.nixosModules.age 178 192 self.nixosModules.backup 179 193 self.nixosModules.wireguard 180 194 basant.nixosModule 181 - home-manager.nixosModules.home-manager 182 - { 183 - home-manager.useGlobalPkgs = true; 184 - home-manager.useUserPackages = true; 185 - home-manager.users.anish = import ./home/core; 186 - } 187 195 ]; 188 196 }; 197 + 189 198 box = nixpkgs.lib.nixosSystem rec { 190 199 specialArgs = { inherit inputs self; }; 191 200 system = "x86_64-linux";
+31 -41
home/profiles/nvim/default.nix
··· 143 143 tasklib 144 144 pynvim 145 145 six 146 - python-lsp-server 147 - python-lsp-black 148 146 pylsp-mypy 149 147 black 148 + isort 150 149 # other python packages you want 151 150 ]; 152 151 python-with-my-packages = pkgs.python3.withPackages my-python-packages; ··· 539 538 540 539 -- null-ls 541 540 local null_ls = require "null-ls" 542 - local pyright = { 543 - cmd = { "pyright" }, 544 - filetypes = { "python", }, 545 - debounce = 250, 546 - debug = false, 547 - default_timeout = 5000, 548 - args = { "-p", "$FILENAME", "--skipunannotated" } 549 - } 550 541 local sources = { 551 - pyright, 552 542 null_ls.builtins.code_actions.statix, 553 543 null_ls.builtins.diagnostics.shellcheck, 554 544 -- null_ls.builtins.diagnostics.clj_kondo, 555 - -- null_ls.builtins.formatting.black, 545 + null_ls.builtins.formatting.isort, 546 + null_ls.builtins.formatting.black, 556 547 null_ls.builtins.code_actions.proselint, 557 - -- null_ls.builtins.diagnostics.mypy, 558 548 } 549 + null_ls.setup({sources}) 559 550 560 551 -- Setup lspconfig 561 552 require("lsp-format").setup {} ··· 567 558 capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) 568 559 569 560 local lspconfig = require('lspconfig') 570 - local servers = { 'clojure_lsp', 'terraform_lsp', 'zls' } 561 + local servers = { 'clojure_lsp', 'terraform_lsp', 'zls', 'pyright', 'rust_analyzer', 'tsserver' } 571 562 for _, lsp in ipairs(servers) do 572 563 lspconfig[lsp].setup { 573 564 on_attach = function(client, bufnr) ··· 584 575 end, 585 576 capabilities = capabilities, 586 577 } 587 - require('lspconfig').pylsp.setup { 588 - on_attach = function(client, bufnr) 589 - format.on_attach(client) 590 - navic.attach(client, bufnr) 591 - end, 592 - capabilities = capabilities, 593 - settings = { 594 - pylsp = { 595 - configurationSources = { "flake8", "mypy", "black" }, 596 - plugins = { 597 - black = {enabled = true}, 598 - jedi_signature_help = {enabled = true}, 599 - jedi_completion = { include_params = true }, 600 - pylsp_mypy={ enabled = true }, 601 - pycodestyle={ 602 - enabled=true, 603 - ignore={'E501', 'E231'}, 604 - maxLineLength=120, 605 - }, 606 - }, 607 - }, 608 - }, 609 - } 578 + -- deprecated pylsp 579 + -- require('lspconfig').pylsp.setup { 580 + -- on_attach = function(client, bufnr) 581 + -- format.on_attach(client) 582 + -- navic.attach(client, bufnr) 583 + -- end, 584 + -- capabilities = capabilities, 585 + -- settings = { 586 + -- pylsp = { 587 + -- configurationSources = { "flake8", "mypy", "black" }, 588 + -- plugins = { 589 + -- black = {enabled = true}, 590 + -- jedi_signature_help = {enabled = true}, 591 + -- jedi_completion = { include_params = true }, 592 + -- pylsp_mypy={ enabled = true }, 593 + -- pycodestyle={ 594 + -- enabled=true, 595 + -- ignore={'E501', 'E231'}, 596 + -- maxLineLength=120, 597 + -- }, 598 + -- }, 599 + -- }, 600 + -- }, 601 + -- } 610 602 611 603 require('gitsigns').setup { sign_priority=80 } 612 604 ··· 738 730 clojure-lsp 739 731 rnix-lsp 740 732 terraform-lsp 733 + rust-analyzer 741 734 clj-kondo 742 735 zls 743 736 gcc 744 - nodePackages.pyright 737 + nodePackages_latest.pyright 745 738 shellcheck 746 739 proselint 747 740 statix 748 - # installs different langauge servers for neovim-lsp 749 - # have a look on the link below to figure out the ones for your languages 750 - # https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md 751 741 nodePackages.typescript 752 742 nodePackages.typescript-language-server 753 743 ];
+2 -4
hosts/profiles/core/default.nix
··· 36 36 cached-nix-shell 37 37 ]; 38 38 39 - services.devmon.enable = true; 40 - 41 39 # For rage encryption, all hosts need a ssh key pair 42 40 services.openssh = { 43 41 enable = true; 44 42 openFirewall = lib.mkDefault false; 45 43 }; 46 44 47 - programs.gnupg.agent.enable = true; 48 - #programs.gnupg.agent.pinentryFlavor = "curses"; 45 + # programs.gnupg.agent.enable = true; 46 + # programs.gnupg.agent.pinentryFlavor = "curses"; 49 47 50 48 services.earlyoom.enable = true; 51 49 }
+3
hosts/profiles/desktop/default.nix
··· 25 25 age.secrets.mossnet.file = "${self}/secrets/mossnet.age"; 26 26 age.secrets.mossnet.owner = "anish"; 27 27 28 + # We don't plug USBs into servers 29 + services.devmon.enable = true; 30 + 28 31 services = { 29 32 gnome.gnome-keyring.enable = true; 30 33 upower.enable = true;
+1 -1
hosts/profiles/site/default.nix
··· 1 1 { self, pkgs, ... }: 2 2 { 3 3 services."anish.lakhwara.com".enable = true; 4 - services."anish.lakhwara.com".enableSSL = true; 4 + services."anish.lakhwara.com".enableSSL = false; 5 5 }