8000 GitHub - conneroisu/dotfiles: Conner Ohnesorge's dotfiles
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

conneroisu/dotfiles

Repository files navigation

dotfiles - Conner Ohnesorge

.github/workflows/ci.yml

Introduction

Pasted image 20250224165002.png

dotfiles for my personal setup

Installation

git clone --recurse-submodules -j8 https://github.com/conneroisu/dotfiles.git
cd dotfiles

# MACOS
darwin-rebuild switch --flake . --show-trace

# LINUX
nix build .#homeConfigurations.x86_64-linux.activationPackage

# NIXOS
sudo nixos-rebuild switch --flake .

Development

Listing all .desktop files:

 ls -l /run/current-system/sw/share/applications

Config MimeTypes:

# See settings
/etc/xdg/mimeapps.list

Templates

Basic dev shell

Apply to the current folder by running:

nix flake init -t github:conneroisu/nix-config#devshell

Rust dev shell

WARNING: It only provides the shell commands (cargo, rust-analyzer, etc), not a way to build a package. This template is only useful to avoid installing rust globally.

nix flake init -t github:conneroisu/dotfiles#rust-shell

Go dev shell

WARNING: It only provides the shell commands (go, gopls, etc), not a way to build a package. This template is only useful to avoid installing go globally.

nix flake init -t github:conneroisu/dotfiles#go-shell

Remix JS dev shell

WARNING: It only provides the shell commands (bun, remix, etc), not a way to build a package. This template is only useful to avoid installing Remix JS globally.

nix flake init -t github:conneroisu/dotfiles#remix-js-shell

Laravel dev shell

WARNING: It only provides the shell commands (php, composer, etc), not a way to build a package. This template is only useful to avoid installing Laravel globally.

nix flake init -t github:connsoisu/dotfiles#laravel-shell

Adding a package build is as simple as:

{
  inputs.nix-config.url = "github:connsoisu/nix-config";
  outputs = {
    self,
    nixpkgs,
    nix-config,
  }: let
    pkgs = nixpkgs.legacyPackages.x86_64-linux;
  in {
    packages.x86_64-linux.default = pkgs.buildGoModule {
      pname = "my-go-project";
      version = "0.0.1";
      src = ./.;
      vendorSha256 = "sha256-0s0m0m0";
      doCheck = false;
      meta = with pkgs.lib; {
        description = "My Go project";
        homepage = "https://github.com/my-go-project";
        license = licenses.asl20;
        maintainers = with maintainers; [conneroheisorge];
      };
    };
  };
}
0