Compare commits

..

16 Commits

Author SHA1 Message Date
Nico
e39404d44d added fuzzel, nvim-tree and updated 2025-09-05 03:13:36 +02:00
Nico
3cb6e5d907 niri update 2025-07-06 20:27:54 +02:00
Nico
5b303353f5 update flutter flakes 2025-06-24 20:37:19 +02:00
Nico
20996e42e1 niri 2025-06-23 17:01:02 +02:00
Nico
936064f3e7 flutter flake update 2025-06-15 19:31:45 +02:00
Nico
32fe50e27c nvim ai 2025-06-15 19:30:41 +02:00
Nico
f85d945337 cleanup, neovim optimizations and updates ig 2025-05-29 14:50:58 +02:00
Nico
6c601333a0 added conform and tiny inline diagnostics to nvim 2025-05-05 20:15:02 +02:00
Nico
9476766bb0 /etc/nixos copied 2025-04-28 23:10:42 +02:00
Nico
ca27831f4a flutter flake 2025-04-28 23:08:49 +02:00
Nico
cdc170770f rights2 2025-04-28 23:07:58 +02:00
Nico
b9e3afef79 hyprland swaync und cliphist & nvim merge + animate 2025-04-09 23:40:11 +02:00
Nico
a764ae7695 no idea 2025-04-07 23:06:16 +02:00
Nico
0b2e29fa76 keyboard based resize in hyprland and waybar 2025-04-01 21:18:15 +02:00
Nico
6419427a05 finish hyprland 2025-04-01 21:04:27 +02:00
Nico
25ab3a589b new installation 2025-04-01 20:06:28 +02:00
80 changed files with 1371 additions and 696 deletions

View File

@@ -1,70 +1,66 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on your system. Help is available
# your system. Help is available in the configuration.nix(5) man page # in the configuration.nix(5) man page and in the NixOS manual (accessible by running nixos-help).
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, ... }:
{ { imports =
imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
];
];
# home manager # home manager
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users = {
"n" = import ./home-nico.nix; "nico" = import ./home-nico.nix;
}; };
}; };
nixpkgs.config.permittedInsecurePackages = [
"electron-33.4.11"
];
# hyprland # hyprland
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
}; };
programs.niri.enable = true; programs.niri.enable = true;
boot.supportedFilesystems = [ "ntfs" ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
security.polkit.enable = true;
nix.settings.trusted-users = [ "root" "n" ];
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.kernelParams = [ "ipv6.disable=1" ];
networking.hostName = "nico-nixos-laptop"; # Define your hostname.
networking.enableIPv6 = false;
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary # fileSystems."mnt/win" = {
# networking.proxy.default = "http://user:password@proxy:port/"; # device = "/dev/sdb1";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # fsType = "ntfs";
# };
# Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary networking.proxy.default =
# "http://user:password@proxy:port/"; networking.proxy.noProxy =
# "127.0.0.1,localhost,internal.domain";
# Enable networking # Enable networking
boot.kernelParams = [ "ipv6.disable=1" ];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
hardware.bluetooth.enable = true; networking.hostName = "nixos"; # Define your hostname.
services.blueman.enable = true; networking.enableIPv6 = false;
services.resolved = { # VM
enable = true; virtualisation.virtualbox.host.enable = true;
}; virtualisation.virtualbox.host.enableExtensionPack = true;
virtualisation.virtualbox.host.enableKvm = true;
services.mullvad-vpn.enable = true; virtualisation.virtualbox.host.addNetworkInterface = false;
services.teamviewer.enable = true; users.extraGroups.vboxusers.members = [ "nico" ];
# virtualisation.virtualbox.guest.enable = true;
# virtualisation.virtualbox.guest.dragAndDrop = true;
virtualisation.docker.enable = true;
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
@@ -72,155 +68,119 @@
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = { i18n.extraLocaleSettings = { LC_ADDRESS = "en_US.UTF-8"; LC_IDENTIFICATION = "en_US.UTF-8";
LC_ADDRESS = "de_DE.UTF-8"; LC_MEASUREMENT = "en_US.UTF-8"; LC_MONETARY = "en_US.UTF-8"; LC_NAME = "en_US.UTF-8"; LC_NUMERIC =
LC_IDENTIFICATION = "de_DE.UTF-8"; "en_US.UTF-8"; LC_PAPER = "en_US.UTF-8"; LC_TELEPHONE = "en_US.UTF-8"; LC_TIME = "en_US.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
}; };
# Enable the X11 windowing system. You can disable this if you're only using the Wayland session.
# Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;
# Enable the XFCE 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;
environment.plasma6.excludePackages = with pkgs.kdePackages; [
konsole
];
virtualisation.virtualbox.host.enable = true;
virtualisation.docker.enable = true;
users.extraGroups.vboxusers.members = [ "n" ];
virtualisation.virtualbox.host.enableExtensionPack = true;
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver = { xkb.layout = "us"; xkb.variant = "";
xkb = {
variant = "";
layout = "de";
};
}; };
# Configure console keymap # Configure console keymap
console.keyMap = "de"; console.keyMap = "us";
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
# Enable sound with pipewire. # Enable sound with pipewire.
services.pulseaudio.enable = false; services.pulseaudio.enable = true;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = false;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true; # If you want to use JACK applications, uncomment this jack.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default, # use the example session manager (no others are packaged yet so this is enabled by default, no
# no need to redefine it in your config for now) # need to redefine it in your config for now)
#media-session.enable = true; #media-session.enable = true;
}; };
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager). services.xserver.libinput.enable
services.libinput.enable = true; # = true;
services.mullvad-vpn.enable = true;
programs.light.enable = true; services.mullvad-vpn.package = pkgs.mullvad-vpn;
programs.zsh.enable = true;
# programs.nushell.enable = true;
programs.adb.enable = true;
# 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.n = { users.users.nico = { isNormalUser = true; description = "nico"; extraGroups = [ "networkmanager"
isNormalUser = true; "wheel" "adbusers" "docker" "input" "dialout"]; packages = with pkgs; [
description = "n";
extraGroups = [ "networkmanager" "wheel" "video" "adbusers" "input" "docker" "dialout" ];
packages = with pkgs; [
obsidian
]; ];
shell = pkgs.zsh;
}; };
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [ zsh nushell ];
# Install firefox. programs.zsh.enable = true;
programs.firefox.enable = true;
services.flatpak.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# nixpkgs.config.allowBroken = true; services.udev.packages = [
pkgs.platformio-core
# List packages installed in system profile. To search, run: pkgs.openocd
# $ nix search wget
environment.systemPackages = with pkgs; [
# pkgs.teamviewer
pkgs.spotify
pkgs.devenv
pkgs.vim
pkgs.wget
pkgs.git
# pkgs.kitty
pkgs.tree
pkgs.nodejs
pkgs.anki-bin
pkgs.unzip
pkgs.mullvad-vpn
pkgs.discord
# pkgs.musescore
# pkgs.butterfly
pkgs.btop
# pkgs.cura
# bitwarden-cli
# nvim
pkgs.gnumake
pkgs.python312Packages.pip
pkgs.python312
pkgs.cargo
pkgs.rustup
pkgs.rust-analyzer
pkgs.ripgrep
pkgs.gcc
pkgs.lua-language-server
pkgs.nil
# sway
pkgs.pavucontrol
pkgs.networkmanagerapplet
pkgs.wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
pkgs.go
pkgs.cliphist
pkgs.mako # notification system developed by swaywm maintainer
pkgs.waybar # bar
pkgs.pulseaudio # audiocontrols
pkgs.brightnessctl # brightness controls
pkgs.wpaperd # wallpaper manager
pkgs.onboard
]; ];
services.gnome.gnome-keyring.enable = true; # services.flatpak.enable = true;
# List packages installed in system profile. To search, run: $ nix search wget
environment.systemPackages = with pkgs; [
# grayjay
signal-desktop
obsidian
discord
anki
grayjay
lutris
qbittorrent
vim
wget
git
kitty
tree
nodejs
gparted
heroic
wineWowPackages.stable
spotify
#spicetify-cli
sshfs
# anydesk
# sway
networkmanager
networkmanagerapplet
# wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
cliphist
# mako # notification system developed by swaywm maintainer
waybar # bar
pulseaudio
pavucontrol
brightnessctl # brightness controls
# wpaperd # wallpaper manager
];
fonts.packages = with pkgs; [
# iosevka
# (nerdfonts.override { fonts = [ "JetBrainsMono" "UbuntuMono" ]; })
nerd-fonts.jetbrains-mono
nerd-fonts.ubuntu-mono
];
hardware.amdgpu.opencl.enable = true;
programs.steam = {
enable = true;
};
services.gnome.gnome-keyring.enable = true;
programs.sway = { programs.sway = {
enable = true; enable = true;
@@ -228,36 +188,27 @@
}; };
#fonts # programs.hyprland = {
fonts.packages = with pkgs; [ # enable = true;
#iosevka # package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# (nerdfonts.override { fonts = [ "JetBrainsMono" "UbuntuMono" ]; }) # };
nerd-fonts.jetbrains-mono
nerd-fonts.ubuntu-mono
];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are started in user sessions.
# started in user sessions. # programs.mtr.enable = true; programs.gnupg.agent = {
# programs.mtr.enable = true; # enable = true; enableSSHSupport = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# }; # };
# List services that you want to enable: # List services that you want to enable:
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon. services.openssh.enable = true;
# services.openssh.enable = true;
# Open ports in the firewall. # Open ports in the firewall. networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; Or disable the firewall altogether.
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# 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
]; ];
@@ -267,12 +218,11 @@ fonts.packages = with pkgs; [
}; };
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default settings for stateful data, like
# settings for stateful data, like file locations and database versions # file locations and database versions on your system were taken. Its perfectly fine and
# on your system were taken. Its perfectly fine and recommended to leave # recommended to leave this value at the release version of the first install of this system. Before
# this value at the release version of the first install of this system. # changing this value read the documentation for this option (e.g. man configuration.nix or on
# Before changing this value read the documentation for this option # https://nixos.org/nixos/options.html).
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.11"; # Did you read the comment?
system.stateVersion = "24.05"; # Did you read the comment?
} }

