Coder Social home page Coder Social logo

felko / vide Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 636 KB

A proof of concept for a nix-powered IDE assembled from individual components

License: Do What The F*ck You Want To Public License

Nix 58.15% KakouneScript 37.28% Shell 4.56%
broot editor fzf ide kakoune lazygit nix nix-flake zellij

vide's Introduction

vide

A nix-powered IDE assembled from individual components, namely:

selecting a file by content search using broot

Motivation

Thanks to Nix flakes, one can directly invoke nix run github:felko/vide from any computer with Nix installed with flake and nix-command experimental features. The IDE will run and leave no trace after garbage collection. The configuration is completely standalone which means you will get the exact same interface regardless of any potential XDG configurations.

Make your own

The choice of tools and config is very opinionated and is not written in a modular way. Feel free to fork the repo if you want to use different tools or anything that makes it more to your liking. That being said, I won't accept PRs that add support for alternative tools (e.g. other editors, file explorers, etc) since this repo is intended for my personal use.

Installation

While the primary purpose is to be able to run the IDE by URL as shown above, it's also possible to install it on your system, either declaratively or imperatively.

NixOS/nix-darwin

{
  inputs = {
    ...

    vide.url = "github:felko/vide";
  };

  outputs = inputs @ { self, ... }: {
    # darwinConfigurations.myconfig = nix-darwin.lib.darwinSystem rec {
    #   system = "aarch64-darwin";
    # or
    nixosConfigurations.myconfig = nixos.lib.nixosSystem rec {
      system = "x86_64-linux";
      modules = [ ./configuration.nix ];
      specialArgs = {
        inherit inputs;
      };
    };
  };
}
{ pkgs, inputs, system, ... }:

{
  environment.systemPackages = [
    inputs.vide.packages.${system}.vide
  ];
}

Home-manager

{
  inputs = {
    ...

    vide.url = "github:felko/vide";
  };

  outputs = { nixpkgs, ... } @ inputs:
    let
      system = "aarch64-darwin";
      pkgs = nixpkgs.legacyPackages.${system};
    in {
      homeConfigurations.<user> = home-manager.lib.homeManagerConfiguration {
        ...
        extraSpecialArgs = {
          inherit inputs system;
        };
      };
    };
}
{ pkgs, inputs, system, ... }:

{
  home.packages = [
    inputs.vide.packages.${system}.vide
  ];
}

Profile installation

nix profile install github:felko/vide

vide's People

Contributors

felko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vide's Issues

nice.

now THIS is a good idea.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.