Compare commits
14 Commits
cdc170770f
...
pc
| Author | SHA1 | Date | |
|---|---|---|---|
| 93d98e3001 | |||
|
|
66767ebdfe | ||
|
|
2224c25e2b | ||
|
|
f60bf4608f | ||
|
|
e39404d44d | ||
|
|
3cb6e5d907 | ||
|
|
5b303353f5 | ||
|
|
20996e42e1 | ||
|
|
936064f3e7 | ||
|
|
32fe50e27c | ||
|
|
f85d945337 | ||
|
|
6c601333a0 | ||
|
|
9476766bb0 | ||
|
|
ca27831f4a |
@@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
description = "Flutter 3.13.x";
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
|
|
||||||
android-nixpkgs = {
|
|
||||||
url = "github:tadfisher/android-nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
outputs = { self, nixpkgs, flake-utils, android-nixpkgs }:
|
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
|
||||||
let
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
config = {
|
|
||||||
android_sdk.accept_license = true;
|
|
||||||
allowUnfree = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
|
||||||
buildToolsVersions = [ "30.0.3" "34.0.0" "33.0.1"];
|
|
||||||
platformVersions = [ "35" "34" "33" "28" ];
|
|
||||||
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
|
|
||||||
};
|
|
||||||
androidCustomPackage = android-nixpkgs.sdk.${system} (
|
|
||||||
sdkPkgs: with sdkPkgs; [
|
|
||||||
build-tools-30.0.3
|
|
||||||
build-tools-34.0.0
|
|
||||||
]
|
|
||||||
);
|
|
||||||
androidSdk = androidComposition.androidsdk;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
devShell =
|
|
||||||
with pkgs; mkShell rec {
|
|
||||||
shellHook = ''
|
|
||||||
nu
|
|
||||||
exit
|
|
||||||
'';
|
|
||||||
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
|
|
||||||
|
|
||||||
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
|
||||||
buildInputs = [
|
|
||||||
flutter
|
|
||||||
androidSdk # The customized SDK that we've made above
|
|
||||||
# jdk17
|
|
||||||
jdk21
|
|
||||||
|
|
||||||
(vscode-with-extensions.override {
|
|
||||||
vscode = vscodium;
|
|
||||||
vscodeExtensions = with vscode-extensions; [
|
|
||||||
vscodevim.vim
|
|
||||||
dart-code.dart-code
|
|
||||||
dart-code.flutter
|
|
||||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace[
|
|
||||||
{
|
|
||||||
name = "awesome-flutter-snippets";
|
|
||||||
publisher = "nash";
|
|
||||||
version = "4.0.1";
|
|
||||||
sha256 = "lXdos/xB18h3Z0YfkgEk55G2JvRMYudUUIltugQjylU=";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nix.settings.trusted-users = [ "root" "nico" ];
|
||||||
# home manager
|
# home manager
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
@@ -17,30 +18,29 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# hyprland
|
# hyprland
|
||||||
programs.hyprland = {
|
# programs.hyprland = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
xwayland.enable = true;
|
# xwayland.enable = true;
|
||||||
};
|
# };
|
||||||
|
|
||||||
|
programs.niri.enable = true;
|
||||||
|
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.loader.grub.useOSProber = true;
|
||||||
|
|
||||||
|
fileSystems."mnt/win" = {
|
||||||
swapDevices = [ ];
|
device = "/dev/disk/by-partuuid/8d0a8dd9-7a4c-4d3e-a5eb-98c0aed35db5";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
fileSystems."mnt/win" = {
|
options = ["rw" "uid=1000"];
|
||||||
device = "/dev/sdb1";
|
};
|
||||||
fsType = "ntfs";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Flakes
|
# Flakes
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
networking.hostName = "nico-nixos"; # Define your hostname.
|
|
||||||
networking.enableIPv6 = false;
|
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# Configure network proxy if necessary networking.proxy.default =
|
# Configure network proxy if necessary networking.proxy.default =
|
||||||
@@ -48,16 +48,19 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
# "127.0.0.1,localhost,internal.domain";
|
# "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
boot.kernelParams = [ "ipv6.disable=1" ];
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
|
networking.enableIPv6 = false;
|
||||||
|
|
||||||
# VM
|
# VM
|
||||||
virtualisation.virtualbox.host.enable = true;
|
# virtualisation.virtualbox.host.enable = true;
|
||||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
# virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||||
virtualisation.virtualbox.host.enableKvm = true;
|
# virtualisation.virtualbox.host.enableKvm = true;
|
||||||
virtualisation.virtualbox.host.addNetworkInterface = false;
|
# virtualisation.virtualbox.host.addNetworkInterface = false;
|
||||||
users.extraGroups.vboxusers.members = [ "nico" ];
|
# users.extraGroups.vboxusers.members = [ "nico" ];
|
||||||
# virtualisation.virtualbox.guest.enable = true;
|
# # virtualisation.virtualbox.guest.enable = true;
|
||||||
# virtualisation.virtualbox.guest.dragAndDrop = true;
|
# # virtualisation.virtualbox.guest.dragAndDrop = true;
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
@@ -74,6 +77,28 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
# Enable the X11 windowing system. You can disable this if you're only using the Wayland session.
|
# Enable the X11 windowing system. You can disable this if you're only using the Wayland session.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
];
|
||||||
|
config = {
|
||||||
|
common = {
|
||||||
|
default = [ "gtk" ];
|
||||||
|
};
|
||||||
|
niri = {
|
||||||
|
default = [
|
||||||
|
"gtk"
|
||||||
|
"gnome"
|
||||||
|
];
|
||||||
|
"org.freedesktop.impl.portal.ScreenCast" = [ "gnome" ];
|
||||||
|
"org.freedesktop.impl.portal.Screenshot" = [ "gnome" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
# Enable the KDE Plasma Desktop Environment.
|
||||||
services.displayManager.sddm.enable = true;
|
services.displayManager.sddm.enable = true;
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
@@ -89,10 +114,10 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
services.pulseaudio.enable = true;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = false;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
@@ -103,43 +128,58 @@ boot.loader.efi.canTouchEfiVariables = true;
|
|||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.orca.enable = false;
|
||||||
# Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable
|
# Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable
|
||||||
# = true;
|
# = true;
|
||||||
services.mullvad-vpn.enable = true;
|
services.mullvad-vpn.enable = true;
|
||||||
|
services.mullvad-vpn.package = pkgs.mullvad-vpn;
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.nico = { isNormalUser = true; description = "nico"; extraGroups = [ "networkmanager"
|
users.users.nico = { isNormalUser = true; description = "nico"; extraGroups = [ "networkmanager"
|
||||||
"wheel" "adbusers" "docker"]; packages = with pkgs; [
|
"wheel" "adbusers" "docker" "input" "dialout"]; packages = with pkgs; [
|
||||||
obsidian
|
|
||||||
musescore
|
|
||||||
mullvad-vpn
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
users.defaultUserShell = pkgs.nushell;
|
|
||||||
environment.shells = with pkgs; [ zsh nushell ];
|
environment.shells = with pkgs; [ zsh nushell ];
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# Install firefox.
|
|
||||||
programs.firefox.enable = true;
|
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
services.udev.packages = [
|
||||||
|
pkgs.platformio-core
|
||||||
|
pkgs.openocd
|
||||||
|
];
|
||||||
|
|
||||||
|
# services.flatpak.enable = true;
|
||||||
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run: $ nix search wget
|
# List packages installed in system profile. To search, run: $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed
|
# grayjay
|
||||||
|
signal-desktop
|
||||||
|
obsidian
|
||||||
|
discord
|
||||||
|
anki
|
||||||
|
grayjay
|
||||||
|
lutris
|
||||||
|
qbittorrent
|
||||||
|
vim
|
||||||
wget
|
wget
|
||||||
git
|
git
|
||||||
kitty
|
kitty
|
||||||
tree
|
tree
|
||||||
nodejs
|
nodejs
|
||||||
gparted
|
gparted
|
||||||
|
ntfs3g
|
||||||
heroic
|
heroic
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
||||||
|
winetricks
|
||||||
spotify
|
spotify
|
||||||
#spicetify-cli
|
#spicetify-cli
|
||||||
sshfs
|
sshfs
|
||||||
|
freetube
|
||||||
|
# anydesk
|
||||||
|
devenv
|
||||||
|
|
||||||
# sway
|
# sway
|
||||||
networkmanager
|
networkmanager
|
||||||
@@ -171,7 +211,7 @@ hardware.amdgpu.opencl.enable = true;
|
|||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = false;
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -196,7 +236,7 @@ hardware.amdgpu.opencl.enable = true;
|
|||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = false;
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPortRanges = [
|
||||||
{ from = 1714; to = 1764; } # KDE Connect
|
{ from = 1714; to = 1764; } # KDE Connect
|
||||||
];
|
];
|
||||||
|
|||||||
297
flake.lock
generated
297
flake.lock
generated
@@ -6,11 +6,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1738087375,
|
"lastModified": 1763165251,
|
||||||
"narHash": "sha256-GLyNtU9A2VN22jNRHZ2OXuFfTJLh8uEVVt+ftsKUX0c=",
|
"narHash": "sha256-HqprJ5e5+tLVbk3EuWnyiBkVfKTA149eHh+u2VzUrY0=",
|
||||||
"owner": "Aylur",
|
"owner": "Aylur",
|
||||||
"repo": "ags",
|
"repo": "ags",
|
||||||
"rev": "a6a7a0adb17740f4c34a59902701870d46fbb6a4",
|
"rev": "0cbca42b11d23aad8c0689fc7385e517bde94c61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -27,11 +27,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737670815,
|
"lastModified": 1762012522,
|
||||||
"narHash": "sha256-ZCxxshGN7XooabArcoGkYSNx5yVunqjKJi2aTv6cznI=",
|
"narHash": "sha256-ncEN4OVFM5M9VFc4oR3gOI5K8r99GcYxtU+Cf4Z8pbs=",
|
||||||
"owner": "aylur",
|
"owner": "aylur",
|
||||||
"repo": "astal",
|
"repo": "astal",
|
||||||
"rev": "127e9cdcbf173846a3c40ddc0abfbb038df48042",
|
"rev": "671d4229c798834190a50fb8b8d8addd19b529e9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -40,6 +40,73 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"crane": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762538466,
|
||||||
|
"narHash": "sha256-8zrIPl6J+wLm9MH5ksHcW7BUHo7jSNOu0/hA0ohOOaM=",
|
||||||
|
"owner": "ipetkov",
|
||||||
|
"repo": "crane",
|
||||||
|
"rev": "0cea393fffb39575c46b7a0318386467272182fe",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ipetkov",
|
||||||
|
"repo": "crane",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1751685974,
|
||||||
|
"narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1",
|
||||||
|
"revCount": 92,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.lix.systems/lix-project/flake-compat.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1761588595,
|
||||||
|
"narHash": "sha256-XKUZz9zewJNUj46b4AJdiRZJAvSZ0Dqj2BNfXvFlJC4=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "f387cd2afec9419c8ee37694406ca490c3f34ee5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nvf",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760948891,
|
||||||
|
"narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -47,11 +114,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744038920,
|
"lastModified": 1763416652,
|
||||||
"narHash": "sha256-9a4V1wQXS8hXZtc7mRtz0qINkGW+C99aDrmXY6oYBFg=",
|
"narHash": "sha256-8EBEEvtzQ11LCxpQHMNEBQAGtQiCu/pqP9zSovDSbNM=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "a4d8020820a85b47f842eae76ad083b0ec2a886a",
|
"rev": "ea164b7c9ccdc2321379c2ff78fd4317b4c41312",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -60,13 +127,49 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home-manager_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"zen-browser",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762964643,
|
||||||
|
"narHash": "sha256-RYHN8O/Aja59XDji6WSJZPkJpYVUfpSkyH+PEupBJqM=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "827f2a23373a774a8805f84ca5344654c31f354b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mnw": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758834834,
|
||||||
|
"narHash": "sha256-Y7IvY4F8vajZyp3WGf+KaiIVwondEkMFkt92Cr9NZmg=",
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "mnw",
|
||||||
|
"rev": "cfbc7d1cc832e318d0863a5fc91d940a96034001",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "mnw",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737469691,
|
"lastModified": 1761907660,
|
||||||
"narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=",
|
"narHash": "sha256-kJ8lIZsiPOmbkJypG+B5sReDXSD1KGu2VEPNqhRa/ew=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab",
|
"rev": "2fb006b87f04c4d3bdf08cfdbc7fab9c13d94a15",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -78,11 +181,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743827369,
|
"lastModified": 1763421233,
|
||||||
"narHash": "sha256-rpqepOZ8Eo1zg+KJeWoq1HAOgoMCDloqv5r2EAa9TSA=",
|
"narHash": "sha256-Stk9ZYRkGrnnpyJ4eqt9eQtdFWRRIvMxpNRf4sIegnw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "42a1c966be226125b48c384171c44c651c236c22",
|
"rev": "89c2b2330e733d6cdb5eae7b899326930c2c0648",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -94,11 +197,27 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743827369,
|
"lastModified": 1761880412,
|
||||||
"narHash": "sha256-rpqepOZ8Eo1zg+KJeWoq1HAOgoMCDloqv5r2EAa9TSA=",
|
"narHash": "sha256-QoJjGd4NstnyOG4mm4KXF+weBzA2AH/7gn1Pmpfcb0A=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "a7fc11be66bdfb5cdde611ee5ce381c183da8386",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762977756,
|
||||||
|
"narHash": "sha256-4PqRErxfe+2toFJFgcRKZ0UI9NSIOJa+7RXVtBhy4KE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "42a1c966be226125b48c384171c44c651c236c22",
|
"rev": "c5ae371f1a6a7fd27823bc500d9390b38c05fa55",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -108,25 +227,100 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_5": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 315532800,
|
||||||
|
"narHash": "sha256-5CwQ80ucRHiqVbMEEbTFnjz70/axSJ0aliyzSaFSkmY=",
|
||||||
|
"rev": "f6b44b2401525650256b977063dbcf830f762369",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre891648.f6b44b240152/nixexprs.tar.xz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_6": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762977756,
|
||||||
|
"narHash": "sha256-4PqRErxfe+2toFJFgcRKZ0UI9NSIOJa+7RXVtBhy4KE=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c5ae371f1a6a7fd27823bc500d9390b38c05fa55",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nvf": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"mnw": "mnw",
|
||||||
|
"nixpkgs": "nixpkgs_3",
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762622004,
|
||||||
|
"narHash": "sha256-NpzzgaoMK8aRHnndHWbYNKLcZN0r1y6icCoJvGoBsoE=",
|
||||||
|
"owner": "notashelf",
|
||||||
|
"repo": "nvf",
|
||||||
|
"rev": "09470524a214ed26633ddc2b6ec0c9bf31a8b909",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "notashelf",
|
||||||
|
"repo": "nvf",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"ags": "ags",
|
"ags": "ags",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"spicetify-nix": "spicetify-nix"
|
"nvf": "nvf",
|
||||||
|
"spicetify-nix": "spicetify-nix",
|
||||||
|
"zed": "zed",
|
||||||
|
"zen-browser": "zen-browser"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-overlay": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"zed",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1762915112,
|
||||||
|
"narHash": "sha256-d9j1g8nKmYDHy+/bIOPQTh9IwjRliqaTM0QLHMV92Ic=",
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"rev": "aa1e85921cfa04de7b6914982a94621fbec5cc02",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "oxalica",
|
||||||
|
"repo": "rust-overlay",
|
||||||
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"systems": "systems"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743946771,
|
"lastModified": 1763267524,
|
||||||
"narHash": "sha256-n/LxWCGJtDi/rWMKEXWQn39v46iFZpW+V9mY4/4LJQs=",
|
"narHash": "sha256-CywB4iCpGr4CYZAD+WboFwBQ7Wnc7LdfSemFWuH/1Ro=",
|
||||||
"owner": "Gerg-L",
|
"owner": "Gerg-L",
|
||||||
"repo": "spicetify-nix",
|
"repo": "spicetify-nix",
|
||||||
"rev": "af24d96983faa41e79fa00312106c37a7cc2ca0a",
|
"rev": "cf33e39bd1a21993a28ffee8be433e212ecf346a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -149,6 +343,61 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zed": {
|
||||||
|
"inputs": {
|
||||||
|
"crane": "crane",
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"nixpkgs": "nixpkgs_5",
|
||||||
|
"rust-overlay": "rust-overlay"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1763568568,
|
||||||
|
"narHash": "sha256-PP4h13/BhOnqagvJUtILvnGIylQFm9EmIKeW6vzpWhY=",
|
||||||
|
"owner": "zed-industries",
|
||||||
|
"repo": "zed",
|
||||||
|
"rev": "f05eef58c46be2d6617847494b444ac442780367",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "zed-industries",
|
||||||
|
"repo": "zed",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zen-browser": {
|
||||||
|
"inputs": {
|
||||||
|
"home-manager": "home-manager_2",
|
||||||
|
"nixpkgs": "nixpkgs_6"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1763521945,
|
||||||
|
"narHash": "sha256-Zcrafbe4niRJMbzaVOwg7+iedJhwBFttre2DpyCC6qA=",
|
||||||
|
"owner": "0xc000022070",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"rev": "24d7381b9231c23daceec5d372cc28e877f7785d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "0xc000022070",
|
||||||
|
"repo": "zen-browser-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
14
flake.nix
14
flake.nix
@@ -11,19 +11,29 @@
|
|||||||
|
|
||||||
ags.url = "github:Aylur/ags";
|
ags.url = "github:Aylur/ags";
|
||||||
|
|
||||||
|
nvf.url = "github:notashelf/nvf";
|
||||||
|
|
||||||
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||||
|
|
||||||
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
||||||
|
|
||||||
|
zed.url = "github:zed-industries/zed";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = { self, nixpkgs, nvf, zen-browser, spicetify-nix, zed, ... }@inputs:
|
||||||
let system = "x86_64-linux"; in
|
let system = "x86_64-linux"; in
|
||||||
{
|
{
|
||||||
nixosConfigurations.my-nixos = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
|
# inputs.zen-browser.packages."${system}".default
|
||||||
|
# nvf.homeManagerModules.default
|
||||||
|
# inputs.zed.packages."${system}".default
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -14,12 +14,12 @@
|
|||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/926a710f-a999-4c59-9040-8045efaa6e28";
|
{ device = "/dev/disk/by-uuid/a4bfe07b-a6b5-47d9-80c7-f74b44f84f31";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/39F5-52FB";
|
{ device = "/dev/disk/by-uuid/CB01-5AA6";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0022" "dmask=0022" ];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, lib, system, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.username = "nico";
|
home.username = "nico";
|
||||||
@@ -7,9 +7,10 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./packages
|
./packages
|
||||||
inputs.spicetify-nix.homeManagerModules.default
|
inputs.spicetify-nix.homeManagerModules.default
|
||||||
|
inputs.zen-browser.homeModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
allowUnfreePredicate = (_: true);
|
allowUnfreePredicate = (_: true);
|
||||||
@@ -17,9 +18,40 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
floorp
|
# floorp
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.zen-browser.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
home.pointerCursor =
|
||||||
|
let
|
||||||
|
getFrom = url: hash: name: {
|
||||||
|
gtk.enable = true;
|
||||||
|
x11.enable = true;
|
||||||
|
name = name;
|
||||||
|
size = 48;
|
||||||
|
package =
|
||||||
|
pkgs.runCommand "moveUp" {} ''
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
ln -s ${pkgs.fetchzip {
|
||||||
|
url = url;
|
||||||
|
hash = hash;
|
||||||
|
}} $out/share/icons/${name}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in
|
||||||
|
getFrom
|
||||||
|
"https://github.com/ful1e5/banana-cursor/releases/download/v2.0.0/Banana-Blue.tar.xz"
|
||||||
|
# "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz"
|
||||||
|
"sha256-IZ6sidRjcg0r+E2eFlVfIouTpKWndvrZlCNNYZMQJE0="
|
||||||
|
"Banana-Blue";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
programs.spicetify =
|
programs.spicetify =
|
||||||
let
|
let
|
||||||
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
|
||||||
@@ -37,11 +69,26 @@
|
|||||||
hidePodcasts
|
hidePodcasts
|
||||||
fullScreen
|
fullScreen
|
||||||
];
|
];
|
||||||
|
enabledCustomApps = with spicePkgs.apps; [
|
||||||
|
lyricsPlus
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home.stateVersion = "24.05";
|
home.stateVersion = "24.05";
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# options = {
|
||||||
|
# services.zed = {
|
||||||
|
# enable = lib.mkEnableOption "Zed Editor";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
#
|
||||||
|
# config = lib.mkIf config.services.zed.enable {
|
||||||
|
# environment.systemPackages = [
|
||||||
|
# inputs.zed.packages.${system}.default
|
||||||
|
# pkgs.nixd # System-wide Nix LSP installation
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,20 @@
|
|||||||
imports = [
|
imports = [
|
||||||
# ./ags
|
# ./ags
|
||||||
./other
|
./other
|
||||||
|
# ./floorp
|
||||||
./sway
|
./sway
|
||||||
./swaync
|
./swaync
|
||||||
./waybar
|
./waybar
|
||||||
./wpaperd
|
./wpaperd
|
||||||
./nvim
|
./nvim
|
||||||
./emacs
|
# ./emacs
|
||||||
./kitty
|
./terminal
|
||||||
./rofi
|
./rofi
|
||||||
|
./fuzzel
|
||||||
|
./niri
|
||||||
./hyprland
|
./hyprland
|
||||||
|
./zed-editor
|
||||||
|
# ./tmux
|
||||||
# ./vscode
|
# ./vscode
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
44
packages/floorp/default.nix
Normal file
44
packages/floorp/default.nix
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{ inputs, pkgs, config, lib,... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.floorp = {
|
||||||
|
enable = true;
|
||||||
|
profiles.default = {
|
||||||
|
extensions.packages = with inputs.firefox-addons.packages.${pkgs.system}; [
|
||||||
|
ublock-origin
|
||||||
|
vimium
|
||||||
|
darkreader
|
||||||
|
sidebery
|
||||||
|
bitwarden
|
||||||
|
];
|
||||||
|
# extensions.force.settings = {
|
||||||
|
# dark-reader = {
|
||||||
|
#
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
|
extensions.force.settings.sidebery = {
|
||||||
|
# Beispielhafte Einstellungen für Sidebery
|
||||||
|
"showInSidebar" = true; # Stelle sicher, dass Sidebery in der Sidebar angezeigt wird
|
||||||
|
"showOtherExtensions" = false; # Verstecke andere Extensions
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
"ui.systemUsesDarkTheme" = 1;
|
||||||
|
"floorp.delete.browser.border" = true;
|
||||||
|
"floorp.chrome.theme.mode" = 2;
|
||||||
|
"floorp.browser.tabbar.settings" = 2;
|
||||||
|
"floorp.Tree-type.verticaltab.optimization" = true;
|
||||||
|
"floorp.bookmarks.bar.focus.mode" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
18
packages/fuzzel/default.nix
Normal file
18
packages/fuzzel/default.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
|
||||||
|
{ pkgs, config, lib,... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# raffi
|
||||||
|
fuzzel
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
home.file."/home/nico/.config/fuzzel/fuzzel.ini" = {
|
||||||
|
source = ./fuzzel.ini;
|
||||||
|
};
|
||||||
|
|
||||||
|
# home.file."/home/n/.config/raffi/raffi.yaml" = {
|
||||||
|
# source = ./raffi.yaml;
|
||||||
|
#};
|
||||||
|
|
||||||
|
}
|
||||||
16
packages/fuzzel/fuzzel.ini
Normal file
16
packages/fuzzel/fuzzel.ini
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
dpi-aware=yes
|
||||||
|
font=RobotoMonoNerdFont-Thin:size=12
|
||||||
|
terminal=ghostty
|
||||||
|
layer=overlay
|
||||||
|
exit-on-keyboard-focus-loss=no
|
||||||
|
inner-pad=15
|
||||||
|
fields=filename,name
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background=282a36ff
|
||||||
|
text=f8f8f2ff
|
||||||
|
match=8be9fdff
|
||||||
|
selection-match=8be9fdff
|
||||||
|
selection=44475add
|
||||||
|
selection-text=f8f8f2ff
|
||||||
|
border=bd93f9ff
|
||||||
0
packages/fuzzel/raffi.yaml
Normal file
0
packages/fuzzel/raffi.yaml
Normal file
@@ -1,7 +1,7 @@
|
|||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bind = $mainMod, RETURN, exec, kitty
|
bind = $mainMod, RETURN, exec, ghostty
|
||||||
bind = $mainMod, B, exec, floorp
|
bind = $mainMod, B, exec, floorp
|
||||||
bind = SUPER, BackSpace, killactive,
|
bind = SUPER, BackSpace, killactive,
|
||||||
bind = SUPER_SHIFT, P, exec, rofi -show power-menu -modi power-menu:rofi-power-menu
|
bind = SUPER_SHIFT, P, exec, rofi -show power-menu -modi power-menu:rofi-power-menu
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
exec-once=waybar
|
exec-once=waybar
|
||||||
|
exec-once=wpaperd
|
||||||
exec-once=swaync
|
exec-once=swaync
|
||||||
exec-once=wl-paste --watch cliphist store
|
exec-once=wl-paste --watch cliphist store
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ programs.zsh = {
|
|||||||
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
update = "sudo nixos-rebuild switch --flake /etc/nixos/#my-nixos";
|
update = "sudo nixos-rebuild switch";
|
||||||
emacs = "emacs -nw";
|
emacs = "emacs -nw";
|
||||||
femacs = "emacs -nw --load /home/n/Documents/Shells/flutter/init.el";
|
femacs = "emacs -nw --load /home/n/Documents/Shells/flutter/init.el";
|
||||||
pemacs = "emacs -nw --load /home/n/Documents/Shells//python/init.el";
|
pemacs = "emacs -nw --load /home/n/Documents/Shells//python/init.el";
|
||||||
|
|||||||
615
packages/niri/config.kdl
Normal file
615
packages/niri/config.kdl
Normal file
@@ -0,0 +1,615 @@
|
|||||||
|
cursor {
|
||||||
|
xcursor-theme "Banana-Blue"
|
||||||
|
xcursor-size 30
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// This config is in the KDL format: https://kdl.dev
|
||||||
|
// "/-" comments out the following node.
|
||||||
|
// Check the wiki for a full description of the configuration:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Introduction
|
||||||
|
|
||||||
|
// Input device configuration.
|
||||||
|
// Find the full list of options on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
|
||||||
|
input {
|
||||||
|
keyboard {
|
||||||
|
xkb {
|
||||||
|
// You can set rules, model, layout, variant and options.
|
||||||
|
// For more information, see xkeyboard-config(7).
|
||||||
|
|
||||||
|
// For example:
|
||||||
|
// layout "us,ru"
|
||||||
|
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable numlock on startup, omitting this setting disables it.
|
||||||
|
numlock
|
||||||
|
}
|
||||||
|
|
||||||
|
// Next sections include libinput settings.
|
||||||
|
// Omitting settings disables them, or leaves them at their default values.
|
||||||
|
touchpad {
|
||||||
|
// off
|
||||||
|
tap
|
||||||
|
// dwt
|
||||||
|
// dwtp
|
||||||
|
// drag false
|
||||||
|
// drag-lock
|
||||||
|
natural-scroll
|
||||||
|
// accel-speed 0.2
|
||||||
|
// accel-profile "flat"
|
||||||
|
// scroll-method "two-finger"
|
||||||
|
// disabled-on-external-mouse
|
||||||
|
}
|
||||||
|
|
||||||
|
mouse {
|
||||||
|
// off
|
||||||
|
// natural-scroll
|
||||||
|
// accel-speed 0.2
|
||||||
|
// accel-profile "flat"
|
||||||
|
// scroll-method "no-scroll"
|
||||||
|
}
|
||||||
|
|
||||||
|
trackpoint {
|
||||||
|
// off
|
||||||
|
// natural-scroll
|
||||||
|
// accel-speed 0.2
|
||||||
|
// accel-profile "flat"
|
||||||
|
// scroll-method "on-button-down"
|
||||||
|
// scroll-button 273
|
||||||
|
// middle-emulation
|
||||||
|
}
|
||||||
|
|
||||||
|
// Uncomment this to make the mouse warp to the center of newly focused windows.
|
||||||
|
// warp-mouse-to-focus
|
||||||
|
|
||||||
|
// Focus windows and outputs automatically when moving the mouse into them.
|
||||||
|
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||||
|
// focus-follows-mouse max-scroll-amount="0%"
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can configure outputs by their name, which you can find
|
||||||
|
// by running `niri msg outputs` while inside a niri instance.
|
||||||
|
// The built-in laptop monitor is usually called "eDP-1".
|
||||||
|
// Find more information on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
||||||
|
// Remember to uncomment the node by removing "/-"!
|
||||||
|
/-output "eDP-1" {
|
||||||
|
// Uncomment this line to disable this output.
|
||||||
|
// off
|
||||||
|
|
||||||
|
// Resolution and, optionally, refresh rate of the output.
|
||||||
|
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
||||||
|
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||||||
|
// for the resolution.
|
||||||
|
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||||
|
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||||||
|
mode "1920x1080@120.030"
|
||||||
|
|
||||||
|
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||||
|
scale 2
|
||||||
|
|
||||||
|
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||||
|
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||||
|
transform "normal"
|
||||||
|
|
||||||
|
// Position of the output in the global coordinate space.
|
||||||
|
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
||||||
|
// The cursor can only move between directly adjacent outputs.
|
||||||
|
// Output scale and rotation has to be taken into account for positioning:
|
||||||
|
// outputs are sized in logical, or scaled, pixels.
|
||||||
|
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
||||||
|
// so to put another output directly adjacent to it on the right, set its x to 1920.
|
||||||
|
// If the position is unset or results in an overlap, the output is instead placed
|
||||||
|
// automatically.
|
||||||
|
position x=1280 y=0
|
||||||
|
}
|
||||||
|
|
||||||
|
// Settings that influence how windows are positioned and sized.
|
||||||
|
// Find more information on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
||||||
|
layout {
|
||||||
|
// Set gaps around windows in logical pixels.
|
||||||
|
gaps 10
|
||||||
|
|
||||||
|
// When to center a column when changing focus, options are:
|
||||||
|
// - "never", default behavior, focusing an off-screen column will keep at the left
|
||||||
|
// or right edge of the screen.
|
||||||
|
// - "always", the focused column will always be centered.
|
||||||
|
// - "on-overflow", focusing a column will center it if it doesn't fit
|
||||||
|
// together with the previously focused column.
|
||||||
|
center-focused-column "never"
|
||||||
|
|
||||||
|
// You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between.
|
||||||
|
preset-column-widths {
|
||||||
|
// Proportion sets the width as a fraction of the output width, taking gaps into account.
|
||||||
|
// For example, you can perfectly fit four windows sized "proportion 0.25" on an output.
|
||||||
|
// The default preset widths are 1/3, 1/2 and 2/3 of the output.
|
||||||
|
proportion 0.33333
|
||||||
|
proportion 0.5
|
||||||
|
proportion 0.66667
|
||||||
|
|
||||||
|
// Fixed sets the width in logical pixels exactly.
|
||||||
|
// fixed 1920
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can also customize the heights that "switch-preset-window-height" (Mod+Shift+R) toggles between.
|
||||||
|
// preset-window-heights { }
|
||||||
|
|
||||||
|
// You can change the default width of the new windows.
|
||||||
|
default-column-width { proportion 0.5; }
|
||||||
|
// If you leave the brackets empty, the windows themselves will decide their initial width.
|
||||||
|
// default-column-width {}
|
||||||
|
|
||||||
|
// By default focus ring and border are rendered as a solid background rectangle
|
||||||
|
// behind windows. That is, they will show up through semitransparent windows.
|
||||||
|
// This is because windows using client-side decorations can have an arbitrary shape.
|
||||||
|
//
|
||||||
|
// If you don't like that, you should uncomment `prefer-no-csd` below.
|
||||||
|
// Niri will draw focus ring and border *around* windows that agree to omit their
|
||||||
|
// client-side decorations.
|
||||||
|
//
|
||||||
|
// Alternatively, you can override it with a window rule called
|
||||||
|
// `draw-border-with-background`.
|
||||||
|
|
||||||
|
// You can change how the focus ring looks.
|
||||||
|
focus-ring {
|
||||||
|
// Uncomment this line to disable the focus ring.
|
||||||
|
// off
|
||||||
|
|
||||||
|
// How many logical pixels the ring extends out from the windows.
|
||||||
|
width 4
|
||||||
|
|
||||||
|
// Colors can be set in a variety of ways:
|
||||||
|
// - CSS named colors: "red"
|
||||||
|
// - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa"
|
||||||
|
// - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others.
|
||||||
|
|
||||||
|
// Color of the ring on the active monitor.
|
||||||
|
// active-color "#8839ef"
|
||||||
|
|
||||||
|
// Color of the ring on inactive monitors.
|
||||||
|
inactive-color "#505050"
|
||||||
|
|
||||||
|
// You can also use gradients. They take precedence over solid colors.
|
||||||
|
// Gradients are rendered the same as CSS linear-gradient(angle, from, to).
|
||||||
|
// The angle is the same as in linear-gradient, and is optional,
|
||||||
|
// defaulting to 180 (top-to-bottom gradient).
|
||||||
|
// You can use any CSS linear-gradient tool on the web to set these up.
|
||||||
|
// Changing the color space is also supported, check the wiki for more info.
|
||||||
|
//
|
||||||
|
active-gradient from="#8839ef" to="#dc8a78" angle=45
|
||||||
|
|
||||||
|
// You can also color the gradient relative to the entire view
|
||||||
|
// of the workspace, rather than relative to just the window itself.
|
||||||
|
// To do that, set relative-to="workspace-view".
|
||||||
|
//
|
||||||
|
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can also add a border. It's similar to the focus ring, but always visible.
|
||||||
|
border {
|
||||||
|
// The settings are the same as for the focus ring.
|
||||||
|
// If you enable the border, you probably want to disable the focus ring.
|
||||||
|
off
|
||||||
|
|
||||||
|
width 4
|
||||||
|
active-color "#ffc87f"
|
||||||
|
inactive-color "#505050"
|
||||||
|
|
||||||
|
// Color of the border around windows that request your attention.
|
||||||
|
urgent-color "#9b0000"
|
||||||
|
|
||||||
|
// active-gradient from="#ffbb66" to="#ffc880" angle=45 relative-to="workspace-view"
|
||||||
|
// inactive-gradient from="#505050" to="#808080" angle=45 relative-to="workspace-view"
|
||||||
|
}
|
||||||
|
|
||||||
|
// You can enable drop shadows for windows.
|
||||||
|
shadow {
|
||||||
|
// Uncomment the next line to enable shadows.
|
||||||
|
// on
|
||||||
|
|
||||||
|
// By default, the shadow draws only around its window, and not behind it.
|
||||||
|
// Uncomment this setting to make the shadow draw behind its window.
|
||||||
|
//
|
||||||
|
// Note that niri has no way of knowing about the CSD window corner
|
||||||
|
// radius. It has to assume that windows have square corners, leading to
|
||||||
|
// shadow artifacts inside the CSD rounded corners. This setting fixes
|
||||||
|
// those artifacts.
|
||||||
|
//
|
||||||
|
// However, instead you may want to set prefer-no-csd and/or
|
||||||
|
// geometry-corner-radius. Then, niri will know the corner radius and
|
||||||
|
// draw the shadow correctly, without having to draw it behind the
|
||||||
|
// window. These will also remove client-side shadows if the window
|
||||||
|
// draws any.
|
||||||
|
//
|
||||||
|
// draw-behind-window true
|
||||||
|
|
||||||
|
// You can change how shadows look. The values below are in logical
|
||||||
|
// pixels and match the CSS box-shadow properties.
|
||||||
|
|
||||||
|
// Softness controls the shadow blur radius.
|
||||||
|
softness 30
|
||||||
|
|
||||||
|
// Spread expands the shadow.
|
||||||
|
spread 5
|
||||||
|
|
||||||
|
// Offset moves the shadow relative to the window.
|
||||||
|
offset x=0 y=5
|
||||||
|
|
||||||
|
// You can also change the shadow color and opacity.
|
||||||
|
color "#0007"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Struts shrink the area occupied by windows, similarly to layer-shell panels.
|
||||||
|
// You can think of them as a kind of outer gaps. They are set in logical pixels.
|
||||||
|
// Left and right struts will cause the next window to the side to always be visible.
|
||||||
|
// Top and bottom struts will simply add outer gaps in addition to the area occupied by
|
||||||
|
// layer-shell panels and regular gaps.
|
||||||
|
struts {
|
||||||
|
// left 64
|
||||||
|
// right 64
|
||||||
|
// top 64
|
||||||
|
// bottom 64
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add lines like this to spawn processes at startup.
|
||||||
|
// Note that running niri as a session supports xdg-desktop-autostart,
|
||||||
|
// which may be more convenient to use.
|
||||||
|
// See the binds section below for more spawn examples.
|
||||||
|
|
||||||
|
// This line starts waybar, a commonly used bar for Wayland compositors.
|
||||||
|
spawn-at-startup "waybar"
|
||||||
|
spawn-at-startup "wpaperd"
|
||||||
|
spawn-at-startup "xwayland-satellite"
|
||||||
|
spawn-at-startup "wl-paste" "--watch" "cliphist" "store"
|
||||||
|
|
||||||
|
environment {
|
||||||
|
DISPLAY ":0"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||||
|
// If the client will specifically ask for CSD, the request will be honored.
|
||||||
|
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners.
|
||||||
|
// This option will also fix border/focus ring drawing behind some semitransparent windows.
|
||||||
|
// After enabling or disabling this, you need to restart the apps for this to take effect.
|
||||||
|
// prefer-no-csd
|
||||||
|
|
||||||
|
// You can change the path where screenshots are saved.
|
||||||
|
// A ~ at the front will be expanded to the home directory.
|
||||||
|
// The path is formatted with strftime(3) to give you the screenshot date and time.
|
||||||
|
screenshot-path "~/Pictures/Screenshots/Screenshot%Y-%m-%d.png"
|
||||||
|
|
||||||
|
// You can also set this to null to disable saving screenshots to disk.
|
||||||
|
// screenshot-path null
|
||||||
|
|
||||||
|
// Animation settings.
|
||||||
|
// The wiki explains how to configure individual animations:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Animations
|
||||||
|
animations {
|
||||||
|
// Uncomment to turn off all animations.
|
||||||
|
// off
|
||||||
|
|
||||||
|
// Slow down all animations by this factor. Values below 1 speed them up instead.
|
||||||
|
// slowdown 3.0
|
||||||
|
}
|
||||||
|
|
||||||
|
// Window rules let you adjust behavior for individual windows.
|
||||||
|
// Find more information on the wiki:
|
||||||
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
|
||||||
|
|
||||||
|
// Work around WezTerm's initial configure bug
|
||||||
|
// by setting an empty default-column-width.
|
||||||
|
window-rule {
|
||||||
|
// This regular expression is intentionally made as specific as possible,
|
||||||
|
// since this is the default config, and we want no false positives.
|
||||||
|
// You can get away with just app-id="wezterm" if you want.
|
||||||
|
match app-id=r#"^org\.wezfurlong\.wezterm$"#
|
||||||
|
default-column-width {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open the Firefox picture-in-picture player as floating by default.
|
||||||
|
window-rule {
|
||||||
|
// This app-id regular expression will work for both:
|
||||||
|
// - host Firefox (app-id is "firefox")
|
||||||
|
// - Flatpak Firefox (app-id is "org.mozilla.firefox")
|
||||||
|
match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
// open rofi in floating window
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"rofi$"#
|
||||||
|
match title="rofi"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
window-rule {
|
||||||
|
match app-id=r#"nautilus$"#
|
||||||
|
match title="nautilus"
|
||||||
|
open-floating true
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example: block out two password managers from screen capture.
|
||||||
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
|
/-window-rule {
|
||||||
|
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||||
|
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||||
|
|
||||||
|
block-out-from "screen-capture"
|
||||||
|
|
||||||
|
// Use this instead if you want them visible on third-party screenshot tools.
|
||||||
|
// block-out-from "screencast"
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example: enable rounded corners for all windows.
|
||||||
|
// (This example rule is commented out with a "/-" in front.)
|
||||||
|
window-rule {
|
||||||
|
geometry-corner-radius 12
|
||||||
|
clip-to-geometry true
|
||||||
|
}
|
||||||
|
|
||||||
|
binds {
|
||||||
|
// Keys consist of modifiers separated by + signs, followed by an XKB key name
|
||||||
|
// in the end. To find an XKB name for a particular key, you may use a program
|
||||||
|
// like wev.
|
||||||
|
//
|
||||||
|
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
|
||||||
|
// when running as a winit window.
|
||||||
|
//
|
||||||
|
// Most actions that you can bind here can also be invoked programmatically with
|
||||||
|
// `niri msg action do-something`.
|
||||||
|
|
||||||
|
// Mod-Shift-/, which is usually the same as Mod-?,
|
||||||
|
// shows a list of important hotkeys.
|
||||||
|
Mod+Shift+Slash { show-hotkey-overlay; }
|
||||||
|
|
||||||
|
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||||
|
Mod+Return hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; }
|
||||||
|
Mod+M hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel"; }
|
||||||
|
// Mod+M hotkey-overlay-title="Run an Application: rofi" { spawn "rofi" "-show" "drun"; }
|
||||||
|
Super+Alt+L hotkey-overlay-title="Power menu" { spawn "rofi" "-show" "power-menu" "-modi" "power-menu:rofi-power-menu"; }
|
||||||
|
Super+V hotkey-overlay-title="Clipboard history" { spawn "bash" "-c" "cliphist list | fuzzel -d | cliphist decode | wl-copy"; }
|
||||||
|
Super+E hotkey-overlay-title="Umlaute" { spawn "bash" "-c" "echo 'ä\nö\nü\nß\nÄ\nÖ\nÜ' | fuzzel -d | wl-copy"; }
|
||||||
|
|
||||||
|
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||||
|
// Note: the entire command goes as a single argument in the end.
|
||||||
|
// Mod+T { spawn "bash" "-c" "notify-send hello && exec alacritty"; }
|
||||||
|
|
||||||
|
// Example volume keys mappings for PipeWire & WirePlumber.
|
||||||
|
// The allow-when-locked=true property makes them work even when the session is locked.
|
||||||
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "pactl" "set-sink-volume" "@DEFAULT_SINK@" "+1%"; }
|
||||||
|
XF86AudioLowerVolume allow-when-locked=true { spawn "pactl" "set-sink-volume" "@DEFAULT_SINK@" "-1%"; }
|
||||||
|
XF86AudioMute allow-when-locked=true { spawn "pactl" "set-sink-mute" "@DEFAULT_SINK@" "toggle"; }
|
||||||
|
// XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
||||||
|
|
||||||
|
// Open/close the Overview: a zoomed-out view of workspaces and windows.
|
||||||
|
// You can also move the mouse into the top-left hot corner,
|
||||||
|
// or do a four-finger swipe up on a touchpad.
|
||||||
|
Mod+O repeat=false { toggle-overview; }
|
||||||
|
|
||||||
|
Mod+BackSpace { close-window; }
|
||||||
|
|
||||||
|
// Mod+Left { focus-column-left; }
|
||||||
|
// Mod+Down { focus-window-down; }
|
||||||
|
// Mod+Up { focus-window-up; }
|
||||||
|
// Mod+Right { focus-column-right; }
|
||||||
|
Mod+H { focus-column-left; }
|
||||||
|
Mod+J { focus-window-down; }
|
||||||
|
Mod+K { focus-window-up; }
|
||||||
|
Mod+L { focus-column-right; }
|
||||||
|
|
||||||
|
// Mod+Ctrl+Left { move-column-left; }
|
||||||
|
// Mod+Ctrl+Down { move-window-down; }
|
||||||
|
// Mod+Ctrl+Up { move-window-up; }
|
||||||
|
// Mod+Ctrl+Right { move-column-right; }
|
||||||
|
Mod+Ctrl+H { move-column-left; }
|
||||||
|
Mod+Ctrl+J { move-window-down; }
|
||||||
|
Mod+Ctrl+K { move-window-up; }
|
||||||
|
Mod+Ctrl+L { move-column-right; }
|
||||||
|
|
||||||
|
// Alternative commands that move across workspaces when reaching
|
||||||
|
// the first or last window in a column.
|
||||||
|
// Mod+J { focus-window-or-workspace-down; }
|
||||||
|
// Mod+K { focus-window-or-workspace-up; }
|
||||||
|
// Mod+Ctrl+J { move-window-down-or-to-workspace-down; }
|
||||||
|
// Mod+Ctrl+K { move-window-up-or-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+Home { focus-column-first; }
|
||||||
|
Mod+End { focus-column-last; }
|
||||||
|
Mod+Ctrl+Home { move-column-to-first; }
|
||||||
|
Mod+Ctrl+End { move-column-to-last; }
|
||||||
|
|
||||||
|
Mod+Shift+Left { focus-monitor-left; }
|
||||||
|
Mod+Shift+Down { focus-monitor-down; }
|
||||||
|
Mod+Shift+Up { focus-monitor-up; }
|
||||||
|
Mod+Shift+Right { focus-monitor-right; }
|
||||||
|
Mod+Shift+H { focus-monitor-left; }
|
||||||
|
Mod+Shift+J { focus-monitor-down; }
|
||||||
|
Mod+Shift+K { focus-monitor-up; }
|
||||||
|
Mod+Shift+L { focus-monitor-right; }
|
||||||
|
|
||||||
|
Mod+Shift+Ctrl+Left { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Ctrl+Down { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Ctrl+Up { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Ctrl+Right { move-column-to-monitor-right; }
|
||||||
|
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
|
||||||
|
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
|
||||||
|
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
|
||||||
|
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Shift+Ctrl+Left { move-window-to-monitor-left; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
// And you can also move a whole workspace to another monitor:
|
||||||
|
// Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
// Mod+Page_Down { focus-workspace-down; }
|
||||||
|
// Mod+Page_Up { focus-workspace-up; }
|
||||||
|
Mod+U { focus-workspace-down; }
|
||||||
|
Mod+I { focus-workspace-up; }
|
||||||
|
// Mod+Ctrl+Page_Down { move-column-to-workspace-down; }
|
||||||
|
// Mod+Ctrl+Page_Up { move-column-to-workspace-up; }
|
||||||
|
Mod+Ctrl+U { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+I { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Ctrl+Page_Down { move-window-to-workspace-down; }
|
||||||
|
// ...
|
||||||
|
|
||||||
|
Mod+Shift+Page_Down { move-workspace-down; }
|
||||||
|
Mod+Shift+Page_Up { move-workspace-up; }
|
||||||
|
Mod+Shift+U { move-workspace-down; }
|
||||||
|
Mod+Shift+I { move-workspace-up; }
|
||||||
|
|
||||||
|
// You can bind mouse wheel scroll ticks using the following syntax.
|
||||||
|
// These binds will change direction based on the natural-scroll setting.
|
||||||
|
//
|
||||||
|
// To avoid scrolling through workspaces really fast, you can use
|
||||||
|
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||||
|
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||||
|
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
|
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
|
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||||
|
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
Mod+WheelScrollRight { focus-column-right; }
|
||||||
|
Mod+WheelScrollLeft { focus-column-left; }
|
||||||
|
Mod+Ctrl+WheelScrollRight { move-column-right; }
|
||||||
|
Mod+Ctrl+WheelScrollLeft { move-column-left; }
|
||||||
|
|
||||||
|
// Usually scrolling up and down with Shift in applications results in
|
||||||
|
// horizontal scrolling; these binds replicate that.
|
||||||
|
Mod+Shift+WheelScrollDown { focus-column-right; }
|
||||||
|
Mod+Shift+WheelScrollUp { focus-column-left; }
|
||||||
|
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||||
|
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||||
|
|
||||||
|
// Similarly, you can bind touchpad scroll "ticks".
|
||||||
|
// Touchpad scrolling is continuous, so for these binds it is split into
|
||||||
|
// discrete intervals.
|
||||||
|
// These binds are also affected by touchpad's natural-scroll, so these
|
||||||
|
// example binds are "inverted", since we have natural-scroll enabled for
|
||||||
|
// touchpads by default.
|
||||||
|
// Mod+TouchpadScrollDown { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02+"; }
|
||||||
|
// Mod+TouchpadScrollUp { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.02-"; }
|
||||||
|
|
||||||
|
// You can refer to workspaces by index. However, keep in mind that
|
||||||
|
// niri is a dynamic workspace system, so these commands are kind of
|
||||||
|
// "best effort". Trying to refer to a workspace index bigger than
|
||||||
|
// the current workspace count will instead refer to the bottommost
|
||||||
|
// (empty) workspace.
|
||||||
|
//
|
||||||
|
// For example, with 2 workspaces + 1 empty, indices 3, 4, 5 and so on
|
||||||
|
// will all refer to the 3rd workspace.
|
||||||
|
Mod+1 { focus-workspace 1; }
|
||||||
|
Mod+2 { focus-workspace 2; }
|
||||||
|
Mod+3 { focus-workspace 3; }
|
||||||
|
Mod+4 { focus-workspace 4; }
|
||||||
|
Mod+5 { focus-workspace 5; }
|
||||||
|
Mod+6 { focus-workspace 6; }
|
||||||
|
Mod+7 { focus-workspace 7; }
|
||||||
|
Mod+8 { focus-workspace 8; }
|
||||||
|
Mod+9 { focus-workspace 9; }
|
||||||
|
Mod+Ctrl+1 { move-column-to-workspace 1; }
|
||||||
|
Mod+Ctrl+2 { move-column-to-workspace 2; }
|
||||||
|
Mod+Ctrl+3 { move-column-to-workspace 3; }
|
||||||
|
Mod+Ctrl+4 { move-column-to-workspace 4; }
|
||||||
|
Mod+Ctrl+5 { move-column-to-workspace 5; }
|
||||||
|
Mod+Ctrl+6 { move-column-to-workspace 6; }
|
||||||
|
Mod+Ctrl+7 { move-column-to-workspace 7; }
|
||||||
|
Mod+Ctrl+8 { move-column-to-workspace 8; }
|
||||||
|
Mod+Ctrl+9 { move-column-to-workspace 9; }
|
||||||
|
|
||||||
|
// Alternatively, there are commands to move just a single window:
|
||||||
|
// Mod+Ctrl+1 { move-window-to-workspace 1; }
|
||||||
|
|
||||||
|
// Switches focus between the current and the previous workspace.
|
||||||
|
// Mod+Tab { focus-workspace-previous; }
|
||||||
|
|
||||||
|
// The following binds move the focused window in and out of a column.
|
||||||
|
// If the window is alone, they will consume it into the nearby column to the side.
|
||||||
|
// If the window is already in a column, they will expel it out.
|
||||||
|
Mod+BracketLeft { consume-or-expel-window-left; }
|
||||||
|
Mod+BracketRight { consume-or-expel-window-right; }
|
||||||
|
|
||||||
|
// Consume one window from the right to the bottom of the focused column.
|
||||||
|
Mod+Comma { consume-window-into-column; }
|
||||||
|
// Expel the bottom window from the focused column to the right.
|
||||||
|
Mod+Period { expel-window-from-column; }
|
||||||
|
|
||||||
|
Mod+R { switch-preset-column-width; }
|
||||||
|
Mod+Shift+R { switch-preset-window-height; }
|
||||||
|
Mod+Ctrl+R { reset-window-height; }
|
||||||
|
Mod+F { maximize-column; }
|
||||||
|
Mod+Shift+F { fullscreen-window; }
|
||||||
|
|
||||||
|
// Expand the focused column to space not taken up by other fully visible columns.
|
||||||
|
// Makes the column "fill the rest of the space".
|
||||||
|
Mod+Ctrl+F { expand-column-to-available-width; }
|
||||||
|
|
||||||
|
Mod+C { center-column; }
|
||||||
|
|
||||||
|
// Center all fully visible columns on screen.
|
||||||
|
Mod+Ctrl+C { center-visible-columns; }
|
||||||
|
|
||||||
|
// Finer width adjustments.
|
||||||
|
// This command can also:
|
||||||
|
// * set width in pixels: "1000"
|
||||||
|
// * adjust width in pixels: "-5" or "+5"
|
||||||
|
// * set width as a percentage of screen width: "25%"
|
||||||
|
// * adjust width as a percentage of screen width: "-10%" or "+10%"
|
||||||
|
// Pixel sizes use logical, or scaled, pixels. I.e. on an output with scale 2.0,
|
||||||
|
// set-column-width "100" will make the column occupy 200 physical screen pixels.
|
||||||
|
Mod+Minus { set-column-width "-10%"; }
|
||||||
|
Mod+Equal { set-column-width "+10%"; }
|
||||||
|
|
||||||
|
// Finer height adjustments when in column with other windows.
|
||||||
|
Mod+Shift+Minus { set-window-height "-10%"; }
|
||||||
|
Mod+Shift+Equal { set-window-height "+10%"; }
|
||||||
|
|
||||||
|
// Move the focused window between the floating and the tiling layout.
|
||||||
|
Mod+Space { toggle-window-floating; }
|
||||||
|
Mod+Shift+Space { switch-focus-between-floating-and-tiling; }
|
||||||
|
|
||||||
|
// Toggle tabbed column display mode.
|
||||||
|
// Windows in this column will appear as vertical tabs,
|
||||||
|
// rather than stacked on top of each other.
|
||||||
|
Mod+W { toggle-column-tabbed-display; }
|
||||||
|
|
||||||
|
// Actions to switch layouts.
|
||||||
|
// Note: if you uncomment these, make sure you do NOT have
|
||||||
|
// a matching layout switch hotkey configured in xkb options above.
|
||||||
|
// Having both at once on the same hotkey will break the switching,
|
||||||
|
// since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
|
||||||
|
// Mod+Space { switch-layout "next"; }
|
||||||
|
// Mod+Shift+Space { switch-layout "prev"; }
|
||||||
|
|
||||||
|
Print { screenshot; }
|
||||||
|
Ctrl+Print { screenshot-screen; }
|
||||||
|
Alt+Print { screenshot-window; }
|
||||||
|
|
||||||
|
// Applications such as remote-desktop clients and software KVM switches may
|
||||||
|
// request that niri stops processing the keyboard shortcuts defined here
|
||||||
|
// so they may, for example, forward the key presses as-is to a remote machine.
|
||||||
|
// It's a good idea to bind an escape hatch to toggle the inhibitor,
|
||||||
|
// so a buggy application can't hold your session hostage.
|
||||||
|
//
|
||||||
|
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||||
|
// which ensures niri always processes them, even when an inhibitor is active.
|
||||||
|
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||||
|
|
||||||
|
// The quit action will show a confirmation dialog to avoid accidental exits.
|
||||||
|
Mod+Shift+E { quit; }
|
||||||
|
Ctrl+Alt+Delete { quit; }
|
||||||
|
|
||||||
|
// Powers off the monitors. To turn them back on, do any input like
|
||||||
|
// moving the mouse or pressing any other key.
|
||||||
|
// Mod+Shift+P { power-off-monitors; }
|
||||||
|
}
|
||||||
13
packages/niri/default.nix
Normal file
13
packages/niri/default.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ pkgs, config, lib,... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
xwayland-satellite
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
nautilus
|
||||||
|
];
|
||||||
|
|
||||||
|
home.file."/home/nico/.config/niri/config.kdl" = {
|
||||||
|
source = ./config.kdl;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, config, lib,... }:
|
{ pkgs, lib,... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -8,6 +8,9 @@
|
|||||||
lldb
|
lldb
|
||||||
lazygit
|
lazygit
|
||||||
gcc
|
gcc
|
||||||
|
# gopls
|
||||||
|
stylua
|
||||||
|
rustfmt
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
@@ -29,8 +32,9 @@ programs.neovim.plugins = [
|
|||||||
# ".config/nvim/lua/plugins/coq.lua".source = ./lua/plugins/coq.lua;
|
# ".config/nvim/lua/plugins/coq.lua".source = ./lua/plugins/coq.lua;
|
||||||
".config/nvim/lua/plugins/blink-cmp.lua".source = ./lua/plugins/blink-cmp.lua;
|
".config/nvim/lua/plugins/blink-cmp.lua".source = ./lua/plugins/blink-cmp.lua;
|
||||||
".config/nvim/lua/plugins/lsp.lua".source = ./lua/plugins/lsp.lua;
|
".config/nvim/lua/plugins/lsp.lua".source = ./lua/plugins/lsp.lua;
|
||||||
# ".config/nvim/lua/plugins/mason.lua".source = ./lua/plugins/mason.lua;
|
".config/nvim/lua/plugins/mason.lua".source = ./lua/plugins/mason.lua;
|
||||||
".config/nvim/lua/plugins/treesitter.lua".source = ./lua/plugins/treesitter.lua;
|
".config/nvim/lua/plugins/mason-lspconfig.lua".source = ./lua/plugins/mason-lspconfig.lua;
|
||||||
|
# ".config/nvim/lua/plugins/treesitter.lua".source = ./lua/plugins/treesitter.lua;
|
||||||
".config/nvim/lua/plugins/catppuccin.lua".source = ./lua/plugins/catppuccin.lua;
|
".config/nvim/lua/plugins/catppuccin.lua".source = ./lua/plugins/catppuccin.lua;
|
||||||
".config/nvim/lua/plugins/telescope.lua".source = ./lua/plugins/telescope.lua;
|
".config/nvim/lua/plugins/telescope.lua".source = ./lua/plugins/telescope.lua;
|
||||||
".config/nvim/lua/plugins/highlight-colors.lua".source = ./lua/plugins/highlight-colors.lua;
|
".config/nvim/lua/plugins/highlight-colors.lua".source = ./lua/plugins/highlight-colors.lua;
|
||||||
@@ -41,7 +45,7 @@ programs.neovim.plugins = [
|
|||||||
".config/nvim/lua/plugins/trouble.lua".source = ./lua/plugins/trouble.lua;
|
".config/nvim/lua/plugins/trouble.lua".source = ./lua/plugins/trouble.lua;
|
||||||
".config/nvim/lua/plugins/dap.lua".source = ./lua/plugins/dap.lua;
|
".config/nvim/lua/plugins/dap.lua".source = ./lua/plugins/dap.lua;
|
||||||
".config/nvim/lua/plugins/blankline.lua".source = ./lua/plugins/blankline.lua;
|
".config/nvim/lua/plugins/blankline.lua".source = ./lua/plugins/blankline.lua;
|
||||||
".config/nvim/lua/plugins/rustaceanvim.lua".source = ./lua/plugins/rustaceanvim.lua;
|
# ".config/nvim/lua/plugins/rustaceanvim.lua".source = ./lua/plugins/rustaceanvim.lua;
|
||||||
".config/nvim/lua/plugins/lazygit.lua".source = ./lua/plugins/lazygit.lua;
|
".config/nvim/lua/plugins/lazygit.lua".source = ./lua/plugins/lazygit.lua;
|
||||||
".config/nvim/lua/plugins/toggleterm.lua".source = ./lua/plugins/toggleterm.lua;
|
".config/nvim/lua/plugins/toggleterm.lua".source = ./lua/plugins/toggleterm.lua;
|
||||||
".config/nvim/lua/plugins/love.lua".source = ./lua/plugins/love.lua;
|
".config/nvim/lua/plugins/love.lua".source = ./lua/plugins/love.lua;
|
||||||
@@ -50,6 +54,14 @@ programs.neovim.plugins = [
|
|||||||
".config/nvim/lua/plugins/tabout.lua".source = ./lua/plugins/tabout.lua;
|
".config/nvim/lua/plugins/tabout.lua".source = ./lua/plugins/tabout.lua;
|
||||||
".config/nvim/lua/plugins/autopair.lua".source = ./lua/plugins/autopair.lua;
|
".config/nvim/lua/plugins/autopair.lua".source = ./lua/plugins/autopair.lua;
|
||||||
".config/nvim/lua/plugins/mini-animate.lua".source = ./lua/plugins/mini-animate.lua;
|
".config/nvim/lua/plugins/mini-animate.lua".source = ./lua/plugins/mini-animate.lua;
|
||||||
|
".config/nvim/lua/plugins/vim-suda.lua".source = ./lua/plugins/vim-suda.lua;
|
||||||
|
".config/nvim/lua/plugins/tiny-inline-diagnostic.lua".source = ./lua/plugins/tiny-inline-diagnostic.lua;
|
||||||
|
".config/nvim/lua/plugins/conform.lua".source = ./lua/plugins/conform.lua;
|
||||||
|
".config/nvim/lua/plugins/nvim-tree.lua".source = ./lua/plugins/nvim-tree.lua;
|
||||||
|
".config/nvim/lua/plugins/notify.lua".source = ./lua/plugins/notify.lua;
|
||||||
|
|
||||||
|
# ".config/nvim/lua/plugins/go.lua".source = ./lua/plugins/go.lua;
|
||||||
|
# ".config/nvim/lua/plugins/typst.lua".source = ./lua/plugins/typst.lua;
|
||||||
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,41 +1,42 @@
|
|||||||
-- Tab
|
-- Tab
|
||||||
vim.opt.tabstop = 2 -- number of visual spaces per TAB
|
vim.opt.tabstop = 2 -- number of visual spaces per TAB
|
||||||
vim.opt.softtabstop = 2 -- number of spacesin tab when editing
|
vim.opt.softtabstop = 2 -- number of spacesin tab when editing
|
||||||
vim.opt.shiftwidth = 2 -- insert 4 spaces on a tab
|
vim.opt.shiftwidth = 2 -- insert 4 spaces on a tab
|
||||||
vim.opt.expandtab = true -- tabs are spaces, mainly because of python
|
vim.opt.expandtab = true -- tabs are spaces, mainly because of python
|
||||||
|
|
||||||
-- UI config
|
-- UI config
|
||||||
vim.opt.number = true -- show absolute number
|
vim.opt.number = true -- show absolute number
|
||||||
vim.opt.relativenumber = true -- add numbers to each line on the left side
|
vim.opt.relativenumber = true -- add numbers to each line on the left side
|
||||||
vim.opt.splitbelow = true -- open new vertical split bottom
|
vim.opt.splitbelow = true -- open new vertical split bottom
|
||||||
vim.opt.splitright = true -- open new horizontal splits right
|
vim.opt.splitright = true -- open new horizontal splits right
|
||||||
-- vim.opt.termguicolors = true -- enabl 24-bit RGB color in the TUI
|
-- vim.opt.termguicolors = true -- enabl 24-bit RGB color in the TUI
|
||||||
vim.opt.showmode = false -- we are experienced, wo don't need the "-- INSERT --" mode hint
|
vim.opt.showmode = false -- we are experienced, wo don't need the "-- INSERT --" mode hint
|
||||||
|
|
||||||
-- Searching
|
-- Searching
|
||||||
vim.opt.incsearch = true -- search as characters are entered
|
vim.opt.incsearch = true -- search as characters are entered
|
||||||
vim.opt.hlsearch = false -- do not highlight matches
|
vim.opt.hlsearch = false -- do not highlight matches
|
||||||
vim.opt.ignorecase = true -- ignore case in searches by default
|
vim.opt.ignorecase = true -- ignore case in searches by default
|
||||||
vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered
|
vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered
|
||||||
|
vim.cmd("set nowrap")
|
||||||
|
|
||||||
-- -- Keybinds
|
-- -- Keybinds
|
||||||
vim.keymap.set('n', '<C-h>', '<C-w>h', opts)
|
vim.keymap.set("n", "<C-h>", "<C-w>h", opts)
|
||||||
vim.keymap.set('n', '<C-j>', '<C-w>j', opts)
|
vim.keymap.set("n", "<C-j>", "<C-w>j", opts)
|
||||||
vim.keymap.set('n', '<C-k>', '<C-w>k', opts)
|
vim.keymap.set("n", "<C-k>", "<C-w>k", opts)
|
||||||
vim.keymap.set('n', '<C-l>', '<C-w>l', opts)
|
vim.keymap.set("n", "<C-l>", "<C-w>l", opts)
|
||||||
|
|
||||||
-- Resize with arrows
|
-- Resize with arrows
|
||||||
-- delta: 2 lines
|
-- delta: 2 lines
|
||||||
vim.keymap.set('n', '<C-Up>', ':resize -2<CR>', opts)
|
vim.keymap.set("n", "<C-Up>", ":resize -2<CR>", opts)
|
||||||
vim.keymap.set('n', '<C-Down>', ':resize +2<CR>', opts)
|
vim.keymap.set("n", "<C-Down>", ":resize +2<CR>", opts)
|
||||||
vim.keymap.set('n', '<C-Left>', ':vertical resize -2<CR>', opts)
|
vim.keymap.set("n", "<C-Left>", ":vertical resize -2<CR>", opts)
|
||||||
vim.keymap.set('n', '<C-Right>', ':vertical resize +2<CR>', opts)
|
vim.keymap.set("n", "<C-Right>", ":vertical resize +2<CR>", opts)
|
||||||
|
|
||||||
vim.keymap.set('i', 'jk', '<Esc>', opts)
|
vim.keymap.set("i", "jk", "<Esc>", opts)
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, bufopts)
|
||||||
|
|
||||||
-- jump to definition
|
-- jump to definition
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, bufopts)
|
||||||
|
|
||||||
-- code actions
|
-- code actions
|
||||||
vim.keymap.set("n", "<leader>ca", function()
|
vim.keymap.set("n", "<leader>ca", function()
|
||||||
@@ -45,178 +46,106 @@ end, { noremap = true, silent = true })
|
|||||||
-- Lazy
|
-- Lazy
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|
||||||
-- require("flutter-tools").setup {} -- use defaults
|
require("catppuccin").setup({})
|
||||||
require("catppuccin").setup({
|
vim.cmd.colorscheme("catppuccin")
|
||||||
integrations = {
|
|
||||||
cmp = false,
|
|
||||||
gitsigns = true,
|
|
||||||
nvimtree = true,
|
|
||||||
treesitter = true,
|
|
||||||
notify = false,
|
|
||||||
mini = {
|
|
||||||
enabled = false,
|
|
||||||
indentscope_color = "",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- css colors
|
-- css colors
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
require('nvim-highlight-colors').setup({})
|
require("nvim-highlight-colors").setup({})
|
||||||
|
|
||||||
vim.cmd.colorscheme "catppuccin"
|
|
||||||
|
|
||||||
|
|
||||||
-- Plugin setups
|
-- Plugin setups
|
||||||
require('lualine').setup()
|
require("lualine").setup()
|
||||||
require("dapui").setup()
|
require("dapui").setup()
|
||||||
require("ibl").setup()
|
require("ibl").setup()
|
||||||
require("telescope").load_extension("flutter")
|
require("telescope").load_extension("flutter")
|
||||||
require("toggleterm").setup{}
|
require("toggleterm").setup({})
|
||||||
require("tabby").setup{}
|
|
||||||
require("mini.animate").setup()
|
require("mini.animate").setup()
|
||||||
|
require('nvim-autopairs').enable()
|
||||||
|
|
||||||
-- alternatively you can override the default configs
|
vim.o.showtabline = 2
|
||||||
require("flutter-tools").setup {
|
require("tabby").setup({
|
||||||
ui = {
|
preset = "tab_only"
|
||||||
-- the border type to use for all floating windows, the same options/formats
|
})
|
||||||
-- used for ":h nvim_open_win" e.g. "single" | "shadow" | {<table-of-eight-chars>}
|
|
||||||
border = "rounded",
|
|
||||||
-- This determines whether notifications are show with `vim.notify` or with the plugin's custom UI
|
|
||||||
-- please note that this option is eventually going to be deprecated and users will need to
|
|
||||||
-- depend on plugins like `nvim-notify` instead.
|
|
||||||
notification_style = 'plugin'
|
|
||||||
},
|
|
||||||
decorations = {
|
|
||||||
statusline = {
|
|
||||||
-- set to true to be able use the 'flutter_tools_decorations.app_version' in your statusline
|
|
||||||
-- this will show the current version of the flutter app from the pubspec.yaml file
|
|
||||||
app_version = false,
|
|
||||||
-- set to true to be able use the 'flutter_tools_decorations.device' in your statusline
|
|
||||||
-- this will show the currently running device if an application was started with a specific
|
|
||||||
-- device
|
|
||||||
device = true,
|
|
||||||
-- set to true to be able use the 'flutter_tools_decorations.project_config' in your statusline
|
|
||||||
-- this will show the currently selected project configuration
|
|
||||||
project_config = false,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
debugger = { -- integrate with nvim dap + install dart code debugger
|
|
||||||
enabled = true,
|
|
||||||
-- if empty dap will not stop on any exceptions, otherwise it will stop on those specified
|
|
||||||
-- see |:help dap.set_exception_breakpoints()| for more info
|
|
||||||
exception_breakpoints = { "uncaught" },
|
|
||||||
-- Whether to call toString() on objects in debug views like hovers and the
|
|
||||||
-- variables list.
|
|
||||||
-- Invoking toString() has a performance cost and may introduce side-effects,
|
|
||||||
-- although users may expected this functionality. null is treated like false.
|
|
||||||
evaluate_to_string_in_debug_views = true,
|
|
||||||
},
|
|
||||||
flutter_lookup_cmd = nil, -- example "dirname $(which flutter)" or "asdf where flutter"
|
|
||||||
root_patterns = { ".git", "pubspec.yaml" }, -- patterns to find the root of your flutter project
|
|
||||||
fvm = false, -- takes priority over path, uses <workspace>/.fvm/flutter_sdk if enabled
|
|
||||||
widget_guides = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
closing_tags = {
|
|
||||||
highlight = "ErrorMsg", -- highlight for the closing tag
|
|
||||||
prefix = ">", -- character to use for close tag e.g. > Widget
|
|
||||||
priority = 10, -- priority of virtual text in current line
|
|
||||||
-- consider to configure this when there is a possibility of multiple virtual text items in one line
|
|
||||||
-- see `priority` option in |:help nvim_buf_set_extmark| for more info
|
|
||||||
enabled = true -- set to false to disable
|
|
||||||
},
|
|
||||||
dev_log = {
|
|
||||||
enabled = true,
|
|
||||||
filter = nil, -- optional callback to filter the log
|
|
||||||
-- takes a log_line as string argument; returns a boolean or nil;
|
|
||||||
-- the log_line is only added to the output if the function returns true
|
|
||||||
notify_errors = false, -- if there is an error whilst running then notify the user
|
|
||||||
open_cmd = "15split", -- command to use to open the log buffer
|
|
||||||
focus_on_open = true, -- focus on the newly opened log window
|
|
||||||
},
|
|
||||||
dev_tools = {
|
|
||||||
autostart = false, -- autostart devtools server if not detected
|
|
||||||
auto_open_browser = false, -- Automatically opens devtools in the browser
|
|
||||||
},
|
|
||||||
outline = {
|
|
||||||
open_cmd = "30vnew", -- command to use to open the outline buffer
|
|
||||||
auto_open = false -- if true this will open the outline automatically when it is first populated
|
|
||||||
},
|
|
||||||
lsp = {
|
|
||||||
color = { -- show the derived colours for dart variables
|
|
||||||
enabled = true, -- whether or not to highlight color variables at all, only supported on flutter >= 2.10
|
|
||||||
background = true, -- highlight the background
|
|
||||||
background_color = nil, -- required, when background is transparent (i.e. background_color = { r = 19, g = 17, b = 24},)
|
|
||||||
foreground = false, -- highlight the foreground
|
|
||||||
virtual_text = true, -- show the highlight using virtual text
|
|
||||||
virtual_text_str = "■", -- the virtual text character to highlight
|
|
||||||
},
|
|
||||||
-- see the link below for details on each option:
|
|
||||||
-- https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md#client-workspace-configuration
|
|
||||||
settings = {
|
|
||||||
showTodos = true,
|
|
||||||
completeFunctionCalls = true,
|
|
||||||
renameFilesWithClasses = "prompt", -- "always"
|
|
||||||
enableSnippets = true,
|
|
||||||
updateImportsOnRename = true, -- Whether to update imports and other directives when files are renamed. Required for `FlutterRename` command.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
require("tiny-inline-diagnostic").setup({})
|
||||||
|
|
||||||
|
-- conform (code formatter)
|
||||||
|
require("conform").setup({})
|
||||||
|
|
||||||
|
-- flutter
|
||||||
|
require("flutter-tools").setup({})
|
||||||
|
|
||||||
|
-- GO
|
||||||
|
-- require("go").setup()
|
||||||
|
|
||||||
------------- -- Debugger
|
------------- -- Debugger
|
||||||
local dap, dapui = require("dap"), require("dapui")
|
local dap, dapui = require("dap"), require("dapui")
|
||||||
dap.listeners.before.attach.dapui_config = function()
|
dap.listeners.before.attach.dapui_config = function()
|
||||||
dapui.open()
|
dapui.open()
|
||||||
end
|
end
|
||||||
dap.listeners.before.launch.dapui_config = function()
|
dap.listeners.before.launch.dapui_config = function()
|
||||||
dapui.open()
|
dapui.open()
|
||||||
end
|
end
|
||||||
dap.listeners.before.event_terminated.dapui_config = function()
|
dap.listeners.before.event_terminated.dapui_config = function()
|
||||||
dapui.close()
|
dapui.close()
|
||||||
end
|
end
|
||||||
dap.listeners.before.event_exited.dapui_config = function()
|
dap.listeners.before.event_exited.dapui_config = function()
|
||||||
dapui.close()
|
dapui.close()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- c und rust
|
-- c und rust
|
||||||
dap.adapters.lldb = {
|
-- dap.adapters.lldb = {
|
||||||
type = 'executable',
|
-- type = 'executable',
|
||||||
command = 'lldb', -- adjust as needed, must be absolute path
|
-- command = 'lldb', -- adjust as needed, must be absolute path
|
||||||
name = 'lldb'
|
-- name = 'lldb'
|
||||||
|
-- }
|
||||||
|
-- dap.configurations.c = dap.configurations.cpp
|
||||||
|
-- dap.configurations.rust = dap.configurations.cpp
|
||||||
|
dap.adapters.gdb = {
|
||||||
|
type = "executable",
|
||||||
|
command = "gdb",
|
||||||
|
args = { "--interpreter=dap", "--eval-command", "set print pretty on" },
|
||||||
}
|
}
|
||||||
dap.configurations.c = dap.configurations.cpp
|
dap.configurations.cpp = dap.configurations.gdb
|
||||||
dap.configurations.rust = dap.configurations.cpp
|
dap.configurations.rust = dap.configurations.gdb
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
local builtin = require('telescope.builtin')
|
local builtin = require("telescope.builtin")
|
||||||
|
local conform = require("conform")
|
||||||
|
-- Love binds
|
||||||
|
vim.keymap.set("n", "<leader>lr", ":LoveRun<CR>", { desc = "Love run" })
|
||||||
-- Telescope binds
|
-- Telescope binds
|
||||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Telescope find files' })
|
vim.keymap.set("n", "<leader>ff", builtin.find_files, { desc = "Telescope find files" })
|
||||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Telescope live grep' })
|
vim.keymap.set("n", "<leader>fg", builtin.live_grep, { desc = "Telescope live grep" })
|
||||||
vim.keymap.set('n', '<leader>fb', ":Telescope file_browser<CR>", { desc = 'Telescope file_browser' })
|
vim.keymap.set("n", "<leader>fb", ":Telescope file_browser<CR>", { desc = "Telescope file_browser" })
|
||||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Telescope help tags' })
|
vim.keymap.set("n", "<leader>fh", builtin.help_tags, { desc = "Telescope help tags" })
|
||||||
vim.keymap.set('n', '<leader>fl', ": Telescope flutter commands<CR>", { desc = "Open Telescope flutter" })
|
vim.keymap.set("n", "<leader>fl", ": Telescope flutter commands<CR>", { desc = "Open Telescope flutter" })
|
||||||
vim.keymap.set('n', '<leader>fl', ":Telescope flutter commands<CR>", { desc = "Open Telescope flutter" })
|
vim.keymap.set("n", "<leader>fl", ":Telescope flutter commands<CR>", { desc = "Open Telescope flutter" })
|
||||||
-- Dap binds
|
-- Dap binds
|
||||||
vim.keymap.set('n', '<leader>do', dapui.open, { desc = "Open debug overlay" })
|
vim.keymap.set("n", "<leader>do", dapui.open, { desc = "Open debug overlay" })
|
||||||
vim.keymap.set('n', '<leader>dc', dapui.close, { desc = "Close debug overlay" })
|
vim.keymap.set("n", "<leader>dc", dapui.close, { desc = "Close debug overlay" })
|
||||||
vim.keymap.set('n', '<F5>', dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
|
vim.keymap.set("n", "<F5>", dap.toggle_breakpoint, { desc = "Toggle breakpoint" })
|
||||||
vim.keymap.set('n', '<F6>', dap.continue, { desc = "dap Continue" })
|
vim.keymap.set("n", "<F6>", dap.continue, { desc = "dap Continue" })
|
||||||
vim.keymap.set('n', '<F7>', dap.step_over, { desc = "dap step over" })
|
vim.keymap.set("n", "<F7>", dap.step_over, { desc = "dap step over" })
|
||||||
vim.keymap.set('n', '<F8>', dap.step_into, { desc = "dap step into" })
|
vim.keymap.set("n", "<F8>", dap.step_into, { desc = "dap step into" })
|
||||||
|
-- sudawrite
|
||||||
|
vim.keymap.set("n", "<leader>sw", ":SudaWrite<CR>", { desc = "Write as sudo" })
|
||||||
|
-- conform
|
||||||
|
vim.keymap.set("n", "<leader>cf", conform.format, { desc = "format code" })
|
||||||
-- toggleterm binds
|
-- toggleterm binds
|
||||||
vim.keymap.set('n', '<leader>tf', ':ToggleTerm direction=float <CR>', { desc = "Open floating terminal" })
|
vim.keymap.set("n", "<leader>tf", ":ToggleTerm direction=float <CR>", { desc = "Open floating terminal" })
|
||||||
vim.keymap.set('n', '<leader>tt', ':ToggleTerm direction=tab size=50 <CR>', { desc = "Open terminal in new tab" })
|
vim.keymap.set("n", "<leader>tt", ":ToggleTerm direction=tab size=50 <CR>", { desc = "Open terminal in new tab" })
|
||||||
vim.keymap.set('n', '<leader>tv', ':ToggleTerm direction=vertical <CR>', { desc = "Open terminal vertical" })
|
vim.keymap.set("n", "<leader>tv", ":ToggleTerm direction=vertical <CR>", { desc = "Open terminal vertical" })
|
||||||
vim.keymap.set('n', '<leader>ts', ':ToggleTerm direction=vertical <CR>', { desc = "select open terminal" })
|
vim.keymap.set("n", "<leader>ts", ":ToggleTerm direction=vertical <CR>", { desc = "select open terminal" })
|
||||||
|
-- file explorer binds (nvim-tree)
|
||||||
|
vim.keymap.set("n", "<leader>fe", ":NvimTreeToggle <CR>", { desc = "Toggle nvim tree" })
|
||||||
-- code actions
|
-- code actions
|
||||||
vim.keymap.set("n", "<leader>ca", function()
|
vim.keymap.set("n", "<leader>ca", function()
|
||||||
require("tiny-code-action").code_action()
|
require("tiny-code-action").code_action()
|
||||||
end, { desc = "Show code actions", noremap = true, silent = true })
|
end, { desc = "Show code actions", noremap = true, silent = true })
|
||||||
|
|
||||||
|
-- disable annoying inline type things
|
||||||
|
vim.lsp.inlay_hint.enable(false)
|
||||||
|
vim.diagnostic.config({virtual_text = false})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
29
packages/nvim/lua/plugins/avante.lua
Normal file
29
packages/nvim/lua/plugins/avante.lua
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
return {
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
version = false, -- Never set this value to "*"! Never!
|
||||||
|
opts = {
|
||||||
|
-- add any opts here
|
||||||
|
-- for example
|
||||||
|
provider = "copilot",
|
||||||
|
},
|
||||||
|
build = "make",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
--- The below dependencies are optional,
|
||||||
|
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
|
||||||
|
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
||||||
|
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
||||||
|
{
|
||||||
|
-- Make sure to set this up properly if you have lazy=true
|
||||||
|
'MeanderingProgrammer/render-markdown.nvim',
|
||||||
|
opts = {
|
||||||
|
file_types = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
ft = { "markdown", "Avante" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1 +1,18 @@
|
|||||||
return { "catppuccin/nvim", name = "catppuccin", priority = 1000 }
|
return {
|
||||||
|
"catppuccin/nvim",
|
||||||
|
name = "catppuccin",
|
||||||
|
priority = 1000,
|
||||||
|
opts = {
|
||||||
|
integrations = {
|
||||||
|
cmp = false,
|
||||||
|
gitsigns = true,
|
||||||
|
nvimtree = true,
|
||||||
|
treesitter = true,
|
||||||
|
notify = false,
|
||||||
|
mini = {
|
||||||
|
enabled = false,
|
||||||
|
indentscope_color = "",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
11
packages/nvim/lua/plugins/conform.lua
Normal file
11
packages/nvim/lua/plugins/conform.lua
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
'stevearc/conform.nvim',
|
||||||
|
opts = {
|
||||||
|
formatters_by_ft = {
|
||||||
|
dart = { "dart_format" },
|
||||||
|
lua = { "stylua" },
|
||||||
|
rust = { "rustfmt" },
|
||||||
|
go = { "gofmt" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
6
packages/nvim/lua/plugins/copilot.lua
Normal file
6
packages/nvim/lua/plugins/copilot.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
"zbirenbaum/copilot.lua",
|
||||||
|
config = function ()
|
||||||
|
require('copilot').setup({})
|
||||||
|
end
|
||||||
|
}
|
||||||
9
packages/nvim/lua/plugins/dioxus.lua
Normal file
9
packages/nvim/lua/plugins/dioxus.lua
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
return {
|
||||||
|
"mrxiaozhuox/dioxus.nvim",
|
||||||
|
opts = {
|
||||||
|
format = {
|
||||||
|
split_line_attributes = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
ft = "rust",
|
||||||
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
|
|
||||||
'nvim-flutter/flutter-tools.nvim',
|
'nvim-flutter/flutter-tools.nvim',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
@@ -7,4 +6,90 @@ return {
|
|||||||
'stevearc/dressing.nvim', -- optional for vim.ui.select
|
'stevearc/dressing.nvim', -- optional for vim.ui.select
|
||||||
},
|
},
|
||||||
config = true,
|
config = true,
|
||||||
|
opts = {
|
||||||
|
ui = {
|
||||||
|
-- the border type to use for all floating windows, the same options/formats
|
||||||
|
-- used for ":h nvim_open_win" e.g. "single" | "shadow" | {<table-of-eight-chars>}
|
||||||
|
border = "rounded",
|
||||||
|
-- This determines whether notifications are show with `vim.notify` or with the plugin's custom UI
|
||||||
|
-- please note that this option is eventually going to be deprecated and users will need to
|
||||||
|
-- depend on plugins like `nvim-notify` instead.
|
||||||
|
notification_style = 'plugin'
|
||||||
|
},
|
||||||
|
decorations = {
|
||||||
|
statusline = {
|
||||||
|
-- set to true to be able use the 'flutter_tools_decorations.app_version' in your statusline
|
||||||
|
-- this will show the current version of the flutter app from the pubspec.yaml file
|
||||||
|
app_version = false,
|
||||||
|
-- set to true to be able use the 'flutter_tools_decorations.device' in your statusline
|
||||||
|
-- this will show the currently running device if an application was started with a specific
|
||||||
|
-- device
|
||||||
|
device = true,
|
||||||
|
-- set to true to be able use the 'flutter_tools_decorations.project_config' in your statusline
|
||||||
|
-- this will show the currently selected project configuration
|
||||||
|
project_config = false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
debugger = { -- integrate with nvim dap + install dart code debugger
|
||||||
|
enabled = true,
|
||||||
|
-- if empty dap will not stop on any exceptions, otherwise it will stop on those specified
|
||||||
|
-- see |:help dap.set_exception_breakpoints()| for more info
|
||||||
|
exception_breakpoints = { "uncaught" },
|
||||||
|
-- Whether to call toString() on objects in debug views like hovers and the
|
||||||
|
-- variables list.
|
||||||
|
-- Invoking toString() has a performance cost and may introduce side-effects,
|
||||||
|
-- although users may expected this functionality. null is treated like false.
|
||||||
|
evaluate_to_string_in_debug_views = true,
|
||||||
|
},
|
||||||
|
flutter_lookup_cmd = nil, -- example "dirname $(which flutter)" or "asdf where flutter"
|
||||||
|
root_patterns = { ".git", "pubspec.yaml" }, -- patterns to find the root of your flutter project
|
||||||
|
fvm = false, -- takes priority over path, uses <workspace>/.fvm/flutter_sdk if enabled
|
||||||
|
widget_guides = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
closing_tags = {
|
||||||
|
highlight = "ErrorMsg", -- highlight for the closing tag
|
||||||
|
prefix = ">", -- character to use for close tag e.g. > Widget
|
||||||
|
priority = 10, -- priority of virtual text in current line
|
||||||
|
-- consider to configure this when there is a possibility of multiple virtual text items in one line
|
||||||
|
-- see `priority` option in |:help nvim_buf_set_extmark| for more info
|
||||||
|
enabled = true -- set to false to disable
|
||||||
|
},
|
||||||
|
dev_log = {
|
||||||
|
enabled = true,
|
||||||
|
filter = nil, -- optional callback to filter the log
|
||||||
|
-- takes a log_line as string argument; returns a boolean or nil;
|
||||||
|
-- the log_line is only added to the output if the function returns true
|
||||||
|
notify_errors = false, -- if there is an error whilst running then notify the user
|
||||||
|
open_cmd = "15split", -- command to use to open the log buffer
|
||||||
|
focus_on_open = true, -- focus on the newly opened log window
|
||||||
|
},
|
||||||
|
dev_tools = {
|
||||||
|
autostart = true, -- autostart devtools server if not detected
|
||||||
|
auto_open_browser = false, -- Automatically opens devtools in the browser
|
||||||
|
},
|
||||||
|
outline = {
|
||||||
|
open_cmd = "30vnew", -- command to use to open the outline buffer
|
||||||
|
auto_open = false -- if true this will open the outline automatically when it is first populated
|
||||||
|
},
|
||||||
|
lsp = {
|
||||||
|
color = { -- show the derived colours for dart variables
|
||||||
|
enabled = true, -- whether or not to highlight color variables at all, only supported on flutter >= 2.10
|
||||||
|
background = true, -- highlight the background
|
||||||
|
background_color = nil, -- required, when background is transparent (i.e. background_color = { r = 19, g = 17, b = 24},)
|
||||||
|
foreground = false, -- highlight the foreground
|
||||||
|
virtual_text = true, -- show the highlight using virtual text
|
||||||
|
virtual_text_str = "■", -- the virtual text character to highlight
|
||||||
|
},
|
||||||
|
-- see the link below for details on each option:
|
||||||
|
-- https://github.com/dart-lang/sdk/blob/master/pkg/analysis_server/tool/lsp_spec/README.md#client-workspace-configuration
|
||||||
|
settings = {
|
||||||
|
showTodos = true,
|
||||||
|
completeFunctionCalls = true,
|
||||||
|
renameFilesWithClasses = "prompt", -- "always"
|
||||||
|
enableSnippets = true,
|
||||||
|
updateImportsOnRename = true, -- Whether to update imports and other directives when files are renamed. Required for `FlutterRename` command.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
25
packages/nvim/lua/plugins/go.lua
Normal file
25
packages/nvim/lua/plugins/go.lua
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
return {
|
||||||
|
"ray-x/go.nvim",
|
||||||
|
dependencies = { -- optional packages
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
-- lsp_keymaps = false,
|
||||||
|
-- other options
|
||||||
|
},
|
||||||
|
config = function(lp, opts)
|
||||||
|
require("go").setup(opts)
|
||||||
|
local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
pattern = "*.go",
|
||||||
|
callback = function()
|
||||||
|
require('go.format').goimports()
|
||||||
|
end,
|
||||||
|
group = format_sync_grp,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
event = {"CmdlineEnter"},
|
||||||
|
ft = {"go", 'gomod'},
|
||||||
|
build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
|
||||||
|
}
|
||||||
@@ -1,30 +1,70 @@
|
|||||||
return {
|
return {
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
dependencies = { 'saghen/blink.cmp' },
|
dependencies = { 'saghen/blink.cmp' },
|
||||||
|
config = function(_,_)
|
||||||
|
|
||||||
-- example using `opts` for defining servers
|
local vue_language_server_path = vim.fn.expand '$MASON/packages' .. '/vue-language-server' .. '/node_modules/@vue/language-server'
|
||||||
opts = {
|
|
||||||
servers = {
|
local tsserver_filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }
|
||||||
lua_ls = {},
|
local vue_plugin = {
|
||||||
nil_ls = {},
|
name = '@vue/typescript-plugin',
|
||||||
rust_analyzer = {}
|
location = vue_language_server_path,
|
||||||
|
languages = { 'vue' },
|
||||||
|
configNamespace = 'typescript',
|
||||||
}
|
}
|
||||||
},
|
local vtsls_config = {
|
||||||
config = function(_, opts)
|
settings = {
|
||||||
local lspconfig = require('lspconfig')
|
vtsls = {
|
||||||
for server, config in pairs(opts.servers) do
|
tsserver = {
|
||||||
-- passing config.capabilities to blink.cmp merges with the capabilities in your
|
globalPlugins = {
|
||||||
-- `opts[server].capabilities, if you've defined it
|
vue_plugin,
|
||||||
config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
|
},
|
||||||
lspconfig[server].setup(config)
|
},
|
||||||
end
|
},
|
||||||
|
},
|
||||||
|
filetypes = tsserver_filetypes,
|
||||||
|
}
|
||||||
|
|
||||||
|
local ts_ls_config = {
|
||||||
|
init_options = {
|
||||||
|
plugins = {
|
||||||
|
vue_plugin,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
filetypes = tsserver_filetypes,
|
||||||
|
}
|
||||||
|
|
||||||
|
-- If you are on most recent `nvim-lspconfig`
|
||||||
|
local vue_ls_config = {}
|
||||||
|
-- nvim 0.11 or above
|
||||||
|
vim.lsp.config('vtsls', vtsls_config)
|
||||||
|
vim.lsp.config('vue_ls', vue_ls_config)
|
||||||
|
vim.lsp.config('lua_ls', {})
|
||||||
|
-- vim.lsp.config('rust_analyzer', {})
|
||||||
|
vim.lsp.enable({'vtsls', 'vue_ls', 'lua_ls'})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- -- example calling setup directly for each LSP
|
|
||||||
-- config = function()
|
-- opts = {
|
||||||
-- local capabilities = require('blink.cmp').get_lsp_capabilities()
|
-- servers = {
|
||||||
-- local lspconfig = require('lspconfig')
|
-- lua_ls = {},
|
||||||
--
|
-- nil_ls = {},
|
||||||
-- lspconfig['lua_ls'].setup({ capabilities = capabilities })
|
-- vstls = {},
|
||||||
-- end
|
-- vue_ls = {},
|
||||||
|
-- -- rust_analyzer = {},
|
||||||
|
-- -- gopls = {},
|
||||||
|
-- }
|
||||||
|
-- },
|
||||||
|
-- config = function(_, opts)
|
||||||
|
-- for server, config in pairs(opts.servers) do
|
||||||
|
-- config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
|
||||||
|
--
|
||||||
|
-- -- Verwende `vim.lsp.config` um die Konfiguration anzupassen
|
||||||
|
-- vim.lsp.config(server, config)
|
||||||
|
--
|
||||||
|
-- -- Aktiviere die Konfiguration
|
||||||
|
-- vim.lsp.enable(server)
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
8
packages/nvim/lua/plugins/mason-lspconfig.lua
Normal file
8
packages/nvim/lua/plugins/mason-lspconfig.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
"mason-org/mason-lspconfig.nvim",
|
||||||
|
opts = {},
|
||||||
|
dependencies = {
|
||||||
|
{ "mason-org/mason.nvim", opts = {} },
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,37 +1,46 @@
|
|||||||
return {
|
return {
|
||||||
|
"mason-org/mason.nvim",
|
||||||
"williamboman/mason.nvim",
|
config = function ()
|
||||||
cmd = "Mason",
|
require("mason").setup()
|
||||||
keys = { { "<leader>cm", "<cmd>Mason<cr>", desc = "Mason" } },
|
end
|
||||||
build = ":MasonUpdate",
|
|
||||||
opts_extend = { "ensure_installed" },
|
|
||||||
opts = {
|
|
||||||
ensure_installed = {
|
|
||||||
"stylua",
|
|
||||||
"shfmt",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
---@param opts MasonSettings | {ensure_installed: string[]}
|
|
||||||
config = function(_, opts)
|
|
||||||
require("mason").setup(opts)
|
|
||||||
local mr = require("mason-registry")
|
|
||||||
mr:on("package:install:success", function()
|
|
||||||
vim.defer_fn(function()
|
|
||||||
-- trigger FileType event to possibly load this newly installed LSP server
|
|
||||||
require("lazy.core.handler.event").trigger({
|
|
||||||
event = "FileType",
|
|
||||||
buf = vim.api.nvim_get_current_buf(),
|
|
||||||
})
|
|
||||||
end, 100)
|
|
||||||
end)
|
|
||||||
|
|
||||||
mr.refresh(function()
|
|
||||||
for _, tool in ipairs(opts.ensure_installed) do
|
|
||||||
local p = mr.get_package(tool)
|
|
||||||
if not p:is_installed() then
|
|
||||||
p:install()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
-- return {
|
||||||
|
--
|
||||||
|
-- "williamboman/mason.nvim",
|
||||||
|
-- cmd = "Mason",
|
||||||
|
-- keys = { { "<leader>cm", "<cmd>Mason<cr>", desc = "Mason" } },
|
||||||
|
-- build = ":MasonUpdate",
|
||||||
|
-- opts_extend = { "ensure_installed" },
|
||||||
|
-- opts = {
|
||||||
|
-- ensure_installed = {
|
||||||
|
-- -- "stylua",
|
||||||
|
-- -- "shfmt",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- ---@param opts MasonSettings | {ensure_installed: string[]}
|
||||||
|
-- config = function(_, opts)
|
||||||
|
-- require("mason").setup(opts)
|
||||||
|
-- local mr = require("mason-registry")
|
||||||
|
-- mr:on("package:install:success", function()
|
||||||
|
-- vim.defer_fn(function()
|
||||||
|
-- -- trigger FileType event to possibly load this newly installed LSP server
|
||||||
|
-- require("lazy.core.handler.event").trigger({
|
||||||
|
-- event = "FileType",
|
||||||
|
-- buf = vim.api.nvim_get_current_buf(),
|
||||||
|
-- })
|
||||||
|
-- end, 100)
|
||||||
|
-- end)
|
||||||
|
--
|
||||||
|
-- mr.refresh(function()
|
||||||
|
-- for _, tool in ipairs(opts.ensure_installed) do
|
||||||
|
-- local p = mr.get_package(tool)
|
||||||
|
-- if not p:is_installed() then
|
||||||
|
-- p:install()
|
||||||
|
-- end
|
||||||
|
-- end
|
||||||
|
-- end)
|
||||||
|
-- end,
|
||||||
|
-- }
|
||||||
|
|
||||||
|
|||||||
48
packages/nvim/lua/plugins/neominimap.lua
Normal file
48
packages/nvim/lua/plugins/neominimap.lua
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
---@module "neominimap.config.meta"
|
||||||
|
return {
|
||||||
|
"Isrothy/neominimap.nvim",
|
||||||
|
version = "v3.x.x",
|
||||||
|
lazy = false, -- NOTE: NO NEED to Lazy load
|
||||||
|
-- Optional. You can alse set your own keybindings
|
||||||
|
keys = {
|
||||||
|
-- Global Minimap Controls
|
||||||
|
{ "<leader>nm", "<cmd>Neominimap Toggle<cr>", desc = "Toggle global minimap" },
|
||||||
|
{ "<leader>no", "<cmd>Neominimap Enable<cr>", desc = "Enable global minimap" },
|
||||||
|
{ "<leader>nc", "<cmd>Neominimap Disable<cr>", desc = "Disable global minimap" },
|
||||||
|
{ "<leader>nr", "<cmd>Neominimap Refresh<cr>", desc = "Refresh global minimap" },
|
||||||
|
|
||||||
|
-- Window-Specific Minimap Controls
|
||||||
|
{ "<leader>nwt", "<cmd>Neominimap WinToggle<cr>", desc = "Toggle minimap for current window" },
|
||||||
|
{ "<leader>nwr", "<cmd>Neominimap WinRefresh<cr>", desc = "Refresh minimap for current window" },
|
||||||
|
{ "<leader>nwo", "<cmd>Neominimap WinEnable<cr>", desc = "Enable minimap for current window" },
|
||||||
|
{ "<leader>nwc", "<cmd>Neominimap WinDisable<cr>", desc = "Disable minimap for current window" },
|
||||||
|
|
||||||
|
-- Tab-Specific Minimap Controls
|
||||||
|
{ "<leader>ntt", "<cmd>Neominimap TabToggle<cr>", desc = "Toggle minimap for current tab" },
|
||||||
|
{ "<leader>ntr", "<cmd>Neominimap TabRefresh<cr>", desc = "Refresh minimap for current tab" },
|
||||||
|
{ "<leader>nto", "<cmd>Neominimap TabEnable<cr>", desc = "Enable minimap for current tab" },
|
||||||
|
{ "<leader>ntc", "<cmd>Neominimap TabDisable<cr>", desc = "Disable minimap for current tab" },
|
||||||
|
|
||||||
|
-- Buffer-Specific Minimap Controls
|
||||||
|
{ "<leader>nbt", "<cmd>Neominimap BufToggle<cr>", desc = "Toggle minimap for current buffer" },
|
||||||
|
{ "<leader>nbr", "<cmd>Neominimap BufRefresh<cr>", desc = "Refresh minimap for current buffer" },
|
||||||
|
{ "<leader>nbo", "<cmd>Neominimap BufEnable<cr>", desc = "Enable minimap for current buffer" },
|
||||||
|
{ "<leader>nbc", "<cmd>Neominimap BufDisable<cr>", desc = "Disable minimap for current buffer" },
|
||||||
|
|
||||||
|
---Focus Controls
|
||||||
|
{ "<leader>nf", "<cmd>Neominimap Focus<cr>", desc = "Focus on minimap" },
|
||||||
|
{ "<leader>nu", "<cmd>Neominimap Unfocus<cr>", desc = "Unfocus minimap" },
|
||||||
|
{ "<leader>ns", "<cmd>Neominimap ToggleFocus<cr>", desc = "Switch focus on minimap" },
|
||||||
|
},
|
||||||
|
init = function()
|
||||||
|
-- The following options are recommended when layout == "float"
|
||||||
|
vim.opt.wrap = false
|
||||||
|
vim.opt.sidescrolloff = 36 -- Set a large value
|
||||||
|
|
||||||
|
--- Put your configuration here
|
||||||
|
---@type Neominimap.UserConfig
|
||||||
|
vim.g.neominimap = {
|
||||||
|
auto_enable = true,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
1
packages/nvim/lua/plugins/nio.lua
Normal file
1
packages/nvim/lua/plugins/nio.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return { "nvim-neotest/nvim-nio" }
|
||||||
6
packages/nvim/lua/plugins/notify.lua
Normal file
6
packages/nvim/lua/plugins/notify.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
config = function ()
|
||||||
|
vim.notify = require("notify")
|
||||||
|
end
|
||||||
|
}
|
||||||
15
packages/nvim/lua/plugins/nvim-tree.lua
Normal file
15
packages/nvim/lua/plugins/nvim-tree.lua
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
return {
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
version = "*",
|
||||||
|
lazy = false,
|
||||||
|
dependencies = {
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
view = {
|
||||||
|
width = 30,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,5 +1,29 @@
|
|||||||
return {
|
return {
|
||||||
'mrcjkb/rustaceanvim',
|
"mrcjkb/rustaceanvim",
|
||||||
version = '^5', -- Recommended
|
version = "^6", -- Recommended
|
||||||
lazy = false, -- This plugin is already lazy
|
lazy = false, -- This plugin is already lazy
|
||||||
|
|
||||||
|
keys = {
|
||||||
|
{ "<leader>rrr", ":RustRun<CR>", desc = "Rust run" },
|
||||||
|
{"<leader>rd", ":RustLsp debug<CR>", desc = "Debug rust program" },
|
||||||
|
{"<leader>rh", ":RustLsp hover actions<CR>", desc = "rust hover actions" },
|
||||||
|
{"<leader>re", ":RustLsp explainError<CR>", desc = "explain rust error" },
|
||||||
|
{"<leader>rs", ":RustLsp openDocs<CR>",desc = "open rust docs for symbol under cursor" },
|
||||||
|
{"<leader>rrn", ":RustLsp ssr ", desc = "rust rename" }
|
||||||
|
},
|
||||||
|
-- opts = {
|
||||||
|
-- function()
|
||||||
|
-- vim.keymap.set("n", "<leader>rrr", ":RustRun<CR>", { desc = "Run rust program" })
|
||||||
|
-- vim.keymap.set("n", "<leader>rd", ":RustLsp debug<CR>", { desc = "Debug rust program" })
|
||||||
|
-- vim.keymap.set("n", "<leader>rh", ":RustLsp hover actions<CR>", { desc = "rust hover actions" })
|
||||||
|
-- vim.keymap.set("n", "<leader>re", ":RustLsp explainError<CR>", { desc = "explain rust error" })
|
||||||
|
-- vim.keymap.set(
|
||||||
|
-- "n",
|
||||||
|
-- "<leader>rs",
|
||||||
|
-- ":RustLsp openDocs<CR>",
|
||||||
|
-- { desc = "open rust docs for symbol under cursor" }
|
||||||
|
-- )
|
||||||
|
-- vim.keymap.set("n", "<leader>rrn", ":RustLsp ssr ", { desc = "rust rename" })
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ return {
|
|||||||
'nanozuki/tabby.nvim',
|
'nanozuki/tabby.nvim',
|
||||||
-- event = 'VimEnter', -- if you want lazy load, see below
|
-- event = 'VimEnter', -- if you want lazy load, see below
|
||||||
dependencies = 'nvim-tree/nvim-web-devicons',
|
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||||
config = function()
|
opts = {
|
||||||
-- configs...
|
preset = "tab_only"
|
||||||
end,
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
19
packages/nvim/lua/plugins/tiny-inline-diagnostic.lua
Normal file
19
packages/nvim/lua/plugins/tiny-inline-diagnostic.lua
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
return {
|
||||||
|
"rachartier/tiny-inline-diagnostic.nvim",
|
||||||
|
event = "VeryLazy", -- Or `LspAttach`
|
||||||
|
priority = 1000, -- needs to be loaded in first
|
||||||
|
config = function()
|
||||||
|
require('tiny-inline-diagnostic').setup({
|
||||||
|
preset = "ghost";
|
||||||
|
options = {
|
||||||
|
use_icons_from_diagnostic = true,
|
||||||
|
multilines = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
show_all_diags_on_cursorline = false,
|
||||||
|
enable_on_insert = true,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
vim.diagnostic.config({ virtual_text = false }) -- Only if needed in your configuration, if you already have native LSP diagnostics
|
||||||
|
end
|
||||||
|
}
|
||||||
6
packages/nvim/lua/plugins/typst.lua
Normal file
6
packages/nvim/lua/plugins/typst.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
'chomosuke/typst-preview.nvim',
|
||||||
|
lazy = false, -- or ft = 'typst'
|
||||||
|
version = '1.*',
|
||||||
|
opts = {}, -- lazy.nvim will implicitly calls `setup {}`
|
||||||
|
}
|
||||||
3
packages/nvim/lua/plugins/vim-suda.lua
Normal file
3
packages/nvim/lua/plugins/vim-suda.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
return {
|
||||||
|
"lambdalisue/vim-suda"
|
||||||
|
}
|
||||||
7
packages/nvim/nvim/plugins/autopair.lua
Normal file
7
packages/nvim/nvim/plugins/autopair.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
'windwp/nvim-autopairs',
|
||||||
|
event = "InsertEnter",
|
||||||
|
config = true
|
||||||
|
-- use opts = {} for passing setup options
|
||||||
|
-- this is equivalent to setup({}) function
|
||||||
|
}
|
||||||
7
packages/nvim/nvim/plugins/blankline.lua
Normal file
7
packages/nvim/nvim/plugins/blankline.lua
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
main = "ibl",
|
||||||
|
---@module "ibl"
|
||||||
|
---@type ibl.config
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
46
packages/nvim/nvim/plugins/blink-cmp.lua
Normal file
46
packages/nvim/nvim/plugins/blink-cmp.lua
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
return {
|
||||||
|
'saghen/blink.cmp',
|
||||||
|
-- optional: provides snippets for the snippet source
|
||||||
|
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||||
|
|
||||||
|
-- use a release tag to download pre-built binaries
|
||||||
|
version = '1.*',
|
||||||
|
opts = {
|
||||||
|
-- 'default' (recommended) for mappings similar to built-in completions (C-y to accept)
|
||||||
|
-- 'super-tab' for mappings similar to vscode (tab to accept)
|
||||||
|
-- 'enter' for enter to accept
|
||||||
|
-- 'none' for no mappings
|
||||||
|
--
|
||||||
|
-- All presets have the following mappings:
|
||||||
|
-- C-space: Open menu or open docs if already open
|
||||||
|
-- C-n/C-p or Up/Down: Select next/previous item
|
||||||
|
-- C-e: Hide menu
|
||||||
|
-- C-k: Toggle signature help (if signature.enabled = true)
|
||||||
|
--
|
||||||
|
-- See :h blink-cmp-config-keymap for defining your own keymap
|
||||||
|
keymap = { preset = 'enter' },
|
||||||
|
|
||||||
|
appearance = {
|
||||||
|
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
||||||
|
-- Adjusts spacing to ensure icons are aligned
|
||||||
|
nerd_font_variant = 'mono'
|
||||||
|
},
|
||||||
|
|
||||||
|
-- (Default) Only show the documentation popup when manually triggered
|
||||||
|
completion = { documentation = { auto_show = false } },
|
||||||
|
|
||||||
|
-- Default list of enabled providers defined so that you can extend it
|
||||||
|
-- elsewhere in your config, without redefining it, due to `opts_extend`
|
||||||
|
sources = {
|
||||||
|
default = { 'lsp', 'path', 'snippets', 'buffer' },
|
||||||
|
},
|
||||||
|
|
||||||
|
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
|
||||||
|
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
|
||||||
|
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
|
||||||
|
--
|
||||||
|
-- See the fuzzy documentation for more information
|
||||||
|
fuzzy = { implementation = "prefer_rust_with_warning" }
|
||||||
|
},
|
||||||
|
opts_extend = { "sources.default" }
|
||||||
|
}
|
||||||
11
packages/nvim/nvim/plugins/code-action.lua
Normal file
11
packages/nvim/nvim/plugins/code-action.lua
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
"rachartier/tiny-code-action.nvim",
|
||||||
|
dependencies = {
|
||||||
|
{"nvim-lua/plenary.nvim"},
|
||||||
|
{"nvim-telescope/telescope.nvim"},
|
||||||
|
},
|
||||||
|
event = "LspAttach",
|
||||||
|
config = function()
|
||||||
|
require('tiny-code-action').setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
8
packages/nvim/nvim/plugins/comment.lua
Normal file
8
packages/nvim/nvim/plugins/comment.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
-- add this to your lua/plugins.lua, lua/plugins/init.lua, or the file you keep your other plugins:
|
||||||
|
return {
|
||||||
|
'numToStr/Comment.nvim',
|
||||||
|
opts = {
|
||||||
|
-- add any options here
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
1
packages/nvim/nvim/plugins/dap.lua
Normal file
1
packages/nvim/nvim/plugins/dap.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return { "rcarriga/nvim-dap-ui", dependencies = {"mfussenegger/nvim-dap", "nvim-neotest/nvim-nio"} }
|
||||||
21
packages/nvim/nvim/plugins/lazygit.lua
Normal file
21
packages/nvim/nvim/plugins/lazygit.lua
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
-- nvim v0.8.0
|
||||||
|
return {
|
||||||
|
"kdheepak/lazygit.nvim",
|
||||||
|
lazy = true,
|
||||||
|
cmd = {
|
||||||
|
"LazyGit",
|
||||||
|
"LazyGitConfig",
|
||||||
|
"LazyGitCurrentFile",
|
||||||
|
"LazyGitFilter",
|
||||||
|
"LazyGitFilterCurrentFile",
|
||||||
|
},
|
||||||
|
-- optional for floating window border decoration
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||||
|
-- order to load the plugin when the command is run for the first time
|
||||||
|
keys = {
|
||||||
|
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||||
|
}
|
||||||
|
}
|
||||||
11
packages/nvim/nvim/plugins/love.lua
Normal file
11
packages/nvim/nvim/plugins/love.lua
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
-- using lazy.nvim
|
||||||
|
return {
|
||||||
|
"S1M0N38/love2d.nvim",
|
||||||
|
cmd = "LoveRun",
|
||||||
|
opts = { },
|
||||||
|
keys = {
|
||||||
|
{ "<leader>v", ft = "lua", desc = "LÖVE" },
|
||||||
|
{ "<leader>vv", "<cmd>LoveRun<cr>", ft = "lua", desc = "Run LÖVE" },
|
||||||
|
{ "<leader>vs", "<cmd>LoveStop<cr>", ft = "lua", desc = "Stop LÖVE" },
|
||||||
|
},
|
||||||
|
}
|
||||||
1
packages/nvim/nvim/plugins/mini-animate.lua
Normal file
1
packages/nvim/nvim/plugins/mini-animate.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return { 'echasnovski/mini.animate', version = '*' }
|
||||||
1
packages/nvim/nvim/plugins/nio.nvim
Normal file
1
packages/nvim/nvim/plugins/nio.nvim
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return { "nvim-neotest/nvim-nio" }
|
||||||
5
packages/nvim/nvim/plugins/rustaceanvim.lua
Normal file
5
packages/nvim/nvim/plugins/rustaceanvim.lua
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
return {
|
||||||
|
'mrcjkb/rustaceanvim',
|
||||||
|
version = '^6', -- Recommended
|
||||||
|
lazy = false, -- This plugin is already lazy
|
||||||
|
}
|
||||||
8
packages/nvim/nvim/plugins/tabby.lua
Normal file
8
packages/nvim/nvim/plugins/tabby.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
'nanozuki/tabby.nvim',
|
||||||
|
-- event = 'VimEnter', -- if you want lazy load, see below
|
||||||
|
dependencies = 'nvim-tree/nvim-web-devicons',
|
||||||
|
config = function()
|
||||||
|
-- configs...
|
||||||
|
end,
|
||||||
|
}
|
||||||
45
packages/nvim/nvim/plugins/tabout.lua
Normal file
45
packages/nvim/nvim/plugins/tabout.lua
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
-- Lua
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
'abecodes/tabout.nvim',
|
||||||
|
lazy = false,
|
||||||
|
config = function()
|
||||||
|
require('tabout').setup {
|
||||||
|
tabkey = '<Tab>', -- key to trigger tabout, set to an empty string to disable
|
||||||
|
backwards_tabkey = '<S-Tab>', -- key to trigger backwards tabout, set to an empty string to disable
|
||||||
|
act_as_tab = true, -- shift content if tab out is not possible
|
||||||
|
act_as_shift_tab = false, -- reverse shift content if tab out is not possible (if your keyboard/terminal supports <S-Tab>)
|
||||||
|
default_tab = '<C-t>', -- shift default action (only at the beginning of a line, otherwise <TAB> is used)
|
||||||
|
default_shift_tab = '<C-d>', -- reverse shift default action,
|
||||||
|
enable_backwards = true, -- well ...
|
||||||
|
completion = false, -- if the tabkey is used in a completion pum
|
||||||
|
tabouts = {
|
||||||
|
{ open = "'", close = "'" },
|
||||||
|
{ open = '"', close = '"' },
|
||||||
|
{ open = '`', close = '`' },
|
||||||
|
{ open = '(', close = ')' },
|
||||||
|
{ open = '[', close = ']' },
|
||||||
|
{ open = '{', close = '}' }
|
||||||
|
},
|
||||||
|
ignore_beginning = true, --[[ if the cursor is at the beginning of a filled element it will rather tab out than shift the content ]]
|
||||||
|
exclude = {} -- tabout will ignore these filetypes
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
dependencies = { -- These are optional
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
"hrsh7th/nvim-cmp"
|
||||||
|
},
|
||||||
|
opt = true, -- Set this to true if the plugin is optional
|
||||||
|
event = 'InsertCharPre', -- Set the event to 'InsertCharPre' for better compatibility
|
||||||
|
priority = 1000,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
keys = function()
|
||||||
|
-- Disable default tab keybinding in LuaSnip
|
||||||
|
return {}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
6
packages/nvim/nvim/plugins/toggleterm.lua
Normal file
6
packages/nvim/nvim/plugins/toggleterm.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
-- amongst your other plugins
|
||||||
|
{'akinsho/toggleterm.nvim', version = "*", config = true}
|
||||||
|
-- or
|
||||||
|
{'akinsho/toggleterm.nvim', version = "*", opts = {--[[ things you want to change go here]]}}
|
||||||
|
}
|
||||||
37
packages/nvim/nvim/plugins/trouble.lua
Normal file
37
packages/nvim/nvim/plugins/trouble.lua
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
return {
|
||||||
|
"folke/trouble.nvim",
|
||||||
|
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||||
|
cmd = "Trouble",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>xx",
|
||||||
|
"<cmd>Trouble diagnostics toggle<cr>",
|
||||||
|
desc = "Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xX",
|
||||||
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||||
|
desc = "Buffer Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cs",
|
||||||
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||||
|
desc = "Symbols (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cl",
|
||||||
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||||
|
desc = "LSP Definitions / references / ... (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xL",
|
||||||
|
"<cmd>Trouble loclist toggle<cr>",
|
||||||
|
desc = "Location List (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xQ",
|
||||||
|
"<cmd>Trouble qflist toggle<cr>",
|
||||||
|
desc = "Quickfix List (Trouble)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
18
packages/nvim/nvim/plugins/whichkey.lua
Normal file
18
packages/nvim/nvim/plugins/whichkey.lua
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
return {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
-- your configuration comes here
|
||||||
|
-- or leave it empty to use the default settings
|
||||||
|
-- refer to the configuration section below
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>?",
|
||||||
|
function()
|
||||||
|
require("which-key").show({ global = false })
|
||||||
|
end,
|
||||||
|
desc = "Buffer Local Keymaps (which-key)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -15,9 +15,9 @@ set preview_images_method kitty
|
|||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Nico";
|
settings.user.name = "Nico";
|
||||||
userEmail = "nicovessen@gmail.com";
|
settings.user.email = "nico@getmemy.coffee";
|
||||||
extraConfig = {
|
settings.extraConfig = {
|
||||||
safe.directory = "/etc/nixos";
|
safe.directory = "/etc/nixos";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
0
packages/settings.json
Normal file
0
packages/settings.json
Normal file
78
packages/terminal/alacritty-catppuccin-mocha.yml
Normal file
78
packages/terminal/alacritty-catppuccin-mocha.yml
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
colors:
|
||||||
|
primary:
|
||||||
|
background: "#1E1E2E" # base
|
||||||
|
foreground: "#CDD6F4" # text
|
||||||
|
# Bright and dim foreground colors
|
||||||
|
dim_foreground: "#CDD6F4" # text
|
||||||
|
bright_foreground: "#CDD6F4" # text
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
cursor:
|
||||||
|
text: "#1E1E2E" # base
|
||||||
|
cursor: "#F5E0DC" # rosewater
|
||||||
|
vi_mode_cursor:
|
||||||
|
text: "#1E1E2E" # base
|
||||||
|
cursor: "#B4BEFE" # lavender
|
||||||
|
|
||||||
|
# Search colors
|
||||||
|
search:
|
||||||
|
matches:
|
||||||
|
foreground: "#1E1E2E" # base
|
||||||
|
background: "#A6ADC8" # subtext0
|
||||||
|
focused_match:
|
||||||
|
foreground: "#1E1E2E" # base
|
||||||
|
background: "#A6E3A1" # green
|
||||||
|
footer_bar:
|
||||||
|
foreground: "#1E1E2E" # base
|
||||||
|
background: "#A6ADC8" # subtext0
|
||||||
|
|
||||||
|
# Keyboard regex hints
|
||||||
|
hints:
|
||||||
|
start:
|
||||||
|
foreground: "#1E1E2E" # base
|
||||||
|
background: "#F9E2AF" # yellow
|
||||||
|
end:
|
||||||
|
foreground: "#1E1E2E" # base
|
||||||
|
background: "#A6ADC8" # subtext0
|
||||||
|
|
||||||
|
# Selection colors
|
||||||
|
selection:
|
||||||
|
text: "#1E1E2E" # base
|
||||||
|
background: "#F5E0DC" # rosewater
|
||||||
|
|
||||||
|
# Normal colors
|
||||||
|
normal:
|
||||||
|
black: "#45475A" # surface1
|
||||||
|
red: "#F38BA8" # red
|
||||||
|
green: "#A6E3A1" # green
|
||||||
|
yellow: "#F9E2AF" # yellow
|
||||||
|
blue: "#89B4FA" # blue
|
||||||
|
magenta: "#F5C2E7" # pink
|
||||||
|
cyan: "#94E2D5" # teal
|
||||||
|
white: "#BAC2DE" # subtext1
|
||||||
|
|
||||||
|
# Bright colors
|
||||||
|
bright:
|
||||||
|
black: "#585B70" # surface2
|
||||||
|
red: "#F38BA8" # red
|
||||||
|
green: "#A6E3A1" # green
|
||||||
|
yellow: "#F9E2AF" # yellow
|
||||||
|
blue: "#89B4FA" # blue
|
||||||
|
magenta: "#F5C2E7" # pink
|
||||||
|
cyan: "#94E2D5" # teal
|
||||||
|
white: "#A6ADC8" # subtext0
|
||||||
|
|
||||||
|
# Dim colors
|
||||||
|
dim:
|
||||||
|
black: "#45475A" # surface1
|
||||||
|
red: "#F38BA8" # red
|
||||||
|
green: "#A6E3A1" # green
|
||||||
|
yellow: "#F9E2AF" # yellow
|
||||||
|
blue: "#89B4FA" # blue
|
||||||
|
magenta: "#F5C2E7" # pink
|
||||||
|
cyan: "#94E2D5" # teal
|
||||||
|
white: "#BAC2DE" # subtext1
|
||||||
|
|
||||||
|
indexed_colors:
|
||||||
|
- { index: 16, color: "#FAB387" }
|
||||||
|
- { index: 17, color: "#F5E0DC" }
|
||||||
173
packages/terminal/default.nix
Normal file
173
packages/terminal/default.nix
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
|
||||||
|
{ pkgs, config, lib,... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
programs.nushell = {
|
||||||
|
enable = false;
|
||||||
|
extraConfig = ''
|
||||||
|
$env.config = {
|
||||||
|
show_banner: false,
|
||||||
|
edit_mode: vi
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
shellAliases = {
|
||||||
|
update = "sudo nixos-rebuild switch --flake /etc/nixos/#my-nixos";
|
||||||
|
emacs = "emacs -nw";
|
||||||
|
femacs = "emacs -nw --load /etc/nixos/packages/emacs/flutter/init.el";
|
||||||
|
pemacs = "emacs -nw --load /home/n/Documents/Shells//python/init.el";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
programs.carapace = {
|
||||||
|
enable = false;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# programs.thefuck.enable = true;
|
||||||
|
|
||||||
|
programs.starship.enable = true;
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
update = "sudo nixos-rebuild switch";
|
||||||
|
emacs = "emacs -nw";
|
||||||
|
femacs = "emacs -nw --load /home/n/Documents/Shells/flutter/init.el";
|
||||||
|
pemacs = "emacs -nw --load /home/n/Documents/Shells//python/init.el";
|
||||||
|
};
|
||||||
|
|
||||||
|
initContent = ''
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
export NIX_LD=$(nix eval --impure --raw --expr 'let pkgs = import <nixpkgs> {}; NIX_LD = pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker"; in NIX_LD')
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
zplug = {
|
||||||
|
enable = false;
|
||||||
|
plugins = [
|
||||||
|
{ name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
# plugins = [ "thefuck" ];
|
||||||
|
# theme = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
programs.ghostty = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file."/home/nico/.config/ghostty/config" = {
|
||||||
|
source = ./ghostty-config;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zoxide = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
|
||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Catppuccin Kitty Mocha
|
||||||
|
## author: Catppuccin Org
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
|
||||||
|
## blurb: Soothing pastel theme for the high-spirited!
|
||||||
|
|
||||||
|
map ctrl+shift+w no_op
|
||||||
|
|
||||||
|
|
||||||
|
# The basic colors
|
||||||
|
foreground #cdd6f4
|
||||||
|
background #1e1e2e
|
||||||
|
selection_foreground #1e1e2e
|
||||||
|
selection_background #f5e0dc
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
cursor #f5e0dc
|
||||||
|
cursor_text_color #1e1e2e
|
||||||
|
|
||||||
|
# URL underline color when hovering with mouse
|
||||||
|
url_color #f5e0dc
|
||||||
|
|
||||||
|
# Kitty window border colors
|
||||||
|
active_border_color #b4befe
|
||||||
|
inactive_border_color #6c7086
|
||||||
|
bell_border_color #f9e2af
|
||||||
|
|
||||||
|
# OS Window titlebar colors
|
||||||
|
wayland_titlebar_color system
|
||||||
|
macos_titlebar_color system
|
||||||
|
|
||||||
|
# Tab bar colors
|
||||||
|
active_tab_foreground #11111b
|
||||||
|
active_tab_background #cba6f7
|
||||||
|
inactive_tab_foreground #cdd6f4
|
||||||
|
inactive_tab_background #181825
|
||||||
|
tab_bar_background #11111b
|
||||||
|
|
||||||
|
# Colors for marks (marked text in the terminal)
|
||||||
|
mark1_foreground #1e1e2e
|
||||||
|
mark1_background #b4befe
|
||||||
|
mark2_foreground #1e1e2e
|
||||||
|
mark2_background #cba6f7
|
||||||
|
mark3_foreground #1e1e2e
|
||||||
|
mark3_background #74c7ec
|
||||||
|
|
||||||
|
# The 16 terminal colors
|
||||||
|
|
||||||
|
# black
|
||||||
|
color0 #45475a
|
||||||
|
color8 #585b70
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #f38ba8
|
||||||
|
color9 #f38ba8
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #a6e3a1
|
||||||
|
color10 #a6e3a1
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #f9e2af
|
||||||
|
color11 #f9e2af
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #89b4fa
|
||||||
|
color12 #89b4fa
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #f5c2e7
|
||||||
|
color13 #f5c2e7
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #94e2d5
|
||||||
|
color14 #94e2d5
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #bac2de
|
||||||
|
color15 #a6adc8
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
24
packages/terminal/ghostty-config
Normal file
24
packages/terminal/ghostty-config
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
palette = 0=#45475a
|
||||||
|
palette = 1=#f38ba8
|
||||||
|
palette = 2=#a6e3a1
|
||||||
|
palette = 3=#f9e2af
|
||||||
|
palette = 4=#89b4fa
|
||||||
|
palette = 5=#f5c2e7
|
||||||
|
palette = 6=#94e2d5
|
||||||
|
palette = 7=#bac2de
|
||||||
|
palette = 8=#585b70
|
||||||
|
palette = 9=#f38ba8
|
||||||
|
palette = 10=#a6e3a1
|
||||||
|
palette = 11=#f9e2af
|
||||||
|
palette = 12=#89b4fa
|
||||||
|
palette = 13=#f5c2e7
|
||||||
|
palette = 14=#94e2d5
|
||||||
|
palette = 15=#a6adc8
|
||||||
|
background = 1e1e2e
|
||||||
|
foreground = cdd6f4
|
||||||
|
cursor-color = f5e0dc
|
||||||
|
cursor-text = 1e1e2e
|
||||||
|
selection-background = 353749
|
||||||
|
selection-foreground = cdd6f4
|
||||||
|
|
||||||
|
gtk-titlebar = false
|
||||||
80
packages/terminal/kitty.conf
Normal file
80
packages/terminal/kitty.conf
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Catppuccin Kitty Mocha
|
||||||
|
## author: Catppuccin Org
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
|
||||||
|
## blurb: Soothing pastel theme for the high-spirited!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# The basic colors
|
||||||
|
foreground #cdd6f4
|
||||||
|
background #1e1e2e
|
||||||
|
selection_foreground #1e1e2e
|
||||||
|
selection_background #f5e0dc
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
cursor #f5e0dc
|
||||||
|
cursor_text_color #1e1e2e
|
||||||
|
|
||||||
|
# URL underline color when hovering with mouse
|
||||||
|
url_color #f5e0dc
|
||||||
|
|
||||||
|
# Kitty window border colors
|
||||||
|
active_border_color #b4befe
|
||||||
|
inactive_border_color #6c7086
|
||||||
|
bell_border_color #f9e2af
|
||||||
|
|
||||||
|
# OS Window titlebar colors
|
||||||
|
wayland_titlebar_color system
|
||||||
|
macos_titlebar_color system
|
||||||
|
|
||||||
|
# Tab bar colors
|
||||||
|
active_tab_foreground #11111b
|
||||||
|
active_tab_background #cba6f7
|
||||||
|
inactive_tab_foreground #cdd6f4
|
||||||
|
inactive_tab_background #181825
|
||||||
|
tab_bar_background #11111b
|
||||||
|
|
||||||
|
# Colors for marks (marked text in the terminal)
|
||||||
|
mark1_foreground #1e1e2e
|
||||||
|
mark1_background #b4befe
|
||||||
|
mark2_foreground #1e1e2e
|
||||||
|
mark2_background #cba6f7
|
||||||
|
mark3_foreground #1e1e2e
|
||||||
|
mark3_background #74c7ec
|
||||||
|
|
||||||
|
# The 16 terminal colors
|
||||||
|
|
||||||
|
# black
|
||||||
|
color0 #45475a
|
||||||
|
color8 #585b70
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #f38ba8
|
||||||
|
color9 #f38ba8
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #a6e3a1
|
||||||
|
color10 #a6e3a1
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #f9e2af
|
||||||
|
color11 #f9e2af
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #89b4fa
|
||||||
|
color12 #89b4fa
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #f5c2e7
|
||||||
|
color13 #f5c2e7
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #94e2d5
|
||||||
|
color14 #94e2d5
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #bac2de
|
||||||
|
color15 #a6adc8
|
||||||
@@ -5,10 +5,18 @@
|
|||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
terminal = "tmux-256color";
|
||||||
|
disableConfirmationPrompt = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set-option -sa terminal-overrides ",xterm*:Tc"
|
# set-option -sa terminal-overrides ",xterm*:Tc"
|
||||||
set -g @catppuccin_flavor 'mocha'
|
# set -g @catppuccin_flavor 'mocha'
|
||||||
set -g @catppuccin_window_status_style "rounded"
|
# set -g @catppuccin_window_status_style "rounded"
|
||||||
|
# set -g default-terminal "xterm-256color"
|
||||||
|
# set -ga terminal-overrides ",*256col*:Tc"
|
||||||
|
# set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||||
|
# set-environment -g COLORTERM "truecolor"
|
||||||
|
#
|
||||||
|
# run-shell ${pkgs.tmuxPlugins.catppuccin}/share/tmux-plugins/catppuccin/catppuccin.tmux
|
||||||
|
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
set -g pane-base-index 1
|
set -g pane-base-index 1
|
||||||
@@ -18,17 +26,51 @@ set-option -g renumber-windows on
|
|||||||
bind '"' split-window -v -c "#{pane_current_path}"
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
unbind C-b
|
|
||||||
set -g prefix C-Space
|
|
||||||
bind C-Space send-prefix
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
bind -n M-H previous-window
|
bind -n M-H previous-window
|
||||||
bind -n M-L next-window
|
bind -n M-L next-window
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Smart pane switching with awareness of Vim splits.
|
||||||
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||||
|
|
||||||
|
# decide whether we're in a Vim process
|
||||||
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||||
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||||
|
|
||||||
|
bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
|
||||||
|
bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
|
||||||
|
bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
|
||||||
|
bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
|
||||||
|
|
||||||
|
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
|
||||||
|
|
||||||
|
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
||||||
|
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
|
||||||
|
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
|
||||||
|
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
|
||||||
|
|
||||||
|
bind-key -n 'C-Space' if-shell "$is_vim" 'send-keys C-Space' 'select-pane -t:.+'
|
||||||
|
|
||||||
|
bind-key -T copy-mode-vi 'C-h' select-pane -L
|
||||||
|
bind-key -T copy-mode-vi 'C-j' select-pane -D
|
||||||
|
bind-key -T copy-mode-vi 'C-k' select-pane -U
|
||||||
|
bind-key -T copy-mode-vi 'C-l' select-pane -R
|
||||||
|
bind-key -T copy-mode-vi 'C-\' select-pane -l
|
||||||
|
bind-key -T copy-mode-vi 'C-Space' select-pane -t:.+
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
pkgs.tmuxPlugins.catppuccin
|
catppuccin {
|
||||||
|
plugin = catppuccin;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @plugin 'catppuccin/tmux#2.1.3'
|
||||||
|
set -g @catppuccin_window_status_style "rounded"
|
||||||
|
set -g @catppuccin_flavor 'mocha'
|
||||||
|
'';
|
||||||
|
}
|
||||||
# pkgs.tmuxPlugins.vim-tmux-navigator
|
# pkgs.tmuxPlugins.vim-tmux-navigator
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
"height": 38,
|
"height": 38,
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
"modules-left": ["clock", "hyprland/workspaces", "hyprland/submap"],
|
"modules-left": ["clock", "niri/workspaces", "hyprland/submap"],
|
||||||
"modules-center": [ ],
|
"modules-center": [ ],
|
||||||
"modules-right": ["network", "cpu", "memory", "custom/keyboard-layout", "custom/notification", "pulseaudio", "tray"],
|
"modules-right": ["network", "cpu", "memory", "custom/keyboard-layout", "custom/notification", "pulseaudio", "tray"],
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[any]
|
[any]
|
||||||
duration = "10m"
|
duration = "10m"
|
||||||
mode = "center"
|
mode = "center"
|
||||||
path = "/home/n/Documents/Wallpapers"
|
path = "/home/nico/Documents/Wallpapers"
|
||||||
|
|||||||
54
packages/zed-editor/default.nix
Normal file
54
packages/zed-editor/default.nix
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
{pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.file."/home/nico/.config/zed/settings.json" = {
|
||||||
|
source = ./settings.json;
|
||||||
|
};
|
||||||
|
programs.zed-editor = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
# ## This populates the userSettings "auto_install_extensions"
|
||||||
|
# extensions = ["nix" "Catppuccin"];
|
||||||
|
#
|
||||||
|
# ## everything inside of these brackets are Zed options.
|
||||||
|
# userSettings = {
|
||||||
|
# assistant = {
|
||||||
|
# enabled = false;
|
||||||
|
# };
|
||||||
|
#
|
||||||
|
# hour_format = "hour24";
|
||||||
|
# auto_update = false;
|
||||||
|
# lsp = {
|
||||||
|
# rust-analyzer = {
|
||||||
|
# binary = {
|
||||||
|
# path_lookup = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# nix = {
|
||||||
|
# binary = {
|
||||||
|
# path_lookup = true;
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# languages = {
|
||||||
|
# };
|
||||||
|
#
|
||||||
|
# vim_mode = true;
|
||||||
|
# ## tell zed to use direnv and direnv can use a flake.nix enviroment.
|
||||||
|
# load_direnv = "shell_hook";
|
||||||
|
# base_keymap = "VSCode";
|
||||||
|
# theme = {
|
||||||
|
# mode = "dark";
|
||||||
|
# light = "Catppuccin frappe";
|
||||||
|
# dark = "Catppuccin mocha";
|
||||||
|
# };
|
||||||
|
# show_whitespaces = "all" ;
|
||||||
|
# ui_font_size = 16;
|
||||||
|
# buffer_font_size = 16;
|
||||||
|
#
|
||||||
|
# };
|
||||||
|
#
|
||||||
|
# };
|
||||||
|
}
|
||||||
57
packages/zed-editor/settings.json
Normal file
57
packages/zed-editor/settings.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"diagnostics": {
|
||||||
|
"include_warnings": true,
|
||||||
|
"inline": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"git": {
|
||||||
|
"inline_blame": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ssh_connections": [
|
||||||
|
{
|
||||||
|
"host": "localhost",
|
||||||
|
"projects": [
|
||||||
|
{
|
||||||
|
"paths": [
|
||||||
|
"/home/dev/ids/prog"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"agent": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"auto_update": false,
|
||||||
|
"base_keymap": "VSCode",
|
||||||
|
"buffer_font_size": 16,
|
||||||
|
"hour_format": "hour24",
|
||||||
|
"languages": {},
|
||||||
|
"load_direnv": "shell_hook",
|
||||||
|
"lsp": {
|
||||||
|
"nix": {
|
||||||
|
"binary": {
|
||||||
|
"path_lookup": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-analyzer": {
|
||||||
|
"binary": {
|
||||||
|
"path_lookup": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"show_whitespaces": "all",
|
||||||
|
"theme": {
|
||||||
|
"dark": "Catppuccin Mocha",
|
||||||
|
"light": "Catppuccin frappe",
|
||||||
|
"mode": "system"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"edit_prediction_provider": "none"
|
||||||
|
},
|
||||||
|
"ui_font_size": 16,
|
||||||
|
"vim_mode": true
|
||||||
|
}
|
||||||
198
shells/arduino/flake.nix
Normal file
198
shells/arduino/flake.nix
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
{
|
||||||
|
description = "PlatformIO Development Environment with VSCodium";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = import <nixpkgs> { inherit system; };
|
||||||
|
|
||||||
|
platformioVsix = pkgs.fetchurl {
|
||||||
|
url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/platformio/vsextensions/platformio-ide/3.3.4/vspackage?targetPlatform=linux-x64";
|
||||||
|
sha256 = "sha256-Ri5TZDxSsW1cW33Rh+l/5Fxl23MNzFEjcFGLDx/xzT8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchedExtension = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "platformio-ide-patched";
|
||||||
|
src = platformioVsix;
|
||||||
|
buildInputs = [ pkgs.jq pkgs.unzip pkgs.gzip ];
|
||||||
|
unpackCmd = ''
|
||||||
|
gzip -d < $src > temp.zip
|
||||||
|
unzip temp.zip
|
||||||
|
rm temp.zip
|
||||||
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
jq '.extensionDependencies = [] |
|
||||||
|
.["platformio-ide.useBuiltinPIOCore"].default = false |
|
||||||
|
.["platformio-ide.useBuiltinPython"].default = false |
|
||||||
|
.["platformio-ide.forceSystemPIOCore"].default = true |
|
||||||
|
.["platformio-ide.forceSystemPython"].default = true' \
|
||||||
|
package.json > package.json.new
|
||||||
|
mv package.json.new package.json
|
||||||
|
'';
|
||||||
|
installPhase = ''
|
||||||
|
cd ..
|
||||||
|
mkdir -p $out
|
||||||
|
${pkgs.zip}/bin/zip -r $out/platformio-ide.vsix .
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
platformioWrapper = pkgs.writeScriptBin "platformio" ''
|
||||||
|
#!/bin/sh
|
||||||
|
VENV_DIR="''${PLATFORMIO_VENV_DIR:-$HOME/.platformio/penv}"
|
||||||
|
. "$VENV_DIR/bin/activate"
|
||||||
|
exec ${pkgs.platformio}/bin/platformio "$@"
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureVSCodeSettings = ''
|
||||||
|
USER_CONFIG_DIR="''${XDG_CONFIG_HOME:-$HOME/.config}/VSCodium/User"
|
||||||
|
mkdir -p "$USER_CONFIG_DIR"
|
||||||
|
SETTINGS_FILE="$USER_CONFIG_DIR/settings.json"
|
||||||
|
if [ ! -f "$SETTINGS_FILE" ]; then
|
||||||
|
echo '{}' > "$SETTINGS_FILE"
|
||||||
|
fi
|
||||||
|
${pkgs.jq}/bin/jq '. + {
|
||||||
|
"platformio-ide.useBuiltinPIOCore": true,
|
||||||
|
"platformio-ide.useBuiltinPython": false,
|
||||||
|
"platformio-ide.forceSystemPIOCore": false,
|
||||||
|
"platformio-ide.forceSystemPython": true,
|
||||||
|
"platformio-ide.customPATH": "$PATH"
|
||||||
|
}' "$SETTINGS_FILE" > "$SETTINGS_FILE.tmp"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
mv "$SETTINGS_FILE.tmp" "$SETTINGS_FILE"
|
||||||
|
else
|
||||||
|
rm -f "$SETTINGS_FILE.tmp"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
fhsEnv = pkgs.buildFHSEnv {
|
||||||
|
name = "platformio-env";
|
||||||
|
targetPkgs = pkgs: with pkgs; [
|
||||||
|
platformio
|
||||||
|
platformioWrapper
|
||||||
|
python312
|
||||||
|
git
|
||||||
|
vscodium
|
||||||
|
gcc
|
||||||
|
gdb
|
||||||
|
gnumake
|
||||||
|
udev
|
||||||
|
zlib
|
||||||
|
ncurses
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
glibc
|
||||||
|
libusb1
|
||||||
|
openssl
|
||||||
|
tio
|
||||||
|
chromium
|
||||||
|
];
|
||||||
|
profile = ''
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
export PLATFORMIO_CORE_DIR="''${PLATFORMIO_CORE_DIR:-$HOME/.platformio}"
|
||||||
|
export PATH=${platformioWrapper}/bin:$PATH
|
||||||
|
export PATH=${pkgs.python312}/bin:$PATH
|
||||||
|
'';
|
||||||
|
runScript = pkgs.writeScript "platformio-shell" ''
|
||||||
|
export XDG_DATA_HOME="''${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
export PATH=${pkgs.python312}/bin:${platformioWrapper}/bin:$PATH
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
${configureVSCodeSettings}
|
||||||
|
VSCODE_PORTABLE="''${VSCODE_PORTABLE:-$HOME/.vscode-portable}"
|
||||||
|
EXTENSION_DIR="''${VSCODE_PORTABLE}/extensions"
|
||||||
|
mkdir -p "$EXTENSION_DIR"
|
||||||
|
${pkgs.vscodium}/bin/codium --install-extension ${patchedExtension}/platformio-ide.vsix
|
||||||
|
mkdir -p $HOME/.local/bin
|
||||||
|
ln -sf ${platformioWrapper}/bin/platformio $HOME/.local/bin/pio
|
||||||
|
echo "PlatformIO environment ready. PlatformIO Core: $(platformio --version)"
|
||||||
|
echo "Run 'codium .' to open VSCodium in current directory"
|
||||||
|
if [ -f $HOME/.platformio/penv/bin/activate ]; then
|
||||||
|
source $HOME/.platformio/penv/bin/activate
|
||||||
|
fi
|
||||||
|
PS1="Codium-PIO> "
|
||||||
|
exec bash --norc
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# Create a dedicated VSCodium launcher package that accepts arguments
|
||||||
|
codiumLauncher = pkgs.writeScriptBin "launch-codium" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
export XDG_DATA_HOME="''${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
export PATH=${pkgs.python312}/bin:${platformioWrapper}/bin:$PATH
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
${configureVSCodeSettings}
|
||||||
|
VSCODE_PORTABLE="''${VSCODE_PORTABLE:-$HOME/.vscode-portable}"
|
||||||
|
EXTENSION_DIR="''${VSCODE_PORTABLE}/extensions"
|
||||||
|
mkdir -p "$EXTENSION_DIR"
|
||||||
|
${pkgs.vscodium}/bin/codium --install-extension ${patchedExtension}/platformio-ide.vsix
|
||||||
|
mkdir -p $HOME/.local/bin
|
||||||
|
ln -sf ${platformioWrapper}/bin/platformio $HOME/.local/bin/pio
|
||||||
|
|
||||||
|
# Initialize PlatformIO environment if needed
|
||||||
|
if [ ! -f $HOME/.platformio/penv/bin/activate ] && [ -x "$(command -v python3)" ]; then
|
||||||
|
echo "Initializing PlatformIO environment..."
|
||||||
|
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $HOME/.platformio/penv/bin/activate ]; then
|
||||||
|
source $HOME/.platformio/penv/bin/activate
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If no arguments are provided, open the current directory
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
exec ${pkgs.vscodium}/bin/codium .
|
||||||
|
else
|
||||||
|
# Otherwise, pass all arguments to VSCodium
|
||||||
|
exec ${pkgs.vscodium}/bin/codium "$@"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Create an FHS environment specifically for launching VSCodium
|
||||||
|
codiumFhsEnv = pkgs.buildFHSEnv {
|
||||||
|
name = "codium-launcher";
|
||||||
|
targetPkgs = pkgs: with pkgs; [
|
||||||
|
platformio
|
||||||
|
platformioWrapper
|
||||||
|
python312
|
||||||
|
git
|
||||||
|
vscodium
|
||||||
|
gcc
|
||||||
|
gdb
|
||||||
|
gnumake
|
||||||
|
udev
|
||||||
|
zlib
|
||||||
|
ncurses
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
glibc
|
||||||
|
libusb1
|
||||||
|
openssl
|
||||||
|
codiumLauncher
|
||||||
|
tio
|
||||||
|
];
|
||||||
|
profile = ''
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
export PLATFORMIO_CORE_DIR="''${PLATFORMIO_CORE_DIR:-$HOME/.platformio}"
|
||||||
|
export PATH=${platformioWrapper}/bin:$PATH
|
||||||
|
export PATH=${pkgs.python312}/bin:$PATH
|
||||||
|
'';
|
||||||
|
# Pass all arguments received to the launch-codium script
|
||||||
|
runScript = pkgs.writeScript "codium-launch-wrapper" ''
|
||||||
|
exec ${codiumLauncher}/bin/launch-codium "$@"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.${system} = {
|
||||||
|
default = fhsEnv.env;
|
||||||
|
codium = codiumFhsEnv.env;
|
||||||
|
};
|
||||||
|
|
||||||
|
packages.${system} = {
|
||||||
|
default = fhsEnv;
|
||||||
|
platformioExtension = patchedExtension;
|
||||||
|
codium = codiumFhsEnv;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
198
shells/flalingo/arduino/flake.nix
Normal file
198
shells/flalingo/arduino/flake.nix
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
{
|
||||||
|
description = "PlatformIO Development Environment with VSCodium";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = import <nixpkgs> { inherit system; };
|
||||||
|
|
||||||
|
platformioVsix = pkgs.fetchurl {
|
||||||
|
url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/platformio/vsextensions/platformio-ide/3.3.4/vspackage?targetPlatform=linux-x64";
|
||||||
|
sha256 = "sha256-Ri5TZDxSsW1cW33Rh+l/5Fxl23MNzFEjcFGLDx/xzT8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchedExtension = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "platformio-ide-patched";
|
||||||
|
src = platformioVsix;
|
||||||
|
buildInputs = [ pkgs.jq pkgs.unzip pkgs.gzip ];
|
||||||
|
unpackCmd = ''
|
||||||
|
gzip -d < $src > temp.zip
|
||||||
|
unzip temp.zip
|
||||||
|
rm temp.zip
|
||||||
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
jq '.extensionDependencies = [] |
|
||||||
|
.["platformio-ide.useBuiltinPIOCore"].default = false |
|
||||||
|
.["platformio-ide.useBuiltinPython"].default = false |
|
||||||
|
.["platformio-ide.forceSystemPIOCore"].default = true |
|
||||||
|
.["platformio-ide.forceSystemPython"].default = true' \
|
||||||
|
package.json > package.json.new
|
||||||
|
mv package.json.new package.json
|
||||||
|
'';
|
||||||
|
installPhase = ''
|
||||||
|
cd ..
|
||||||
|
mkdir -p $out
|
||||||
|
${pkgs.zip}/bin/zip -r $out/platformio-ide.vsix .
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
platformioWrapper = pkgs.writeScriptBin "platformio" ''
|
||||||
|
#!/bin/sh
|
||||||
|
VENV_DIR="''${PLATFORMIO_VENV_DIR:-$HOME/.platformio/penv}"
|
||||||
|
. "$VENV_DIR/bin/activate"
|
||||||
|
exec ${pkgs.platformio}/bin/platformio "$@"
|
||||||
|
'';
|
||||||
|
|
||||||
|
configureVSCodeSettings = ''
|
||||||
|
USER_CONFIG_DIR="''${XDG_CONFIG_HOME:-$HOME/.config}/VSCodium/User"
|
||||||
|
mkdir -p "$USER_CONFIG_DIR"
|
||||||
|
SETTINGS_FILE="$USER_CONFIG_DIR/settings.json"
|
||||||
|
if [ ! -f "$SETTINGS_FILE" ]; then
|
||||||
|
echo '{}' > "$SETTINGS_FILE"
|
||||||
|
fi
|
||||||
|
${pkgs.jq}/bin/jq '. + {
|
||||||
|
"platformio-ide.useBuiltinPIOCore": true,
|
||||||
|
"platformio-ide.useBuiltinPython": false,
|
||||||
|
"platformio-ide.forceSystemPIOCore": false,
|
||||||
|
"platformio-ide.forceSystemPython": true,
|
||||||
|
"platformio-ide.customPATH": "$PATH"
|
||||||
|
}' "$SETTINGS_FILE" > "$SETTINGS_FILE.tmp"
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
mv "$SETTINGS_FILE.tmp" "$SETTINGS_FILE"
|
||||||
|
else
|
||||||
|
rm -f "$SETTINGS_FILE.tmp"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
fhsEnv = pkgs.buildFHSEnv {
|
||||||
|
name = "platformio-env";
|
||||||
|
targetPkgs = pkgs: with pkgs; [
|
||||||
|
platformio
|
||||||
|
platformioWrapper
|
||||||
|
python312
|
||||||
|
git
|
||||||
|
vscodium
|
||||||
|
gcc
|
||||||
|
gdb
|
||||||
|
gnumake
|
||||||
|
udev
|
||||||
|
zlib
|
||||||
|
ncurses
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
glibc
|
||||||
|
libusb1
|
||||||
|
openssl
|
||||||
|
tio
|
||||||
|
chromium
|
||||||
|
];
|
||||||
|
profile = ''
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
export PLATFORMIO_CORE_DIR="''${PLATFORMIO_CORE_DIR:-$HOME/.platformio}"
|
||||||
|
export PATH=${platformioWrapper}/bin:$PATH
|
||||||
|
export PATH=${pkgs.python312}/bin:$PATH
|
||||||
|
'';
|
||||||
|
runScript = pkgs.writeScript "platformio-shell" ''
|
||||||
|
export XDG_DATA_HOME="''${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
export PATH=${pkgs.python312}/bin:${platformioWrapper}/bin:$PATH
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
${configureVSCodeSettings}
|
||||||
|
VSCODE_PORTABLE="''${VSCODE_PORTABLE:-$HOME/.vscode-portable}"
|
||||||
|
EXTENSION_DIR="''${VSCODE_PORTABLE}/extensions"
|
||||||
|
mkdir -p "$EXTENSION_DIR"
|
||||||
|
${pkgs.vscodium}/bin/codium --install-extension ${patchedExtension}/platformio-ide.vsix
|
||||||
|
mkdir -p $HOME/.local/bin
|
||||||
|
ln -sf ${platformioWrapper}/bin/platformio $HOME/.local/bin/pio
|
||||||
|
echo "PlatformIO environment ready. PlatformIO Core: $(platformio --version)"
|
||||||
|
echo "Run 'codium .' to open VSCodium in current directory"
|
||||||
|
if [ -f $HOME/.platformio/penv/bin/activate ]; then
|
||||||
|
source $HOME/.platformio/penv/bin/activate
|
||||||
|
fi
|
||||||
|
PS1="Codium-PIO> "
|
||||||
|
exec bash --norc
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# Create a dedicated VSCodium launcher package that accepts arguments
|
||||||
|
codiumLauncher = pkgs.writeScriptBin "launch-codium" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
export XDG_DATA_HOME="''${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
export PATH=${pkgs.python312}/bin:${platformioWrapper}/bin:$PATH
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
${configureVSCodeSettings}
|
||||||
|
VSCODE_PORTABLE="''${VSCODE_PORTABLE:-$HOME/.vscode-portable}"
|
||||||
|
EXTENSION_DIR="''${VSCODE_PORTABLE}/extensions"
|
||||||
|
mkdir -p "$EXTENSION_DIR"
|
||||||
|
${pkgs.vscodium}/bin/codium --install-extension ${patchedExtension}/platformio-ide.vsix
|
||||||
|
mkdir -p $HOME/.local/bin
|
||||||
|
ln -sf ${platformioWrapper}/bin/platformio $HOME/.local/bin/pio
|
||||||
|
|
||||||
|
# Initialize PlatformIO environment if needed
|
||||||
|
if [ ! -f $HOME/.platformio/penv/bin/activate ] && [ -x "$(command -v python3)" ]; then
|
||||||
|
echo "Initializing PlatformIO environment..."
|
||||||
|
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $HOME/.platformio/penv/bin/activate ]; then
|
||||||
|
source $HOME/.platformio/penv/bin/activate
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If no arguments are provided, open the current directory
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
exec ${pkgs.vscodium}/bin/codium .
|
||||||
|
else
|
||||||
|
# Otherwise, pass all arguments to VSCodium
|
||||||
|
exec ${pkgs.vscodium}/bin/codium "$@"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Create an FHS environment specifically for launching VSCodium
|
||||||
|
codiumFhsEnv = pkgs.buildFHSEnv {
|
||||||
|
name = "codium-launcher";
|
||||||
|
targetPkgs = pkgs: with pkgs; [
|
||||||
|
platformio
|
||||||
|
platformioWrapper
|
||||||
|
python312
|
||||||
|
git
|
||||||
|
vscodium
|
||||||
|
gcc
|
||||||
|
gdb
|
||||||
|
gnumake
|
||||||
|
udev
|
||||||
|
zlib
|
||||||
|
ncurses
|
||||||
|
stdenv.cc.cc.lib
|
||||||
|
glibc
|
||||||
|
libusb1
|
||||||
|
openssl
|
||||||
|
codiumLauncher
|
||||||
|
tio
|
||||||
|
];
|
||||||
|
profile = ''
|
||||||
|
export PYTHONPATH=${pkgs.platformio}/lib/python3.12/site-packages:$PYTHONPATH
|
||||||
|
export PLATFORMIO_CORE_DIR="''${PLATFORMIO_CORE_DIR:-$HOME/.platformio}"
|
||||||
|
export PATH=${platformioWrapper}/bin:$PATH
|
||||||
|
export PATH=${pkgs.python312}/bin:$PATH
|
||||||
|
'';
|
||||||
|
# Pass all arguments received to the launch-codium script
|
||||||
|
runScript = pkgs.writeScript "codium-launch-wrapper" ''
|
||||||
|
exec ${codiumLauncher}/bin/launch-codium "$@"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.${system} = {
|
||||||
|
default = fhsEnv.env;
|
||||||
|
codium = codiumFhsEnv.env;
|
||||||
|
};
|
||||||
|
|
||||||
|
packages.${system} = {
|
||||||
|
default = fhsEnv;
|
||||||
|
platformioExtension = patchedExtension;
|
||||||
|
codium = codiumFhsEnv;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
103
shells/flalingo/devenv.lock
Normal file
103
shells/flalingo/devenv.lock
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"devenv": {
|
||||||
|
"locked": {
|
||||||
|
"dir": "src/modules",
|
||||||
|
"lastModified": 1761343822,
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "devenv",
|
||||||
|
"rev": "679d2951cee2d09da3c732d00b320ce752d21ee0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "src/modules",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "devenv",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-compat": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1747046372,
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"git-hooks": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
|
"gitignore": "gitignore",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1760663237,
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"rev": "ca5b894d3e3e151ffc1db040b6ce4dcc75d31c37",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitignore": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"git-hooks",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "gitignore.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1758532697,
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "devenv-nixpkgs",
|
||||||
|
"rev": "207a4cb0e1253c7658c6736becc6eb9cace1f25f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"ref": "rolling",
|
||||||
|
"repo": "devenv-nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"devenv": "devenv",
|
||||||
|
"git-hooks": "git-hooks",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"pre-commit-hooks": [
|
||||||
|
"git-hooks"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
24
shells/flalingo/devenv.nix
Normal file
24
shells/flalingo/devenv.nix
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
# https://devenv.sh/languages/
|
||||||
|
languages = {
|
||||||
|
rust.enable = true;
|
||||||
|
javascript.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# https://devenv.sh/packages/
|
||||||
|
packages = [
|
||||||
|
pkgs.nodejs
|
||||||
|
pkgs.yarn
|
||||||
|
pkgs.wabt # Wasm dependencies for Tauri
|
||||||
|
# pkgs.webkitgtk # Linux Tauri dependency (Webview2 is the one used on Widnows)
|
||||||
|
];
|
||||||
|
|
||||||
|
# See full reference at https://devenv.sh/reference/options/
|
||||||
|
}
|
||||||
|
|
||||||
15
shells/flalingo/devenv.yaml
Normal file
15
shells/flalingo/devenv.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
|
||||||
|
inputs:
|
||||||
|
nixpkgs:
|
||||||
|
url: github:cachix/devenv-nixpkgs/rolling
|
||||||
|
|
||||||
|
# If you're using non-OSS software, you can set allowUnfree to true.
|
||||||
|
# allowUnfree: true
|
||||||
|
|
||||||
|
# If you're willing to use a package that's vulnerable
|
||||||
|
# permittedInsecurePackages:
|
||||||
|
# - "openssl-1.1.1w"
|
||||||
|
|
||||||
|
# If you have more than one devenv you can merge them
|
||||||
|
#imports:
|
||||||
|
# - ./backend
|
||||||
100
shells/flalingo/flake.lock
generated
Normal file
100
shells/flalingo/flake.lock
generated
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"fenix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1756795219,
|
||||||
|
"narHash": "sha256-tKBQtz1JLKWrCJUxVkHKR+YKmVpm0KZdJdPWmR2slQ8=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "fenix",
|
||||||
|
"rev": "80dbdab137f2809e3c823ed027e1665ce2502d74",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "fenix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1756819007,
|
||||||
|
"narHash": "sha256-12V64nKG/O/guxSYnr5/nq1EfqwJCdD2+cIGmhz3nrE=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "aaff8c16d7fc04991cac6245bee1baa31f72b1e1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"fenix": "fenix",
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-analyzer-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1756597274,
|
||||||
|
"narHash": "sha256-wfaKRKsEVQDB7pQtAt04vRgFphkVscGRpSx3wG1l50E=",
|
||||||
|
"owner": "rust-lang",
|
||||||
|
"repo": "rust-analyzer",
|
||||||
|
"rev": "21614ed2d3279a9aa1f15c88d293e65a98991b30",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rust-lang",
|
||||||
|
"ref": "nightly",
|
||||||
|
"repo": "rust-analyzer",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
111
shells/flalingo/flake.nix
Normal file
111
shells/flalingo/flake.nix
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
fenix.url = "github:nix-community/fenix";
|
||||||
|
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
fenix,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
system = system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
# config.android_sdk.accept_license = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# android_sdk =
|
||||||
|
# (pkgs.androidenv.composeAndroidPackages {
|
||||||
|
# platformVersions = ["34"];
|
||||||
|
# ndkVersions = ["26.3.11579264"];
|
||||||
|
# includeNDK = true;
|
||||||
|
# useGoogleAPIs = false;
|
||||||
|
# useGoogleTVAddOns = false;
|
||||||
|
# includeEmulator = false;
|
||||||
|
# includeSystemImages = false;
|
||||||
|
# includeSources = false;
|
||||||
|
# })
|
||||||
|
# .androidsdk;
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
pkg-config
|
||||||
|
|
||||||
|
nodejs_20
|
||||||
|
# typescript-language-server
|
||||||
|
# vtsls
|
||||||
|
# vue-language-server
|
||||||
|
|
||||||
|
zed-editor
|
||||||
|
# (vscode-with-extensions.override {
|
||||||
|
# # vscode = vscodium;
|
||||||
|
# vscodeExtensions = with vscode-extensions; [
|
||||||
|
# vscodevim.vim
|
||||||
|
# vue.volar
|
||||||
|
# catppuccin.catppuccin-vsc
|
||||||
|
# github.copilot
|
||||||
|
# github.copilot-chat
|
||||||
|
# tauri-apps.tauri-vscode
|
||||||
|
# rust-lang.rust-analyzer
|
||||||
|
# ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
# # {
|
||||||
|
# # name = "vscode-arduino-community";
|
||||||
|
# # publisher = "vscode-arduino";
|
||||||
|
# # version = "0.7.2";
|
||||||
|
# # sha256 = "/HdPJ6LBnyPhz7jeJ0MLRXO2L3bcAzM7J65nKsXsacY=";
|
||||||
|
# # }
|
||||||
|
# ];
|
||||||
|
# })
|
||||||
|
|
||||||
|
(with fenix.packages.${system};
|
||||||
|
combine [
|
||||||
|
complete.rustc
|
||||||
|
complete.cargo
|
||||||
|
complete.clippy
|
||||||
|
# targets.aarch64-linux-android.latest.rust-std
|
||||||
|
# targets.armv7-linux-androideabi.latest.rust-std
|
||||||
|
# targets.i686-linux-android.latest.rust-std
|
||||||
|
targets.x86_64-linux-android.latest.rust-std
|
||||||
|
])
|
||||||
|
rust-analyzer
|
||||||
|
sqlx-cli
|
||||||
|
|
||||||
|
# android_sdk
|
||||||
|
jdk
|
||||||
|
];
|
||||||
|
|
||||||
|
libraries = with pkgs; [
|
||||||
|
gtk3
|
||||||
|
libsoup_3
|
||||||
|
webkitgtk_4_1
|
||||||
|
cairo
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
dbus
|
||||||
|
openssl
|
||||||
|
librsvg
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
devShell = pkgs.mkShell {
|
||||||
|
buildInputs = packages ++ libraries;
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH";
|
||||||
|
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS";
|
||||||
|
# ANDROID_HOME = "${android_sdk}/libexec/android-sdk";
|
||||||
|
# NDK_HOME = "${android_sdk}/libexec/android-sdk/ndk/26.3.11579264";
|
||||||
|
# GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${android_sdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
43
shells/flalingo/flutter/flake.nix
Normal file
43
shells/flalingo/flutter/flake.nix
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
description = "Flutter 3.13.x";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config = {
|
||||||
|
android_sdk.accept_license = true;
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||||||
|
buildToolsVersions = [ "28.0.3" "34.0.0" ];
|
||||||
|
platformVersions = [ "34" "35" "33" ];
|
||||||
|
includeNDK = true;
|
||||||
|
ndkVersions = ["26.3.11579264"];
|
||||||
|
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
|
||||||
|
cmakeVersions = [ "3.22.1" ];
|
||||||
|
};
|
||||||
|
androidSdk = androidComposition.androidsdk;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
||||||
|
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
|
||||||
|
buildInputs = [
|
||||||
|
flutter
|
||||||
|
androidSdk # The customized SDK that we've made above
|
||||||
|
jdk17
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
109
shells/flalingo/flutter/flake.nix.bk
Normal file
109
shells/flalingo/flutter/flake.nix.bk
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||||
|
|
||||||
|
flake-parts = {
|
||||||
|
url = "github:hercules-ci/flake-parts";
|
||||||
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
android-nixpkgs.url = "github:tadfisher/android-nixpkgs";
|
||||||
|
|
||||||
|
cursor.url = "github:omarcresp/cursor-flake/main";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-parts,
|
||||||
|
cursor,
|
||||||
|
...
|
||||||
|
} @ inputs:
|
||||||
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
|
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
|
perSystem = {
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
devShells.default = let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
android_sdk.accept_license = true;
|
||||||
|
};
|
||||||
|
overlays = [];
|
||||||
|
};
|
||||||
|
android-nixpkgs = pkgs.callPackage inputs.android-nixpkgs {};
|
||||||
|
androidSdk = android-nixpkgs.sdk (sdkPkgs:
|
||||||
|
with sdkPkgs; [
|
||||||
|
cmdline-tools-latest
|
||||||
|
build-tools-34-0-0
|
||||||
|
build-tools-30-0-3
|
||||||
|
platform-tools
|
||||||
|
platforms-android-35
|
||||||
|
platforms-android-34
|
||||||
|
platforms-android-33
|
||||||
|
platforms-android-31
|
||||||
|
platforms-android-30
|
||||||
|
ndk-26-3-11579264
|
||||||
|
cmake-3-22-1
|
||||||
|
]);
|
||||||
|
PWD = builtins.getEnv "PWD";
|
||||||
|
patchedFlutter = pkgs.flutter.override (prev: rec {
|
||||||
|
flutter = prev.flutter.overrideAttrs (prevAttrs: {
|
||||||
|
patches = prevAttrs.patches ++ [
|
||||||
|
# This patch is needed to avoid the Kotlin Gradle plugin writing to the store.
|
||||||
|
(pkgs.writeText "kotlin-fix.patch" ''
|
||||||
|
--- a/packages/flutter_tools/gradle/build.gradle.kts
|
||||||
|
+++ b/packages/flutter_tools/gradle/build.gradle.kts
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
|
+gradle.startParameter.projectCacheDir = layout.buildDirectory.dir("cache").get().asFile
|
||||||
|
+
|
||||||
|
plugins {
|
||||||
|
`java-gradle-plugin`
|
||||||
|
groovy
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
passthru = prevAttrs.passthru // {
|
||||||
|
sdk = flutter;
|
||||||
|
};
|
||||||
|
# postInstall = (prevAttrs.postInstall or "") + ''
|
||||||
|
# mkdir -p $out/bin/cache
|
||||||
|
# touch $out/bin/cache/engine.realm
|
||||||
|
# '';
|
||||||
|
});
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
||||||
|
ANDROID_NDK_ROOT = "${androidSdk}/libexec/android-sdk/ndk-bundle";
|
||||||
|
ANDROID_AVD_HOME = "${PWD}/.android/avd";
|
||||||
|
ANDROID_HOME = "${androidSdk}/libexec/android-sdk";
|
||||||
|
FLUTTER_SDK = "${patchedFlutter}";
|
||||||
|
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/34.0.0/aapt2";
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
patchedFlutter
|
||||||
|
jdk17
|
||||||
|
androidSdk
|
||||||
|
clang
|
||||||
|
dart
|
||||||
|
cmake
|
||||||
|
android-tools
|
||||||
|
cursor.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
# formatter = pkgs.alejandra;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
32
shells/flalingo/go/flake.nix
Normal file
32
shells/flalingo/go/flake.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
description = "GO";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
# ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
||||||
|
GOPATH="${go}";
|
||||||
|
buildInputs = [
|
||||||
|
go
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
53
shells/flalingo/linguacafe/flake.nix
Normal file
53
shells/flalingo/linguacafe/flake.nix
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
description = "Everything for linguacafe <3";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
cursor.url = "github:omarcresp/cursor-flake/main";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils, cursor }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
config.allowUnfree = true;
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
buildInputs = [
|
||||||
|
vue-language-server
|
||||||
|
cursor.packages.${pkgs.system}.default
|
||||||
|
php
|
||||||
|
|
||||||
|
(vscode-with-extensions.override {
|
||||||
|
# vscode = vscodium;
|
||||||
|
vscodeExtensions = with vscode-extensions; [
|
||||||
|
vscodevim.vim
|
||||||
|
vue.volar
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
github.copilot
|
||||||
|
github.copilot-chat
|
||||||
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
# {
|
||||||
|
# name = "vscode-arduino-community";
|
||||||
|
# publisher = "vscode-arduino";
|
||||||
|
# version = "0.7.2";
|
||||||
|
# sha256 = "/HdPJ6LBnyPhz7jeJ0MLRXO2L3bcAzM7J65nKsXsacY=";
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
33
shells/flalingo/luckyshroom/flake.nix
Normal file
33
shells/flalingo/luckyshroom/flake.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
description = "Love you";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
cursor.url = "github:omarcresp/cursor-flake/main";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils, cursor }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
buildInputs = [
|
||||||
|
love
|
||||||
|
cursor.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
73
shells/flalingo/rust/flake.nix
Normal file
73
shells/flalingo/rust/flake.nix
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
description = "Rust development environment";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
# Read the file relative to the flake's root
|
||||||
|
# overrides = (builtins.fromTOML (builtins.readFile (self + "/rust-toolchain.toml")));
|
||||||
|
libPath = with pkgs; lib.makeLibraryPath [
|
||||||
|
# load external libraries that you need in your rust project here
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.default = pkgs.mkShell rec {
|
||||||
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
clang
|
||||||
|
llvmPackages.bintools
|
||||||
|
rustup
|
||||||
|
dioxus-cli
|
||||||
|
webkitgtk_4_1
|
||||||
|
wasm-pack
|
||||||
|
wasm-bindgen-cli
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
file
|
||||||
|
openssl
|
||||||
|
gtk3
|
||||||
|
librsvg
|
||||||
|
xdotool
|
||||||
|
];
|
||||||
|
|
||||||
|
# RUSTC_VERSION = overrides.toolchain.channel;
|
||||||
|
|
||||||
|
# https://github.com/rust-lang/rust-bindgen#environment-variables
|
||||||
|
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
|
||||||
|
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-x86_64-unknown-linux-gnu/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Add precompiled library to rustc search path
|
||||||
|
RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [
|
||||||
|
# add libraries here (e.g. pkgs.libvmi)
|
||||||
|
]);
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (buildInputs ++ nativeBuildInputs);
|
||||||
|
|
||||||
|
|
||||||
|
# Add glibc, clang, glib, and other headers to bindgen search path
|
||||||
|
BINDGEN_EXTRA_CLANG_ARGS =
|
||||||
|
# Includes normal include path
|
||||||
|
(builtins.map (a: ''-I"${a}/include"'') [
|
||||||
|
# add dev libraries here (e.g. pkgs.libvmi.dev)
|
||||||
|
pkgs.glibc.dev
|
||||||
|
])
|
||||||
|
# Includes with special directory paths
|
||||||
|
++ [
|
||||||
|
''-I"${pkgs.llvmPackages_latest.libclang.lib}/lib/clang/${pkgs.llvmPackages_latest.libclang.version}/include"''
|
||||||
|
''-I"${pkgs.glib.dev}/include/glib-2.0"''
|
||||||
|
''-I${pkgs.glib.out}/lib/glib-2.0/include/''
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
61
shells/flutter/flake.lock
generated
61
shells/flutter/flake.lock
generated
@@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1710146030,
|
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1721138476,
|
|
||||||
"narHash": "sha256-+W5eZOhhemLQxelojLxETfbFbc19NWawsXBlapYpqIA=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "ad0b5eed1b6031efaed382844806550c3dcb4206",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
@@ -14,11 +14,13 @@ outputs = { self, nixpkgs, flake-utils }:
|
|||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
buildToolsVersion = "34.0.0";
|
|
||||||
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
androidComposition = pkgs.androidenv.composeAndroidPackages {
|
||||||
buildToolsVersions = [ buildToolsVersion "28.0.3" ];
|
buildToolsVersions = [ "28.0.3" "34.0.0" ];
|
||||||
platformVersions = [ "34" "28" ];
|
platformVersions = [ "34" "35" "33" ];
|
||||||
|
includeNDK = true;
|
||||||
|
ndkVersions = ["26.3.11579264"];
|
||||||
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
|
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
|
||||||
|
cmakeVersions = [ "3.22.1" ];
|
||||||
};
|
};
|
||||||
androidSdk = androidComposition.androidsdk;
|
androidSdk = androidComposition.androidsdk;
|
||||||
in
|
in
|
||||||
@@ -26,23 +28,16 @@ outputs = { self, nixpkgs, flake-utils }:
|
|||||||
devShell =
|
devShell =
|
||||||
with pkgs; mkShell rec {
|
with pkgs; mkShell rec {
|
||||||
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
||||||
|
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
flutter
|
flutter
|
||||||
androidSdk # The customized SDK that we've made above
|
androidSdk # The customized SDK that we've made above
|
||||||
jdk17
|
jdk17
|
||||||
|
|
||||||
|
|
||||||
(vscode-with-extensions.override {
|
|
||||||
vscode = vscodium;
|
|
||||||
vscodeExtensions = with vscode-extensions; [
|
|
||||||
vscodevim.vim
|
|
||||||
dart-code.flutter
|
|
||||||
jnoortheen.nix-ide
|
|
||||||
];
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
exit
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
109
shells/flutter/flake.nix.bk
Normal file
109
shells/flutter/flake.nix.bk
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||||
|
|
||||||
|
flake-parts = {
|
||||||
|
url = "github:hercules-ci/flake-parts";
|
||||||
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
android-nixpkgs.url = "github:tadfisher/android-nixpkgs";
|
||||||
|
|
||||||
|
cursor.url = "github:omarcresp/cursor-flake/main";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-parts,
|
||||||
|
cursor,
|
||||||
|
...
|
||||||
|
} @ inputs:
|
||||||
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
|
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
|
perSystem = {
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
devShells.default = let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
android_sdk.accept_license = true;
|
||||||
|
};
|
||||||
|
overlays = [];
|
||||||
|
};
|
||||||
|
android-nixpkgs = pkgs.callPackage inputs.android-nixpkgs {};
|
||||||
|
androidSdk = android-nixpkgs.sdk (sdkPkgs:
|
||||||
|
with sdkPkgs; [
|
||||||
|
cmdline-tools-latest
|
||||||
|
build-tools-34-0-0
|
||||||
|
build-tools-30-0-3
|
||||||
|
platform-tools
|
||||||
|
platforms-android-35
|
||||||
|
platforms-android-34
|
||||||
|
platforms-android-33
|
||||||
|
platforms-android-31
|
||||||
|
platforms-android-30
|
||||||
|
ndk-26-3-11579264
|
||||||
|
cmake-3-22-1
|
||||||
|
]);
|
||||||
|
PWD = builtins.getEnv "PWD";
|
||||||
|
patchedFlutter = pkgs.flutter.override (prev: rec {
|
||||||
|
flutter = prev.flutter.overrideAttrs (prevAttrs: {
|
||||||
|
patches = prevAttrs.patches ++ [
|
||||||
|
# This patch is needed to avoid the Kotlin Gradle plugin writing to the store.
|
||||||
|
(pkgs.writeText "kotlin-fix.patch" ''
|
||||||
|
--- a/packages/flutter_tools/gradle/build.gradle.kts
|
||||||
|
+++ b/packages/flutter_tools/gradle/build.gradle.kts
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
|
+gradle.startParameter.projectCacheDir = layout.buildDirectory.dir("cache").get().asFile
|
||||||
|
+
|
||||||
|
plugins {
|
||||||
|
`java-gradle-plugin`
|
||||||
|
groovy
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
passthru = prevAttrs.passthru // {
|
||||||
|
sdk = flutter;
|
||||||
|
};
|
||||||
|
# postInstall = (prevAttrs.postInstall or "") + ''
|
||||||
|
# mkdir -p $out/bin/cache
|
||||||
|
# touch $out/bin/cache/engine.realm
|
||||||
|
# '';
|
||||||
|
});
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
||||||
|
ANDROID_NDK_ROOT = "${androidSdk}/libexec/android-sdk/ndk-bundle";
|
||||||
|
ANDROID_AVD_HOME = "${PWD}/.android/avd";
|
||||||
|
ANDROID_HOME = "${androidSdk}/libexec/android-sdk";
|
||||||
|
FLUTTER_SDK = "${patchedFlutter}";
|
||||||
|
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/34.0.0/aapt2";
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
patchedFlutter
|
||||||
|
jdk17
|
||||||
|
androidSdk
|
||||||
|
clang
|
||||||
|
dart
|
||||||
|
cmake
|
||||||
|
android-tools
|
||||||
|
cursor.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
# formatter = pkgs.alejandra;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
32
shells/go/flake.nix
Normal file
32
shells/go/flake.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
description = "GO";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
# ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
|
||||||
|
GOPATH="${go}";
|
||||||
|
buildInputs = [
|
||||||
|
go
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
53
shells/linguacafe/flake.nix
Normal file
53
shells/linguacafe/flake.nix
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
description = "Everything for linguacafe <3";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
cursor.url = "github:omarcresp/cursor-flake/main";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils, cursor }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
config.allowUnfree = true;
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
buildInputs = [
|
||||||
|
vue-language-server
|
||||||
|
cursor.packages.${pkgs.system}.default
|
||||||
|
php
|
||||||
|
|
||||||
|
(vscode-with-extensions.override {
|
||||||
|
# vscode = vscodium;
|
||||||
|
vscodeExtensions = with vscode-extensions; [
|
||||||
|
vscodevim.vim
|
||||||
|
vue.volar
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
github.copilot
|
||||||
|
github.copilot-chat
|
||||||
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
# {
|
||||||
|
# name = "vscode-arduino-community";
|
||||||
|
# publisher = "vscode-arduino";
|
||||||
|
# version = "0.7.2";
|
||||||
|
# sha256 = "/HdPJ6LBnyPhz7jeJ0MLRXO2L3bcAzM7J65nKsXsacY=";
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
33
shells/luckyshroom/flake.nix
Normal file
33
shells/luckyshroom/flake.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
description = "Love you";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
cursor.url = "github:omarcresp/cursor-flake/main";
|
||||||
|
};
|
||||||
|
outputs = { self, nixpkgs, flake-utils, cursor }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShell =
|
||||||
|
with pkgs; mkShell rec {
|
||||||
|
buildInputs = [
|
||||||
|
love
|
||||||
|
cursor.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
73
shells/rust/flake.nix
Normal file
73
shells/rust/flake.nix
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
description = "Rust development environment";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
# Read the file relative to the flake's root
|
||||||
|
# overrides = (builtins.fromTOML (builtins.readFile (self + "/rust-toolchain.toml")));
|
||||||
|
libPath = with pkgs; lib.makeLibraryPath [
|
||||||
|
# load external libraries that you need in your rust project here
|
||||||
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.default = pkgs.mkShell rec {
|
||||||
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
clang
|
||||||
|
llvmPackages.bintools
|
||||||
|
rustup
|
||||||
|
dioxus-cli
|
||||||
|
webkitgtk_4_1
|
||||||
|
wasm-pack
|
||||||
|
wasm-bindgen-cli
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
file
|
||||||
|
openssl
|
||||||
|
gtk3
|
||||||
|
librsvg
|
||||||
|
xdotool
|
||||||
|
];
|
||||||
|
|
||||||
|
# RUSTC_VERSION = overrides.toolchain.channel;
|
||||||
|
|
||||||
|
# https://github.com/rust-lang/rust-bindgen#environment-variables
|
||||||
|
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export PATH=$PATH:''${CARGO_HOME:-~/.cargo}/bin
|
||||||
|
export PATH=$PATH:''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-x86_64-unknown-linux-gnu/bin/
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Add precompiled library to rustc search path
|
||||||
|
RUSTFLAGS = (builtins.map (a: ''-L ${a}/lib'') [
|
||||||
|
# add libraries here (e.g. pkgs.libvmi)
|
||||||
|
]);
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (buildInputs ++ nativeBuildInputs);
|
||||||
|
|
||||||
|
|
||||||
|
# Add glibc, clang, glib, and other headers to bindgen search path
|
||||||
|
BINDGEN_EXTRA_CLANG_ARGS =
|
||||||
|
# Includes normal include path
|
||||||
|
(builtins.map (a: ''-I"${a}/include"'') [
|
||||||
|
# add dev libraries here (e.g. pkgs.libvmi.dev)
|
||||||
|
pkgs.glibc.dev
|
||||||
|
])
|
||||||
|
# Includes with special directory paths
|
||||||
|
++ [
|
||||||
|
''-I"${pkgs.llvmPackages_latest.libclang.lib}/lib/clang/${pkgs.llvmPackages_latest.libclang.version}/include"''
|
||||||
|
''-I"${pkgs.glib.dev}/include/glib-2.0"''
|
||||||
|
''-I${pkgs.glib.out}/lib/glib-2.0/include/''
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
106
shells/triolingo/flake.nix
Normal file
106
shells/triolingo/flake.nix
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
fenix.url = "github:nix-community/fenix";
|
||||||
|
fenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
fenix,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
system = system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
# config.android_sdk.accept_license = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# android_sdk =
|
||||||
|
# (pkgs.androidenv.composeAndroidPackages {
|
||||||
|
# platformVersions = ["34"];
|
||||||
|
# ndkVersions = ["26.3.11579264"];
|
||||||
|
# includeNDK = true;
|
||||||
|
# useGoogleAPIs = false;
|
||||||
|
# useGoogleTVAddOns = false;
|
||||||
|
# includeEmulator = false;
|
||||||
|
# includeSystemImages = false;
|
||||||
|
# includeSources = false;
|
||||||
|
# })
|
||||||
|
# .androidsdk;
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
curl
|
||||||
|
wget
|
||||||
|
pkg-config
|
||||||
|
|
||||||
|
nodejs_20
|
||||||
|
typescript-language-server
|
||||||
|
|
||||||
|
(vscode-with-extensions.override {
|
||||||
|
# vscode = vscodium;
|
||||||
|
vscodeExtensions = with vscode-extensions; [
|
||||||
|
vscodevim.vim
|
||||||
|
vue.volar
|
||||||
|
catppuccin.catppuccin-vsc
|
||||||
|
github.copilot
|
||||||
|
github.copilot-chat
|
||||||
|
tauri-apps.tauri-vscode
|
||||||
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
# {
|
||||||
|
# name = "vscode-arduino-community";
|
||||||
|
# publisher = "vscode-arduino";
|
||||||
|
# version = "0.7.2";
|
||||||
|
# sha256 = "/HdPJ6LBnyPhz7jeJ0MLRXO2L3bcAzM7J65nKsXsacY=";
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
|
(with fenix.packages.${system};
|
||||||
|
combine [
|
||||||
|
complete.rustc
|
||||||
|
complete.cargo
|
||||||
|
complete.clippy
|
||||||
|
# targets.aarch64-linux-android.latest.rust-std
|
||||||
|
# targets.armv7-linux-androideabi.latest.rust-std
|
||||||
|
# targets.i686-linux-android.latest.rust-std
|
||||||
|
targets.x86_64-linux-android.latest.rust-std
|
||||||
|
])
|
||||||
|
rust-analyzer
|
||||||
|
|
||||||
|
# android_sdk
|
||||||
|
jdk
|
||||||
|
];
|
||||||
|
|
||||||
|
libraries = with pkgs; [
|
||||||
|
gtk3
|
||||||
|
libsoup_3
|
||||||
|
webkitgtk_4_1
|
||||||
|
cairo
|
||||||
|
gdk-pixbuf
|
||||||
|
glib
|
||||||
|
dbus
|
||||||
|
openssl
|
||||||
|
librsvg
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
devShell = pkgs.mkShell {
|
||||||
|
buildInputs = packages ++ libraries;
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
zsh
|
||||||
|
|
||||||
|
exit
|
||||||
|
'';
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH";
|
||||||
|
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS";
|
||||||
|
# ANDROID_HOME = "${android_sdk}/libexec/android-sdk";
|
||||||
|
# NDK_HOME = "${android_sdk}/libexec/android-sdk/ndk/26.3.11579264";
|
||||||
|
# GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${android_sdk}/libexec/android-sdk/build-tools/34.0.0/aapt2";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user