142
flake.lock generated
View File

@@ -3,15 +3,14 @@
"ags": { "ags": {
"inputs": { "inputs": {
"astal": "astal", "astal": "astal",
"gnim": "gnim",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1754487835, "lastModified": 1756679577,
"narHash": "sha256-GRCkm7a1odlN3hHR1iBIxwmBPWAw1CDOnOdpmZGSKkQ=", "narHash": "sha256-pkfftqE2CxVN6nKDZvlNdBxIkb/x5ch4wVfwZMYNGCM=",
"owner": "Aylur", "owner": "Aylur",
"repo": "ags", "repo": "ags",
"rev": "8e91fcd52b807f576a794ccc9533bdf720ef5af7", "rev": "04d51ac4082af3ec47e8a803417a1a55b75151d7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -28,11 +27,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1752404970, "lastModified": 1756474652,
"narHash": "sha256-XULTToDUkIshNXEO+YP2mAHdQv8bxWDvKjbamBfOC8E=", "narHash": "sha256-iiBU6itpEqE0spXeNJ3uJTfioSyKYjt5bNepykpDXTE=",
"owner": "aylur", "owner": "aylur",
"repo": "astal", "repo": "astal",
"rev": "2c5eb54f39e1710c6e2c80915a240978beb3269a", "rev": "20bd8318e4136fbd3d4eb2d64dbabc3acbc915dd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -65,11 +64,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1753121425, "lastModified": 1756770412,
"narHash": "sha256-TVcTNvOeWWk1DXljFxVRp+E0tzG1LhrVjOGGoMHuXio=", "narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "644e0fc48951a860279da645ba77fe4a6e814c5e", "rev": "4524271976b625a4a605beefd893f270620fd751",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -78,22 +77,6 @@
"type": "github" "type": "github"
} }
}, },
"gnim": {
"flake": false,
"locked": {
"lastModified": 1753090800,
"narHash": "sha256-6sS6KHong2cMGn+6xJwjiizZzwu2XUmp++DtiKZhFMU=",
"owner": "aylur",
"repo": "gnim",
"rev": "2f58f8444c4cb8fefeab7a9901a33e99cfa92457",
"type": "github"
},
"original": {
"owner": "aylur",
"repo": "gnim",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -101,11 +84,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1754503522, "lastModified": 1756991914,
"narHash": "sha256-V0iiDcYvNeMOP2FyfgC4H8Esx+JodXEl80lD4hFD4SI=", "narHash": "sha256-4ve/3ah5H/SpL2m3qmZ9GU+VinQYp2MN1G7GamimTds=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "13461dec40bf03d9196ff79d1abe48408268cc35", "rev": "b08f8737776f10920c330657bee8b95834b7a70f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -122,11 +105,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755121891, "lastModified": 1752603129,
"narHash": "sha256-UtYkukiGnPRJ5rpd4W/wFVrLMh8fqtNkqHTPgHEtrqU=", "narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "279ca5addcdcfa31ac852b3ecb39fc372684f426", "rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -137,11 +120,11 @@
}, },
"mnw": { "mnw": {
"locked": { "locked": {
"lastModified": 1748710831, "lastModified": 1756659871,
"narHash": "sha256-eZu2yH3Y2eA9DD3naKWy/sTxYS5rPK2hO7vj8tvUCSU=", "narHash": "sha256-v6Rh4aQ6RKjM2N02kK9Usn0Ix7+OY66vNpeklc1MnGE=",
"owner": "Gerg-L", "owner": "Gerg-L",
"repo": "mnw", "repo": "mnw",
"rev": "cff958a4e050f8d917a6ff3a5624bc4681c6187d", "rev": "ed6cc3e48557ba18266e598a5ebb6602499ada16",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -152,11 +135,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1753694789, "lastModified": 1756542300,
"narHash": "sha256-cKgvtz6fKuK1Xr5LQW/zOUiAC0oSQoA9nOISB0pJZqM=", "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "dc9637876d0dcc8c9e5e22986b857632effeb727", "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -168,11 +151,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1754214453, "lastModified": 1756787288,
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=", "narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376", "rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -184,11 +167,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1753432016, "lastModified": 1756696532,
"narHash": "sha256-cnL5WWn/xkZoyH/03NNUS7QgW5vI7D1i74g48qplCvg=", "narHash": "sha256-6FWagzm0b7I/IGigOv9pr6LL7NQ86mextfE8g8Q6HBg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6027c30c8e9810896b92429f0092f624f7b1aace", "rev": "58dcbf1ec551914c3756c267b8b9c8c86baa1b2f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -200,11 +183,27 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1727348695, "lastModified": 1756542300,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=", "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1755615617,
"narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784", "rev": "20075955deac2583bb12f07151c2df830ef346b4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -223,11 +222,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1754388740, "lastModified": 1756870502,
"narHash": "sha256-6++6FDc/hcMpaJPgOrGzwmzCSgix3zIlcuTIy9+aNSs=", "narHash": "sha256-0diPvHFwQbKvKkz0bmEVEoFIzL4rdD80CaApHaj6hzs=",
"owner": "notashelf", "owner": "notashelf",
"repo": "nvf", "repo": "nvf",
"rev": "22fb0d22cc474e85f94c5aa95b6c550c81ca7278", "rev": "7b009c945d2f0213409aa0bae07c79d28b92d625",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -242,9 +241,29 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nvf": "nvf", "nvf": "nvf",
"spicetify-nix": "spicetify-nix",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
}, },
"spicetify-nix": {
"inputs": {
"nixpkgs": "nixpkgs_4",
"systems": "systems_2"
},
"locked": {
"lastModified": 1756614537,
"narHash": "sha256-qyszmZO9CEKAlj5NBQo1AIIADm5Fgqs5ZggW1sU1TVo=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
"rev": "374eb5d97092b97f7aaafd58a2012943b388c0df",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"repo": "spicetify-nix",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@@ -260,17 +279,32 @@
"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"
}
},
"zen-browser": { "zen-browser": {
"inputs": { "inputs": {
"home-manager": "home-manager_2", "home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_4" "nixpkgs": "nixpkgs_5"
}, },
"locked": { "locked": {
"lastModified": 1755184939, "lastModified": 1756999202,
"narHash": "sha256-gxKs+3tfe5lNgu3hpiJmRUCkvri4vq2mUL6GL/+OCxM=", "narHash": "sha256-AiJDRmIt2DuMk2IlBPnMG52ghUI9+D1nO7JRBF2vnZ0=",
"owner": "0xc000022070", "owner": "0xc000022070",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "884b88c3ff7f283aec14ecb0a2a35e2da7607eae", "rev": "369fbe5c53420b1a17295c5e85ea0dbe02fbcfbd",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -15,12 +15,14 @@
zen-browser.url = "github:0xc000022070/zen-browser-flake"; zen-browser.url = "github:0xc000022070/zen-browser-flake";
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
}; };
outputs = { self, nixpkgs, nvf, zen-browser, ... }@inputs: outputs = { self, nixpkgs, nvf, zen-browser, spicetify-nix, ... }@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;

View File

@@ -8,18 +8,18 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/1d64861a-3d30-4b76-8a19-9a68618ddf3a"; { device = "/dev/disk/by-uuid/a4bfe07b-a6b5-47d9-80c7-f74b44f84f31";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/580D-111D"; { device = "/dev/disk/by-uuid/CB01-5AA6";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
@@ -31,9 +31,8 @@
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@@ -1,11 +1,12 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, ... }:
{ {
home.username = "n"; home.username = "nico";
home.homeDirectory = "/home/n"; home.homeDirectory = "/home/nico";
imports = [ imports = [
./packages ./packages
inputs.spicetify-nix.homeManagerModules.default
inputs.zen-browser.homeModules.default inputs.zen-browser.homeModules.default
]; ];
@@ -18,15 +19,35 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
floorp floorp
# freetube
]; ];
programs.zen-browser = {
programs.zen-browser.enable = true;
programs.spicetify =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
in
{
enable = true; enable = true;
theme = spicePkgs.themes.catppuccin;
colorScheme = "mocha";
enabledExtensions = with spicePkgs.extensions; [
keyboardShortcut
wikify
songStats
betterGenres
hidePodcasts
fullScreen
];
enabledCustomApps = with spicePkgs.apps; [
lyricsPlus
];
}; };
home.stateVersion = "24.05"; home.stateVersion = "24.05";
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View File

@@ -1,3 +0,0 @@
general.import = [
"/etc/nixos/packages/alacritty/catppuccin-mocha.toml"
]

View File

@@ -1,3 +0,0 @@
general.import = [
"~/.config/alacritty/catppuccin-mocha.toml"
]

View File

@@ -1,65 +0,0 @@
[colors.primary]
background = "#1e1e2e"
foreground = "#cdd6f4"
dim_foreground = "#7f849c"
bright_foreground = "#cdd6f4"
[colors.cursor]
text = "#1e1e2e"
cursor = "#f5e0dc"
[colors.vi_mode_cursor]
text = "#1e1e2e"
cursor = "#b4befe"
[colors.search.matches]
foreground = "#1e1e2e"
background = "#a6adc8"
[colors.search.focused_match]
foreground = "#1e1e2e"
background = "#a6e3a1"
[colors.footer_bar]
foreground = "#1e1e2e"
background = "#a6adc8"
[colors.hints.start]
foreground = "#1e1e2e"
background = "#f9e2af"
[colors.hints.end]
foreground = "#1e1e2e"
background = "#a6adc8"
[colors.selection]
text = "#1e1e2e"
background = "#f5e0dc"
[colors.normal]
black = "#45475a"
red = "#f38ba8"
green = "#a6e3a1"
yellow = "#f9e2af"
blue = "#89b4fa"
magenta = "#f5c2e7"
cyan = "#94e2d5"
white = "#bac2de"
[colors.bright]
black = "#585b70"
red = "#f38ba8"
green = "#a6e3a1"
yellow = "#f9e2af"
blue = "#89b4fa"
magenta = "#f5c2e7"
cyan = "#94e2d5"
white = "#a6adc8"
[[colors.indexed_colors]]
index = 16
color = "#fab387"
[[colors.indexed_colors]]
index = 17
color = "#f5e0dc"

View File

@@ -1,12 +0,0 @@
{pkgs, config, lib, ...}:
{
home.packages = with pkgs; [
alacritty
];
home.file = {
".config/alacritty/alacritty.toml" = {
source = "/etc/nixos/packages/alacritty/alacritty.toml";
};
};
}

View File

@@ -1,13 +0,0 @@
{pkgs, config, lib, ...}:
{
home.packages = with pkgs; [
alacritty
alacritty-theme
];
home.file = {
".config/alacritty/alacritty.toml" = {
source = "/etc/nixos/packages/alacritty/alacritty.toml";
};
};
}

View File

@@ -2,8 +2,8 @@
{ {
imports = [ imports = [
# ./ags # ./ags
./fuzzel
./other ./other
# ./floorp
./sway ./sway
./swaync ./swaync
./waybar ./waybar
@@ -12,12 +12,10 @@
./emacs ./emacs
./terminal ./terminal
./rofi ./rofi
# ./alacritty ./fuzzel
# ./tmux
# ./mako
# ./qutebrowser
./hyprland
./niri ./niri
./hyprland
# ./tmux
# ./vscode # ./vscode
]; ];
} }

16
packages/default.nix~ Normal file
View File

@@ -0,0 +1,16 @@
{ ... }:
{
imports = [
# ./ags
./other
./sway
./waybar
./wpaperd
./nvim
./emacs
./kitty
./rofi
# ./hyprland
# ./vscode
];
}

View File

@@ -12,7 +12,6 @@ in {
(telephone-line-mode 1) (telephone-line-mode 1)
(xterm-mouse-mode 1) (xterm-mouse-mode 1)
(setq evil-want-C-u-scroll t) (setq evil-want-C-u-scroll t)
(menu-bar--display-line-numbers-mode-relative) (menu-bar--display-line-numbers-mode-relative)
@@ -233,14 +232,13 @@ in {
(setq lsp-keymap-prefix "C-c l") (setq lsp-keymap-prefix "C-c l")
(require 'lsp-mode) (require 'lsp-mode)
(evil-set-undo-system 'undo-redo)
(flycheck-inline-mode nil) (flycheck-inline-mode nil)
(global-evil-vimish-fold-mode 1)
''; '';
package = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [ package = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
catppuccin-theme
]) ])
++ (with epkgs.melpaPackages; [ ++ (with epkgs.melpaPackages; [
catppuccin-theme
evil evil
nix-mode nix-mode
lsp-treemacs lsp-treemacs
@@ -260,7 +258,6 @@ in {
which-key which-key
magit magit
format-all format-all
evil-vimish-fold
]) ])
++ (with epkgs.elpaPackages; [ ++ (with epkgs.elpaPackages; [
undo-tree undo-tree

View File

@@ -1,7 +1,7 @@
{ {
description = "Flutter 3.13.x"; description = "Flutter 3.13.x";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
@@ -14,18 +14,46 @@ outputs = { self, nixpkgs, flake-utils }:
allowUnfree = true; allowUnfree = true;
}; };
}; };
androidSdk = pkgs.androidenv.androidSdk buildToolsVersion = "34.0.0";
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [ buildToolsVersion "33.0.1" ];
platformVersions = [ "34" "33" "28" ];
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
};
androidSdk = androidComposition.androidsdk;
in in
{ {
devShell = devShell =
with pkgs; mkShell rec { with pkgs; mkShell rec {
shellHook = ''
nu
exit
'';
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/libexec/android-sdk/build-tools/33.0.1/aapt2";
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk"; ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
buildInputs = [ buildInputs = [
flutter flutter
androidSdk 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.dart-code
dart-code.flutter
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace[
{
name = "awesome-flutter-snippets";
publisher = "nash";
version = "4.0.1";
sha256 = "lXdos/xB18h3Z0YfkgEk55G2JvRMYudUUIltugQjylU=";
}
];
})
]; ];
}; };
}); });
} }

