dotfiles for my personal setup
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 .
Listing all .desktop
files:
ls -l /run/current-system/sw/share/applications
Config MimeTypes:
# See settings
/etc/xdg/mimeapps.list
Apply to the current folder by running:
nix flake init -t github:conneroisu/nix-config#devshell
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
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
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
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];
};
};
};
}