View File

@@ -0,0 +1,60 @@
{
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;
};
};
buildToolsVersion = "34.0.0";
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [ buildToolsVersion "33.0.1" ];
platformVersions = [ "34" "33" "28" ];
abiVersions = [ "armeabi-v7a" "arm64-v8a" ];
};
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/33.0.1/aapt2";
ANDROID_SDK_ROOT = "${androidSdk}/libexec/android-sdk";
buildInputs = [
flutter
androidSdk # The customized SDK that we've made above
jdk17
vscode
(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=";
}
];
})
];
};
});
}

View 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;
};
};
};
}

View File

@@ -7,7 +7,7 @@
]; ];
home.file."/home/n/.config/fuzzel/fuzzel.ini" = { home.file."/home/nico/.config/fuzzel/fuzzel.ini" = {
source = ./fuzzel.ini; source = ./fuzzel.ini;
}; };

View File

@@ -1,7 +1,6 @@
dpi-aware=yes dpi-aware=yes
font=RobotoMonoNerdFont-Thin:size=8 font=RobotoMonoNerdFont-Thin:size=12
terminal=ghostty terminal=ghostty
width=30
layer=overlay layer=overlay
exit-on-keyboard-focus-loss=no exit-on-keyboard-focus-loss=no
inner-pad=15 inner-pad=15

View File

@@ -67,8 +67,6 @@ bindm = $mainMod, mouse:273, resizewindow
bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1% bind = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1%
bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -1% bind = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -1%
bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
bind = , XF86MonBrightnessDown, exec, light -U 10
bind = , XF86MonBrightnessUp, exec, light -A 10
# will switch to a submap called resize # will switch to a submap called resize

View File

@@ -1,6 +1,10 @@
input { input {
kb_layout = us,de kb_layout = us,de
kb_options=grp:alt_space_toggle kb_variant =
kb_model =
kb_options =
kb_rules =
kb_options=alt_space_toggle
follow_mouse = 1 follow_mouse = 1

View File

@@ -45,14 +45,13 @@ programs.zsh = {
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
initExtra = '' initExtra = ''
eval "$(starship init zsh)" eval "$(starship init zsh)"
export PATH=$PATH:$HOME/Documents/Shells/flutter/flutter/bin
''; '';
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 /etc/nixos/packages/emacs/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";
}; };
zplug = { zplug = {
@@ -72,7 +71,7 @@ programs.zsh = {
programs.kitty = { programs.kitty = {
enable = false; enable = true;
extraConfig = '' extraConfig = ''

View File

@@ -5,25 +5,6 @@
]; ];
programs.nushell = {
enable = true;
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.starship = { programs.starship = {
enable = true; enable = true;
@@ -32,10 +13,6 @@ programs.starship = {
}; };
}; };
programs.carapace = {
enable = true;
enableNushellIntegration = true;
};
programs.zsh = { programs.zsh = {
@@ -51,7 +28,7 @@ programs.zsh = {
shellAliases = { shellAliases = {
update = "sudo nixos-rebuild switch --flake /etc/nixos/#my-nixos"; update = "sudo nixos-rebuild switch --flake /etc/nixos/#my-nixos";
emacs = "emacs -nw"; emacs = "emacs -nw";
femacs = "emacs -nw --load /etc/nixos/packages/emacs/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";
}; };
zplug = { zplug = {
@@ -83,7 +60,6 @@ programs.kitty = {
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf ## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
## blurb: Soothing pastel theme for the high-spirited! ## blurb: Soothing pastel theme for the high-spirited!
map ctrl+shift+w no_op
# The basic colors # The basic colors

View File

@@ -1,9 +0,0 @@
# Colors
background-color=#1e1e2e
text-color=#cdd6f4
border-color=#cba6f7
progress-color=over #313244
[urgency=high]
border-color=#fab387

View File

@@ -1,12 +0,0 @@
{ pkgs, config, lib, ...}:
{
home.packages = with pkgs; [
mako
];
home.file = {
".config/mako/config" = {
source = "/etc/nixos/packages/mako/config" ;
};
};
}

View File

@@ -13,8 +13,8 @@ input {
// For more information, see xkeyboard-config(7). // For more information, see xkeyboard-config(7).
// For example: // For example:
layout "us,de" // layout "us,ru"
options "grp:win_space_toggle" // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps"
} }
// Enable numlock on startup, omitting this setting disables it. // Enable numlock on startup, omitting this setting disables it.
@@ -69,7 +69,7 @@ input {
// Find more information on the wiki: // Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs // https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
// Remember to uncomment the node by removing "/-"! // Remember to uncomment the node by removing "/-"!
output "eDP-1" { /-output "eDP-1" {
// Uncomment this line to disable this output. // Uncomment this line to disable this output.
// off // off
@@ -79,10 +79,10 @@ output "eDP-1" {
// for the resolution. // for the resolution.
// If the mode is omitted altogether or is invalid, niri will pick one automatically. // 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. // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
mode "1920x1080" mode "1920x1080@120.030"
// You can use integer or fractional scale, for example use 1.5 for 150% scale. // You can use integer or fractional scale, for example use 1.5 for 150% scale.
scale 1 scale 2
// Transform allows to rotate the output counter-clockwise, valid values are: // Transform allows to rotate the output counter-clockwise, valid values are:
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270. // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
@@ -97,7 +97,7 @@ output "eDP-1" {
// so to put another output directly adjacent to it on the right, set its x to 1920. // 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 // If the position is unset or results in an overlap, the output is instead placed
// automatically. // automatically.
// position x=1280 y=0 position x=1280 y=0
} }
// Settings that influence how windows are positioned and sized. // Settings that influence how windows are positioned and sized.
@@ -363,6 +363,7 @@ binds {
// Suggested binds for running programs: terminal, app launcher, screen locker. // Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+Return hotkey-overlay-title="Open a Terminal: ghostty" { spawn "ghostty"; } 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: 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+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+V hotkey-overlay-title="Clipboard history" { spawn "bash" "-c" "cliphist list | fuzzel -d | cliphist decode | wl-copy"; }
@@ -375,8 +376,6 @@ binds {
XF86AudioRaiseVolume allow-when-locked=true { spawn "pactl" "set-sink-volume" "@DEFAULT_SINK@" "+1%"; } 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%"; } 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"; } XF86AudioMute allow-when-locked=true { spawn "pactl" "set-sink-mute" "@DEFAULT_SINK@" "toggle"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "light" "-U" "5"; }
XF86MonBrightnessUp allow-when-locked=true { spawn "light" "-A" "5"; }
// XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "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. // Open/close the Overview: a zoomed-out view of workspaces and windows.

View File

@@ -7,7 +7,7 @@
nautilus nautilus
]; ];
home.file."/home/n/.config/niri/config.kdl" = { home.file."/home/nico/.config/niri/config.kdl" = {
source = ./config.kdl; source = ./config.kdl;
}; };
} }

View File

@@ -10,7 +10,7 @@
gcc gcc
# gopls # gopls
stylua stylua
# rustfmt rustfmt
]; ];
programs.neovim = { programs.neovim = {
@@ -56,8 +56,9 @@ programs.neovim.plugins = [
".config/nvim/lua/plugins/vim-suda.lua".source = ./lua/plugins/vim-suda.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/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/conform.lua".source = ./lua/plugins/conform.lua;
".config/nvim/lua/plugins/go.lua".source = ./lua/plugins/go.lua; ".config/nvim/lua/plugins/nvim-tree.lua".source = ./lua/plugins/nvim-tree.lua;
# ".config/nvim/lua/plugins/arduino.lua".source = ./lua/plugins/arduino.lua; # ".config/nvim/lua/plugins/go.lua".source = ./lua/plugins/go.lua;
# ".config/nvim/lua/plugins/typst.lua".source = ./lua/plugins/typst.lua;
} }
]; ];

View File

@@ -0,0 +1,31 @@
{ pkgs, config, lib,... }:
{
home.packages = with pkgs; [
];
programs.neovim = {
enable = true;
vimAlias = true;
};
programs.neovim.plugins = [
pkgs.vimPlugins.lazy-nvim
];
home.file =
lib.mkMerge [
{
".config/nvim/init.lua".source = ./init.lua;
".config/nvim/lua/config/lazy.lua".source = ./lua/config/lazy.lua;
".config/nvim/lua/plugins/flutter.lua".source = ./lua/plugins/flutter.lua;
".config/nvim/lua/plugins/coq.lua".source = ./lua/plugins/coq.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/telescope.lua".source = ./lua/plugins/telescope.lua;
".config/nvim/lua/plugins/highlight-colors.lua".source = ./lua/plugins/highlight-colors.lua;
}
];
}

View File

@@ -38,7 +38,6 @@ 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()
require("tiny-code-action").code_action() require("tiny-code-action").code_action()
@@ -47,7 +46,6 @@ 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") vim.cmd.colorscheme("catppuccin")
@@ -62,6 +60,7 @@ require("ibl").setup()
require("telescope").load_extension("flutter") require("telescope").load_extension("flutter")
require("toggleterm").setup({}) require("toggleterm").setup({})
require("mini.animate").setup() require("mini.animate").setup()
require('nvim-autopairs').enable()
vim.o.showtabline = 2 vim.o.showtabline = 2
require("tabby").setup({ require("tabby").setup({
@@ -77,7 +76,7 @@ require("conform").setup({})
require("flutter-tools").setup({}) require("flutter-tools").setup({})
-- GO -- GO
require("go").setup() -- require("go").setup()
------------- -- Debugger ------------- -- Debugger
local dap, dapui = require("dap"), require("dapui") local dap, dapui = require("dap"), require("dapui")
@@ -120,6 +119,8 @@ vim.keymap.set("n", "<leader>rh", ":RustLsp hover actions<CR>", { desc = "rust h
vim.keymap.set("n", "<leader>re", ":RustLsp explainError<CR>", { desc = "explain rust error" }) 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>rs", ":RustLsp openDocs<CR>", { desc = "open rust docs for symbol under cursor" })
vim.keymap.set("n", "<leader>rrn", ":RustLsp ssr ", { desc = "rust rename" }) vim.keymap.set("n", "<leader>rrn", ":RustLsp ssr ", { desc = "rust rename" })
-- 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" })
@@ -143,12 +144,13 @@ vim.keymap.set("n", "<leader>tf", ":ToggleTerm direction=float <CR>", { desc = "
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 = "select open terminal" })
-- 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 -- disable annoying inline type things
vim.lsp.inlay_hint.enable(false) vim.lsp.inlay_hint.enable(false)
vim.diagnostic.config({virtual_text = false}) vim.diagnostic.config({virtual_text = false})

113
packages/nvim/init.lua~ Normal file
View File

@@ -0,0 +1,113 @@
-- Tab
vim.opt.tabstop = 2 -- number of visual spaces per TAB
vim.opt.softtabstop = 2 -- number of spacesin tab when editing
vim.opt.shiftwidth = 2 -- insert 4 spaces on a tab
vim.opt.expandtab = true -- tabs are spaces, mainly because of python
-- UI config
vim.opt.number = true -- show absolute number
vim.opt.relativenumber = true -- add numbers to each line on the left side
vim.opt.splitbelow = true -- open new vertical split bottom
vim.opt.splitright = true -- open new horizontal splits right
-- 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
-- Searching
vim.opt.incsearch = true -- search as characters are entered
vim.opt.hlsearch = false -- do not highlight matches
vim.opt.ignorecase = true -- ignore case in searches by default
vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered
-- -- Keybinds
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-k>', '<C-w>k', opts)
vim.keymap.set('n', '<C-l>', '<C-w>l', opts)
-- Resize with arrows
-- delta: 2 lines
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-Left>', ':vertical resize -2<CR>', opts)
vim.keymap.set('n', '<C-Right>', ':vertical resize +2<CR>', opts)
-- Telescope binds
vim.keymap.set("n", "<space>fb", ":Telescope file_browser<CR>")
vim.keymap.set('i', 'jk', '<Esc>', opts)
-- Lazy
require("config.lazy")
-- require("flutter-tools").setup {} -- use defaults
require("catppuccin").setup({
integrations = {
cmp = false,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = false,
mini = {
enabled = false,
indentscope_color = "",
},
}
})
-- css colors
vim.opt.termguicolors = true
require('nvim-highlight-colors').setup({})
vim.cmd.colorscheme "catppuccin"
-- lsp
local on_attach = function(_, bufnr)
local bufmap = function(keys, func)
vim.keymap.set('n', keys, func, { buffer = bufnr })
end
bufmap('<leader>r', vim.lsp.buf.rename)
bufmap('<leader>a', vim.lsp.buf.code_action)
bufmap('gd', vim.lsp.buf.definition)
bufmap('gD', vim.lsp.buf.declaration)
bufmap('gI', vim.lsp.buf.implementation)
bufmap('<leader>D', vim.lsp.buf.type_definition)
bufmap('gr', require('telescope.builtin').lsp_references)
bufmap('<leader>s', require('telescope.builtin').lsp_document_symbols)
bufmap('<leader>S', require('telescope.builtin').lsp_dynamic_workspace_symbols)
bufmap('K', vim.lsp.buf.hover)
vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
vim.lsp.buf.format()
end, {})
end
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('coq').lsp_ensure_capabilities(capabilities)
require('lspconfig').lua_ls.setup {
on_attach = on_attach,
capabilities = capabilities,
root_dir = function()
return vim.loop.cwd()
end,
cmd = { "lua-lsp" },
settings = {
Lua = {
workspace = { checkThirdParty = false },
telemetry = { enable = false },
},
}
}
require('lspconfig').nil_ls.setup {
on_attach = on_attach,
capabilities = capabilities,
}

View File

@@ -1,7 +0,0 @@
return{
"glebzlat/arduino-nvim",
config = {
function() require("arduino-nvim").setup() end,
filetype = "arduino",
}
}

View 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" },
},
},
}

View File

@@ -0,0 +1,6 @@
return {
"zbirenbaum/copilot.lua",
config = function ()
require('copilot').setup({})
end
}

View File

@@ -7,9 +7,9 @@ return {
servers = { servers = {
lua_ls = {}, lua_ls = {},
nil_ls = {}, nil_ls = {},
-- vue_ls = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
gopls = {}, -- gopls = {},
-- arduino_language_server = {},
} }
}, },
config = function(_, opts) config = function(_, opts)

View File

@@ -1,17 +0,0 @@
return { 'alexghergh/nvim-tmux-navigation', config = function()
local nvim_tmux_nav = require('nvim-tmux-navigation')
nvim_tmux_nav.setup {
disable_when_zoomed = true -- defaults to false
}
vim.keymap.set('n', "<C-h>", nvim_tmux_nav.NvimTmuxNavigateLeft)
vim.keymap.set('n', "<C-j>", nvim_tmux_nav.NvimTmuxNavigateDown)
vim.keymap.set('n', "<C-k>", nvim_tmux_nav.NvimTmuxNavigateUp)
vim.keymap.set('n', "<C-l>", nvim_tmux_nav.NvimTmuxNavigateRight)
vim.keymap.set('n', "<C-\\>", nvim_tmux_nav.NvimTmuxNavigateLastActive)
vim.keymap.set('n', "<C-Space>", nvim_tmux_nav.NvimTmuxNavigateNext)
end
}

View 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,
}

View 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
}

View File

@@ -0,0 +1,7 @@
return {
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
---@module "ibl"
---@type ibl.config
opts = {},
}

View File

@@ -0,0 +1,48 @@
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.*',
-- AND/OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
-- build = 'cargo build --release',
-- If you use nix, you can build from source using latest nightly rust with:
-- build = 'nix run .#build-plugin',
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
-- See :h blink-cmp-config-keymap for defining your own keymap
keymap = {
preset = 'enter',
-- map tap to cycle through
['<S-Tab>'] = { 'select_prev', 'fallback' },
['<Tab>'] = { 'select_next', 'fallback' },
},
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" }
}

View File

@@ -0,0 +1 @@
return { "catppuccin/nvim", name = "catppuccin", priority = 1000 }

View File

@@ -0,0 +1,6 @@
return {
'numToStr/Comment.nvim',
opts = {
-- add any options here
}
}

View File

@@ -0,0 +1,30 @@
return {
"neovim/nvim-lspconfig", -- REQUIRED: for native Neovim LSP integration
lazy = false, -- REQUIRED: tell lazy.nvim to start this plugin at startup
dependencies = {
-- main one
{ "ms-jpq/coq_nvim", branch = "coq" },
-- 9000+ Snippets
{ "ms-jpq/coq.artifacts", branch = "artifacts" },
-- lua & third party sources -- See https://github.com/ms-jpq/coq.thirdparty
-- Need to **configure separately**
{ 'ms-jpq/coq.thirdparty', branch = "3p" }
-- - shell repl
-- - nvim lua api
-- - scientific calculator
-- - comment banner
-- - etc
},
init = function()
vim.g.coq_settings = {
auto_start = true, -- if you want to start COQ at startup
-- Your COQ settings here
}
end,
config = function()
-- Your LSP settings here
end,
}

View File

@@ -0,0 +1 @@
return { "rcarriga/nvim-dap-ui", dependencies = {"mfussenegger/nvim-dap", "nvim-neotest/nvim-nio"} }

View File

@@ -0,0 +1,10 @@
return {
'nvim-flutter/flutter-tools.nvim',
lazy = false,
dependencies = {
'nvim-lua/plenary.nvim',
'stevearc/dressing.nvim', -- optional for vim.ui.select
},
config = true,
}

View File

@@ -0,0 +1 @@
return { "brenoprata10/nvim-highlight-colors", name = "highlight-colotrs" }

View File

@@ -0,0 +1,33 @@
return {
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- See the configuration section for more details
-- Load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
},
{ -- optional blink completion source for require statements and module annotations
"saghen/blink.cmp",
build = 'cargo +nightly build --release',
opts = {
sources = {
-- add lazydev to your completion providers
default = { "lazydev", "lsp", "path", "snippets", "buffer" },
providers = {
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
},
},
},
}
-- { "folke/neodev.nvim", enabled = false }, -- make sure to uninstall or disable neodev.nvim
}

View 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" }
}
}

View File

@@ -0,0 +1,30 @@
return {
'neovim/nvim-lspconfig',
dependencies = { 'saghen/blink.cmp' },
-- example using `opts` for defining servers
opts = {
servers = {
lua_ls = {},
nil_ls = {},
-- rust_analyzer = {}
}
},
config = function(_, opts)
local lspconfig = require('lspconfig')
for server, config in pairs(opts.servers) do
-- passing config.capabilities to blink.cmp merges with the capabilities in your
-- `opts[server].capabilities, if you've defined it
config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
lspconfig[server].setup(config)
end
end
-- -- example calling setup directly for each LSP
-- config = function()
-- local capabilities = require('blink.cmp').get_lsp_capabilities()
-- local lspconfig = require('lspconfig')
--
-- lspconfig['lua_ls'].setup({ capabilities = capabilities })
-- end
}

View File

@@ -0,0 +1,13 @@
return
{
"neovim/nvim-lspconfig",
opts = function()
local keys = require("lazyvim.plugins.lsp.keymaps").get()
-- change a keymap
keys[#keys + 1] = { "K", "<cmd>echo 'hello'<cr>" }
-- disable a keymap
keys[#keys + 1] = { "K", false }
-- add a keymap
keys[#keys + 1] = { "H", "<cmd>echo 'hello'<cr>" }
end,
}

View File

@@ -0,0 +1,5 @@
return {
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }
}

View File

@@ -0,0 +1,37 @@
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,
}

View File

@@ -0,0 +1,5 @@
return {
'mrcjkb/rustaceanvim',
version = '^5', -- Recommended
lazy = false, -- This plugin is already lazy
}

View File

@@ -0,0 +1,44 @@
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,
},
}

View File

@@ -0,0 +1,4 @@
return {
"nvim-telescope/telescope-file-browser.nvim",
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
}

View File

@@ -0,0 +1,15 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "lua", "html", "dart", "rust" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}

View 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)",
},
},
}

View 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)",
},
},
}

View File

@@ -0,0 +1,6 @@
return {
'chomosuke/typst-preview.nvim',
lazy = false, -- or ft = 'typst'
version = '1.*',
opts = {}, -- lazy.nvim will implicitly calls `setup {}`
}

View File

@@ -1,16 +1,3 @@
{ pkgs, config, lib,... }:
{
home.packages = with pkgs; [
];
programs.ranger = {
enable = true;
extraConfig = ''
set preview_images true
set preview_images_method kitty
'';
};
programs.git = { programs.git = {

View File

@@ -28,7 +28,9 @@ services.kdeconnect = {
indicator = true; indicator = true;
}; };
programs.ladybird.enable = true; programs.obsidian = {
enable = true;
};

View File

@@ -3,7 +3,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
rofi-screenshot rofi-screenshot
rofi-power-menu rofi-power-menu
bitwarden-menu
]; ];

View File

@@ -3,7 +3,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
rofi-screenshot rofi-screenshot
rofi-power-menu rofi-power-menu
rofi-bluetooth
bitwarden-menu bitwarden-menu
]; ];

View File

@@ -6,20 +6,26 @@
config = rec { config = rec {
modifier = "Mod4"; modifier = "Mod4";
# Use kitty as default terminal # Use kitty as default terminal
terminal = "alacritty"; terminal = "kitty";
bars = [ bars = [
{command = "waybar";} {command = "waybar";}
]; ];
startup = [ startup = [
# Launch Firefox on start # Launch Firefox on start
{command = "wpaperd";} # {command = "wpaperd";}
{command = "wl-paste --watch cliphist store";}
]; ];
}; };
extraConfig = '' extraConfig = ''
## screens
#output DP-3 scale 0.9
#output DP-2 pos 0 0
workspace 10 output DP-3
for_window [class="Spotify"] scratchpad show
## Input configuration ## Input configuration
input "type:keyboard" { input "type:keyboard" {
xkb_layout de,us xkb_layout de,us
@@ -27,23 +33,6 @@
xkb_options grp:alt_shift_toggle xkb_options grp:alt_shift_toggle
} }
input "type:touchpad" {
tap enabled # enables click-on-tap
tap_button_map lrm # tap with 1 finger = left click, 2 fingers = right click, 3 fingers = middle click
dwt enabled # disable (touchpad) while typing
dwtp disabled # disable (touchpad) while track pointing
}
#touch {
# set along_the_top "20px x 1.0 @ .5 x 0"
# set bottom_half "1.0 x .5 @ 0 x .5"
# set right_half ".5 x 1.0 @ .5 x 0"
# gesture exec 'rofi -show drun'{
# down 1 $along_the_top
# horiz +100px < move
# }
#}
# Brightness # Brightness
bindsym XF86MonBrightnessDown exec light -U 10 bindsym XF86MonBrightnessDown exec light -U 10
@@ -55,10 +44,10 @@ input "type:touchpad" {
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle' bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
# app launcher # app launcher
bindsym Mod4+m exec 'rofi -show drun' bindsym Mod4+m exec 'rofi -show drun'
bindsym Mod4+Shift+x exec 'rofi -show power-menu -modi power-menu:rofi-power-menu' bindsym Mod4+Shift+x exec 'rofi -show power-menu -modi power-menu:rofi-power-menu'
bindsym Mod4+Print exec 'rofi-screenshot' bindsym Mod4+Print exec 'rofi-screenshot'
bindsym Mod4+Shift+v exec 'cliphist list | rofi -dmenu | cliphist decode | wl-copy'
bindsym Mod4+BackSpace kill bindsym Mod4+BackSpace kill
# disable window border # disable window border

View File

@@ -13,37 +13,26 @@
startup = [ startup = [
# Launch Firefox on start # Launch Firefox on start
{command = "wpaperd";} # {command = "wpaperd";}
{command = "wl-paste --watch cliphist store";}
]; ];
}; };
extraConfig = '' extraConfig = ''
## screens
#output DP-3 scale 0.9
#output DP-2 pos 0 0
workspace 10 output DP-3
for_window [class="Spotify"] scratchpad show
## Input configuration ## Input configuration
input "type:keyboard" { input "type:keyboard" {
xkb_layout de,us xkb_layout de, us
xkb_variant "nodeadkeys" xkb_variant "nodeadkeys"
xkb_options grp:alt_shift_toggle xkb_options grp:alt_shift_toggle
} }
input "type:touchpad" {
tap enabled # enables click-on-tap
tap_button_map lrm # tap with 1 finger = left click, 2 fingers = right click, 3 fingers = middle click
dwt enabled # disable (touchpad) while typing
dwtp disabled # disable (touchpad) while track pointing
}
#touch {
# set along_the_top "20px x 1.0 @ .5 x 0"
# set bottom_half "1.0 x .5 @ 0 x .5"
# set right_half ".5 x 1.0 @ .5 x 0"
# gesture exec 'rofi -show drun'{
# down 1 $along_the_top
# horiz +100px < move
# }
#}
# Brightness # Brightness
bindsym XF86MonBrightnessDown exec light -U 10 bindsym XF86MonBrightnessDown exec light -U 10
@@ -55,10 +44,10 @@ input "type:touchpad" {
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle' bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
# app launcher # app launcher
bindsym Mod4+m exec 'rofi -show drun' bindsym Mod4+m exec 'rofi -show drun'
bindsym Mod4+Shift+x exec 'rofi -show power-menu -modi power-menu:rofi-power-menu' bindsym Mod4+Shift+x exec 'rofi -show power-menu -modi power-menu:rofi-power-menu'
bindsym Mod4+Print exec 'rofi-screenshot' bindsym Mod4+Print exec 'rofi-screenshot'
bindsym Mod4+Shift+v exec 'cliphist list | rofi -dmenu | cliphist decode | wl-copy'
bindsym Mod4+BackSpace kill bindsym Mod4+BackSpace kill
# disable window border # disable window border

View File

@@ -29,6 +29,7 @@ programs.carapace = {
enableNushellIntegration = true; enableNushellIntegration = true;
}; };
# programs.thefuck.enable = true;
programs.starship.enable = true; programs.starship.enable = true;
@@ -39,8 +40,7 @@ programs.zsh = {
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
shellAliases = { shellAliases = {
# update = "sudo nixos-rebuild switch"; update = "sudo nixos-rebuild switch";
update = "sudo nixos-rebuild switch --flake /etc/nixos/#my-nixos";
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";
@@ -59,15 +59,19 @@ programs.zsh = {
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
plugins = [ ]; # plugins = [ "thefuck" ];
# theme = ""; # theme = "";
}; };
}; };
programs.fzf = {
programs.ghostty = {
enable = true; enable = true;
enableZshIntegration = true; };
home.file."/home/nico/.config/ghostty/config" = {
source = ./ghostty-config;
}; };
programs.zoxide = { programs.zoxide = {
@@ -75,15 +79,6 @@ programs.zoxide = {
enableZshIntegration = true; enableZshIntegration = true;
}; };
programs.ghostty = {
enable = true;
};
home.file."/home/n/.config/ghostty/config" = {
source = ./ghostty-config;
};
programs.kitty = { programs.kitty = {
enable = true; enable = true;

View File

@@ -5,7 +5,7 @@
"spacing": 0, "spacing": 0,
"modules-left": ["clock", "niri/workspaces", "hyprland/submap"], "modules-left": ["clock", "niri/workspaces", "hyprland/submap"],
"modules-center": [ ], "modules-center": [ ],
"modules-right": ["network", "battery", "cpu", "memory", "custom/keyboard-layout", "custom/notification", "pulseaudio", "tray"], "modules-right": ["network", "cpu", "memory", "custom/keyboard-layout", "custom/notification", "pulseaudio", "tray"],
"custom/keyboard-layout": { "custom/keyboard-layout": {
"interval": 1, "interval": 1,

View File

@@ -1,4 +1,4 @@
[any] [any]
duration = "10m" duration = "10m"
mode = "center" mode = "center"
path = "/home/n/Documents/Wallpapers" path = "/home/nico/Documents/Wallpapers"

View File

@@ -1,6 +1,7 @@
{ pkgs, config, lib,... }: { pkgs, config, lib,... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
wpaperd
]; ];
home.file = home.file =

View File

@@ -9,4 +9,4 @@ fi
sudo cp -r /etc/nixos/* . sudo cp -r /etc/nixos/* .
git add * git add *
git commit -m "$1" git commit -m "$1"
git push origin laptop git push origin pc

View File

@@ -1,53 +0,0 @@
{
description = "Arduino";
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.allowUnfree = true;
};
in
{
devShell =
with pkgs; mkShell rec {
buildInputs = [
arduino-ide
arduino-cli
# arduino-language-server
# (vscode-with-extensions.override {
# vscode = vscodium;
# vscodeExtensions = with vscode-extensions; [
# ms-vscode.cpptools
# ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
# {
# name = "vscode-arduino-community";
# publisher = "vscode-arduino";
# version = "0.7.2";
# sha256 = "FvKCAHiebcBObSFXCftcFpsDrA1TUv7TqKftFNeLAPI=";
# }
# # {
# # name = "vscode-serial-monitor";
# # publisher = "microsoft";
# # version = "0.13.250616001";
# # sha256 = "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb";
# # }
# ];
# })
];
shellHook = ''
zsh
exit
'';
};
});
}

View File

@@ -1,101 +1,43 @@
{ {
inputs = { description = "Flutter 3.13.x";
nixpkgs.url = "nixpkgs/nixpkgs-unstable"; inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = { flake-utils.url = "github:numtide/flake-utils";
url = "github:hercules-ci/flake-parts"; };
inputs.nixpkgs-lib.follows = "nixpkgs"; outputs = { self, nixpkgs, flake-utils }:
}; flake-utils.lib.eachDefaultSystem (system:
let
android-nixpkgs.url = "github:tadfisher/android-nixpkgs"; pkgs = import nixpkgs {
}; inherit system;
config = {
android_sdk.accept_license = true;
outputs = { allowUnfree = true;
self, };
nixpkgs,
flake-parts,
...
} @ 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
];
};
# formatter = pkgs.alejandra;
}; };
}; 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/flutter/flake.nix.bk Normal file
View 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;
};
};
}

View File

@@ -18,7 +18,6 @@
GOPATH="${go}"; GOPATH="${go}";
buildInputs = [ buildInputs = [
go go
gopls
]; ];
shellHook = '' shellHook = ''

View 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
'';
};
});
}

View File

@@ -34,7 +34,6 @@
gtk3 gtk3
librsvg librsvg
xdotool xdotool
rustfmt
]; ];
# RUSTC_VERSION = overrides.toolchain.channel; # RUSTC_VERSION = overrides.toolchain.channel;

106
shells/triolingo/flake.nix Normal file
View 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";
};
});
}