Compare commits

..

13 Commits

Author SHA1 Message Date
3beb78a829 mainly xfce. And a lot of other things i dont remember 2026-01-06 21:25:19 +01:00
1cac4ca84d now fuzzel and so on. Idk what happened last time 2025-08-24 14:54:50 +02:00
Nico
1b56d25e41 arduino flake 2025-06-23 15:29:28 +02:00
Nico
10bf6d204c yes 2025-06-16 01:08:44 +02:00
Nico
e3c6e694f1 added shells 2025-05-25 21:35:28 +02:00
Nico
efae880e63 tried to get tmux to work. Didnt work 2025-05-25 21:25:55 +02:00
Nico
4d252c9880 cleaned up all neovim things and added rust and go
forgot go keybinds ig
2025-05-25 00:17:53 +02:00
Nico
4ed9152f57 working flutter flake and nivm tabby 2025-05-10 23:33:59 +02:00
Nico
c1da805aad neovim update; removed unused files; dont now what else. whoops 2025-05-05 20:09:34 +02:00
nico
981a2edcb4 nix ig 2025-03-31 15:15:23 +02:00
nico
aef0a291da nvim dap 2025-03-31 15:01:05 +02:00
Nico
a9fc101532 initW 2025-03-31 00:07:38 +02:00
Nico
c45866e66e init 2025-03-31 00:04:25 +02:00
76 changed files with 1524 additions and 3045 deletions

View File

@@ -1,77 +1,70 @@
# Edit this configuration file to define what should be installed on your system. Help is available # Edit this configuration file to define what should be installed on
# in the configuration.nix(5) man page and in the NixOS manual (accessible by running nixos-help). # your system. Help is available in the configuration.nix(5) man page
# 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
]; ./packages/zen/zen-mod.nix
];
nix.settings.trusted-users = [ "root" "nico" ];
# home manager # home manager
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users = {
"nico" = import ./home-nico.nix; "n" = import ./home-nico.nix;
}; };
}; };
# nixpkgs.config.permittedInsecurePackages = [
# "electron-33.4.11"
# ];
# hyprland # hyprland
# programs.hyprland = { programs.hyprland = {
# enable = true; enable = false;
# xwayland.enable = true; xwayland.enable = true;
# }; };
programs.niri.enable = true; programs.niri.enable = true;
# Bootloader. boot.supportedFilesystems = [ "ntfs" ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.useOSProber = true;
fileSystems."mnt/win" = {
device = "/dev/disk/by-partuuid/8d0a8dd9-7a4c-4d3e-a5eb-98c0aed35db5";
fsType = "ntfs-3g";
options = ["rw" "uid=1000"];
};
# hibernation
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
boot.resumeDevice = "/dev/disk/by-uuid/a4bfe07b-a6b5-47d9-80c7-f74b44f84f31";
powerManagement.enable = true;
# Flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. security.polkit.enable = true;
nix.settings.trusted-users = [ "root" "n" ];
# Configure network proxy if necessary networking.proxy.default =
# "http://user:password@proxy:port/"; networking.proxy.noProxy = # Bootloader.
# "127.0.0.1,localhost,internal.domain"; boot.loader.systemd-boot.enable = 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
# 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" "resume_offset=94015488"];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.hostName = "nixos"; # Define your hostname. hardware.bluetooth.enable = true;
networking.enableIPv6 = false; services.blueman.enable = true;
# VM services.resolved = {
# virtualisation.virtualbox.host.enable = true; enable = true;
# virtualisation.virtualbox.host.enableExtensionPack = true; };
# virtualisation.virtualbox.host.enableKvm = true;
# virtualisation.virtualbox.host.addNetworkInterface = false; services.mullvad-vpn.enable = true;
# users.extraGroups.vboxusers.members = [ "nico" ]; # services.teamviewer.enable = true;
# # 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";
@@ -79,173 +72,197 @@ powerManagement.enable = true;
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = { LC_ADDRESS = "en_US.UTF-8"; LC_IDENTIFICATION = "en_US.UTF-8"; i18n.extraLocaleSettings = {
LC_MEASUREMENT = "en_US.UTF-8"; LC_MONETARY = "en_US.UTF-8"; LC_NAME = "en_US.UTF-8"; LC_NUMERIC = LC_ADDRESS = "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_IDENTIFICATION = "de_DE.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.
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
xfce.enable = false;
};
};
xdg.portal = { # Enable the X11 windowing system.
services.xserver = {
enable = true; enable = true;
extraPortals = with pkgs; [ desktopManager = {
xdg-desktop-portal-gtk xterm.enable = false;
xdg-desktop-portal-gnome xfce.enable = true;
]; };
config = { };
common = { # services.displayManager.defaultSession = "xfce";
default = [ "gtk" ];
}; # Enable the XFCE Desktop Environment.
niri = { services.displayManager.sddm.enable = true;
# default = [ services.displayManager.ly.enable = false;
# "gtk" services.displayManager.lemurs.enable = false;
# "gnome" services.desktopManager.plasma6.enable = false;
# ];
"org.freedesktop.impl.portal.ScreenCast" = [ "gnome" ]; environment.plasma6.excludePackages = with pkgs.kdePackages; [
"org.freedesktop.impl.portal.Screenshot" = [ "gnome" ]; konsole
}; ];
#virtualisation.virtualbox.host.enable = true;
#virtualisation.docker.enable = true;
#users.extraGroups.vboxusers.members = [ "n" ];
#virtualisation.virtualbox.host.enableExtensionPack = true;
# Configure keymap in X11
services.xserver = {
xkb = {
variant = "";
layout = "de";
}; };
}; };
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.displayManager.ly.enable = false;
services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver = { xkb.layout = "us"; xkb.variant = "";
};
# Configure console keymap # Configure console keymap
console.keyMap = "us"; console.keyMap = "de";
# 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 = false;
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
# If you want to use JACK applications, uncomment this jack.enable = true; wireplumber.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, no # use the example session manager (no others are packaged yet so this is enabled by default,
# need to redefine it in your config for now) # nor need to redefine it in your config for now)
#media-session.enable = true; #media-session.enable = true;
}; };
systemd.user.services.orca.enable = false; # 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.nico = { isNormalUser = true; description = "nico"; extraGroups = [ "networkmanager" users.users.n = {
"wheel" "adbusers" "docker" "input" "dialout"]; packages = with pkgs; [ isNormalUser = true;
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 ];
programs.zsh.enable = true; # Install firefox.
programs.firefox.enable = true;
services.flatpak.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
services.udev.packages = [ # nixpkgs.config.allowBroken = true;
pkgs.platformio-core
pkgs.openocd
];
# services.flatpak.enable = true; # List packages installed in system profile. To search, run:
programs.nix-ld.enable = true; # $ nix search wget
# List packages installed in system profile. To search, run: $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# grayjay
signal-desktop
obsidian
discord
anki
grayjay
lutris
qbittorrent
vim
wget
git
tree
ntfs3g
heroic
wineWowPackages.stable
sshfs
devenv
# sway # pkgs.teamviewer
networkmanager pkgs.devenv
networkmanagerapplet pkgs.vim
# wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout pkgs.wget
cliphist pkgs.git
# mako # notification system developed by swaywm maintainer pkgs.tree
waybar # bar # pkgs.nodejs
pulseaudio pkgs.anki-bin
pavucontrol pkgs.unzip
brightnessctl # brightness controls pkgs.mullvad-vpn
# wpaperd # wallpaper manager # 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;
# programs.sway = {
# enable = true;
# wrapperFeatures.gtk = true;
# };
#fonts
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
# iosevka #iosevka
# (nerdfonts.override { fonts = [ "JetBrainsMono" "UbuntuMono" ]; }) # (nerdfonts.override { fonts = [ "JetBrainsMono" "UbuntuMono" ]; })
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
nerd-fonts.ubuntu-mono nerd-fonts.ubuntu-mono
]; ];
hardware.amdgpu.opencl.enable = true;
programs.steam = { # Some programs need SUID wrappers, can be configured further or are
enable = true; # started in user sessions.
}; # programs.mtr.enable = true;
services.gnome.gnome-keyring.enable = true; # programs.gnupg.agent = {
# enable = true;
programs.sway = { # enableSSHSupport = true;
enable = false;
wrapperFeatures.gtk = true;
};
# programs.hyprland = {
# enable = true;
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
# };
# Some programs need SUID wrappers, can be configured further or are started in user sessions.
# programs.mtr.enable = true; programs.gnupg.agent = {
# enable = true; enableSSHSupport = true;
# }; # };
# List services that you want to enable: # List services that you want to enable:
services.openssh.enable = true; # Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall. networking.firewall.allowedTCPPorts = [ ... ]; # Open ports in the firewall.
# networking.firewall.allowedUDPPorts = [ ... ]; Or disable the firewall altogether. # networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;
networking.firewall = { networking.firewall = {
enable = false; enable = true;
allowedTCPPortRanges = [ allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect { from = 1714; to = 1764; } # KDE Connect
]; ];
@@ -255,11 +272,12 @@ hardware.amdgpu.opencl.enable = true;
}; };
# This value determines the NixOS release from which the default settings for stateful data, like # This value determines the NixOS release from which the default
# file locations and database versions on your system were taken. Its perfectly fine and # settings for stateful data, like file locations and database versions
# recommended to leave this value at the release version of the first install of this system. Before # on your system were taken. Its perfectly fine and recommended to leave
# changing this value read the documentation for this option (e.g. man configuration.nix or on # this value at the release version of the first install of this system.
# https://nixos.org/nixos/options.html). # Before changing this value read the documentation for this option
system.stateVersion = "24.11"; # Did you read the comment? # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
} }

266
flake.lock generated
View File

@@ -40,39 +40,6 @@
"type": "github" "type": "github"
} }
}, },
"catppuccin": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1767750947,
"narHash": "sha256-zqe9esphlAFu19TGL/nAyOHyOiR+Vu8M2IWWLg9cm4U=",
"owner": "catppuccin",
"repo": "nix",
"rev": "e7135074fe2a3d17bee3c229b5a7d3da26f76ce8",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "nix",
"type": "github"
}
},
"crane": {
"locked": {
"lastModified": 1765145449,
"narHash": "sha256-aBVHGWWRzSpfL++LubA0CwOOQ64WNLegrYHwsVuVN7A=",
"owner": "ipetkov",
"repo": "crane",
"rev": "69f538cdce5955fcd47abfed4395dc6d5194c1c5",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -89,21 +56,6 @@
"url": "https://git.lix.systems/lix-project/flake-compat.git" "url": "https://git.lix.systems/lix-project/flake-compat.git"
} }
}, },
"flake-compat_2": {
"locked": {
"lastModified": 1765121682,
"narHash": "sha256-4VBOP18BFeiPkyhy9o4ssBNQEvfvv1kXkasAYd0+rrA=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "65f23138d8d09a92e30f1e5c87611b23ef451bf3",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
@@ -131,27 +83,6 @@
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": {
"lastModified": 1767802041,
"narHash": "sha256-ZhgbFGQGeJaZ/xkwyHlgUCeHuIdEDqugYkObPL0NCyo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "bdaa3743831168787f528570f2b87963e72a2f23",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"home-manager_2": {
"inputs": {
"nixpkgs": [
"zen-browser",
"nixpkgs"
]
},
"locked": { "locked": {
"lastModified": 1767104570, "lastModified": 1767104570,
"narHash": "sha256-GKgwu5//R+cLdKysZjGqvUEEOGXXLdt93sNXeb2M/Lk=", "narHash": "sha256-GKgwu5//R+cLdKysZjGqvUEEOGXXLdt93sNXeb2M/Lk=",
@@ -219,83 +150,6 @@
} }
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": {
"lastModified": 1767116409,
"narHash": "sha256-5vKw92l1GyTnjoLzEagJy5V5mDFck72LiQWZSOnSicw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cad22e7d996aea55ecab064e84834289143e44a0",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1767640445,
"narHash": "sha256-UWYqmD7JFBEDBHWYcqE6s6c77pWdcU/i+bwD6XxMb8A=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "9f0c42f8bc7151b8e7e5840fb3bd454ad850d8c5",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1767364772,
"narHash": "sha256-fFUnEYMla8b7UKjijLnMe+oVFOz6HjijGGNS1l7dYaQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "16c7794d0a28b5a37904d55bcca36003b9109aaa",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1767379071,
"narHash": "sha256-EgE0pxsrW9jp9YFMkHL9JMXxcqi/OoumPJYwf+Okucw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fb7944c166a3b630f177938e478f0378e64ce108",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1765772535,
"narHash": "sha256-I715zWsdVZ+CipmLtoCAeNG0etQywiWRE5PaWntnaYk=",
"rev": "09b8fda8959d761445f12b55f380d90375a1d6bb",
"type": "tarball",
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre911985.09b8fda8959d/nixexprs.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
}
},
"nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1766902085, "lastModified": 1766902085,
"narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=", "narHash": "sha256-coBu0ONtFzlwwVBzmjacUQwj3G+lybcZ1oeNSQkgC0M=",
@@ -311,21 +165,37 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_3": {
"locked": {
"lastModified": 1764081664,
"narHash": "sha256-sUoHmPr/EwXzRMpv1u/kH+dXuvJEyyF2Q7muE+t0EU4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "dc205f7b4fdb04c8b7877b43edb7b73be7730081",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nvf": { "nvf": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"mnw": "mnw", "mnw": "mnw",
"ndg": "ndg", "ndg": "ndg",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_3",
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1767766515, "lastModified": 1767123832,
"narHash": "sha256-Hr87qJDIi4rL/d0njZYPyKDjtom6lDF3AV2UZL+K/fk=", "narHash": "sha256-WI+DaMQLJ/QVUKCNk1gvo8y0Rw6C4uDx8BW1mRVVOMU=",
"owner": "notashelf", "owner": "notashelf",
"repo": "nvf", "repo": "nvf",
"rev": "ceaae0eb2ece9e06159d6de80b0709e38d77f6a4", "rev": "0390abd6736ff34a016afc66366d1f46372f28de",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -337,55 +207,12 @@
"root": { "root": {
"inputs": { "inputs": {
"ags": "ags", "ags": "ags",
"catppuccin": "catppuccin",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs_3", "nixpkgs": "nixpkgs_2",
"nvf": "nvf", "nvf": "nvf",
"spicetify-nix": "spicetify-nix",
"zed": "zed",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
}, },
"rust-overlay": {
"inputs": {
"nixpkgs": [
"zed",
"nixpkgs"
]
},
"locked": {
"lastModified": 1765465581,
"narHash": "sha256-fCXT0aZXmTalM3NPCTedVs9xb0egBG5BOZkcrYo5PGE=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "99cc5667eece98bb35dcf35f7e511031a8b7a125",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"spicetify-nix": {
"inputs": {
"nixpkgs": "nixpkgs_5",
"systems": "systems_2"
},
"locked": {
"lastModified": 1767502559,
"narHash": "sha256-om0IPjW850vhhIrNZ5tiXjsYuqyoI44IdE+I9AwZ96I=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
"rev": "806c1fdeb7af3e013215d14f5d9f06685fa6650f",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"repo": "spicetify-nix",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@@ -401,57 +228,22 @@
"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_6",
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1767801498,
"narHash": "sha256-BKzeTqSo1hTnxmjQSiQzERg2+NOYAHCibUVsQ49Ztgg=",
"owner": "zed-industries",
"repo": "zed",
"rev": "69acab7f81950588ea0bb0ab73f4f28df1c05931",
"type": "github"
},
"original": {
"owner": "zed-industries",
"repo": "zed",
"type": "github"
}
},
"zen-browser": { "zen-browser": {
"inputs": { "inputs": {
"home-manager": "home-manager_2", "nixpkgs": [
"nixpkgs": "nixpkgs_7" "nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1767763594, "lastModified": 1766377218,
"narHash": "sha256-5ysv8EuVAgDoYmNuXEUNf7vBzdeRaFxeIlIndv5HMvs=", "narHash": "sha256-y3g3OqPB0tmRjbHJNnJKivSQRtAJR+/9S1xbxBWEatg=",
"owner": "0xc000022070", "owner": "youwen5",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"rev": "8b2302d8c10369c9135552cc892da75cff5ddb03", "rev": "2f61341b32dd69c07e147188e67e09ba2bb99c33",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "0xc000022070", "owner": "youwen5",
"repo": "zen-browser-flake", "repo": "zen-browser-flake",
"type": "github" "type": "github"
} }

View File

@@ -13,19 +13,17 @@
nvf.url = "github:notashelf/nvf"; nvf.url = "github:notashelf/nvf";
zen-browser.url = "github:0xc000022070/zen-browser-flake"; zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
zed.url = "github:zed-industries/zed";
catppuccin.url = "github:catppuccin/nix";
}; };
outputs = { self, nixpkgs, nvf, zen-browser, spicetify-nix, zed, catppuccin, ... }@inputs: outputs = { self, nixpkgs, nvf, zen-browser, ... }@inputs:
let system = "x86_64-linux"; in let system = "x86_64-linux"; in
{ {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { nixosConfigurations.my-nixos = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
@@ -34,9 +32,10 @@
./configuration.nix ./configuration.nix
# inputs.zen-browser.packages."${system}".default # inputs.zen-browser.packages."${system}".default
# nvf.homeManagerModules.default # nvf.homeManagerModules.default
# inputs.zed.packages."${system}".default
catppuccin.nixosModules.catppuccin
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
# {
# home.packages = with inputs; [ zen-browser.packages.${system}.zen-browser ];
# }
]; ];
}; };
}; };

View File

@@ -8,18 +8,18 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/a4bfe07b-a6b5-47d9-80c7-f74b44f84f31"; { device = "/dev/disk/by-uuid/1d64861a-3d30-4b76-8a19-9a68618ddf3a";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/CB01-5AA6"; { device = "/dev/disk/by-uuid/580D-111D";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
@@ -31,8 +31,9 @@
# 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.enp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.enp0s31f6.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.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@@ -1,17 +1,15 @@
{ config, pkgs, lib, system, inputs, ... }: { config, pkgs, inputs, ... }:
{ {
home.username = "nico"; home.username = "n";
home.homeDirectory = "/home/nico"; home.homeDirectory = "/home/n";
imports = [ imports = [
./packages ./packages
inputs.spicetify-nix.homeManagerModules.default # inputs.zen-browser.homeModules.default
inputs.zen-browser.homeModules.default
inputs.catppuccin.homeModules.catppuccin
]; ];
nixpkgs = { nixpkgs = {
config = { config = {
allowUnfree = true; allowUnfree = true;
allowUnfreePredicate = (_: true); allowUnfreePredicate = (_: true);
@@ -20,80 +18,15 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
# floorp # floorp
# freetube
]; ];
# programs.zen-browser = {
programs.zen-browser.enable = true; # enable = true;
# };
catppuccin = {
enable = true;
accent = "mauve";
flavor = "mocha";
};
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 =
let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
in
{
enable = false;
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;
# 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
# ];
# };
} }

View File

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

View File

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

View File

@@ -0,0 +1,65 @@
[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

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

View File

@@ -0,0 +1,13 @@
{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,21 +2,24 @@
{ {
imports = [ imports = [
# ./ags # ./ags
./fuzzel
./other ./other
# ./floorp # ./sway
./sway # ./swaync
./swaync
./waybar ./waybar
./wpaperd ./wpaperd
./nvim ./nvim
./zed-editor
# ./emacs # ./emacs
./terminal ./terminal
./rofi ./rofi
./fuzzel # ./alacritty
# ./tmux
# ./mako
# ./qutebrowser
# ./hyprland
./niri ./niri
./hyprland
./zed-editor
./tmux
# ./vscode # ./vscode
# ./zen
]; ];
} }

View File

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

View File

@@ -12,6 +12,7 @@ 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)
@@ -232,13 +233,14 @@ 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
@@ -258,6 +260,7 @@ 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/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-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,46 +14,18 @@ outputs = { self, nixpkgs, flake-utils }:
allowUnfree = true; allowUnfree = true;
}; };
}; };
buildToolsVersion = "34.0.0"; androidSdk = pkgs.androidenv.androidSdk
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 # The customized SDK that we've made above androidSdk
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

@@ -1,60 +0,0 @@
{
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

@@ -1,44 +0,0 @@
{ 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/nico/.config/fuzzel/fuzzel.ini" = { home.file."/home/n/.config/fuzzel/fuzzel.ini" = {
source = ./fuzzel.ini; source = ./fuzzel.ini;
}; };

View File

@@ -1,6 +1,7 @@
dpi-aware=yes dpi-aware=yes
font=RobotoMonoNerdFont-Thin:size=12 font=RobotoMonoNerdFont-Thin:size=8
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,6 +67,8 @@ 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,10 +1,6 @@
input { input {
kb_layout = us,de kb_layout = us,de
kb_variant = kb_options=grp:alt_space_toggle
kb_model =
kb_options =
kb_rules =
kb_options=alt_space_toggle
follow_mouse = 1 follow_mouse = 1

View File

@@ -45,13 +45,14 @@ 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"; 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 /etc/nixos/packages/emacs/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 = {
@@ -71,7 +72,7 @@ programs.zsh = {
programs.kitty = { programs.kitty = {
enable = true; enable = false;
extraConfig = '' extraConfig = ''

View File

@@ -5,6 +5,25 @@
]; ];
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;
@@ -13,6 +32,10 @@ programs.starship = {
}; };
}; };
programs.carapace = {
enable = true;
enableNushellIntegration = true;
};
programs.zsh = { programs.zsh = {
@@ -28,7 +51,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 /home/n/Documents/Shells/flutter/init.el"; femacs = "emacs -nw --load /etc/nixos/packages/emacs/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 = {
@@ -60,6 +83,7 @@ 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

9
packages/mako/config Normal file
View File

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

12
packages/mako/default.nix Normal file
View File

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

View File

@@ -1,20 +1,3 @@
cursor {
xcursor-theme "Banana-Blue"
xcursor-size 30
}
// Mod+O Overview
// Make workspaces four times smaller than normal in the overview.
overview {
zoom 0.5
backdrop-color "#1e1e2e"
}
// Disable hotkey overlay at startup:
hotkey-overlay {
skip-at-startup
}
// This config is in the KDL format: https://kdl.dev // This config is in the KDL format: https://kdl.dev
// "/-" comments out the following node. // "/-" comments out the following node.
// Check the wiki for a full description of the configuration: // Check the wiki for a full description of the configuration:
@@ -30,8 +13,8 @@ input {
// For more information, see xkeyboard-config(7). // For more information, see xkeyboard-config(7).
// For example: // For example:
// layout "us,ru" layout "us,de"
// options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" options "grp:alt_shift_toggle"
} }
// Enable numlock on startup, omitting this setting disables it. // Enable numlock on startup, omitting this setting disables it.
@@ -80,13 +63,14 @@ input {
// focus-follows-mouse max-scroll-amount="0%" // focus-follows-mouse max-scroll-amount="0%"
} }
// You can configure outputs by their name, which you can find // You can configure outputs by their name, which you can find
// by running `niri msg outputs` while inside a niri instance. // by running `niri msg outputs` while inside a niri instance.
// The built-in laptop monitor is usually called "eDP-1". // The built-in laptop monitor is usually called "eDP-1".
// 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
@@ -96,10 +80,10 @@ input {
// 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@120.030" mode "1920x1080"
// 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 2 scale 1
// 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.
@@ -114,7 +98,14 @@ input {
// 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=0 y=0
}
output "HDMI-A-1" {
mode "1920x1080"
scale 1
transform "normal"
position x=1920 y=0
} }
// Settings that influence how windows are positioned and sized. // Settings that influence how windows are positioned and sized.
@@ -219,7 +210,7 @@ layout {
// You can enable drop shadows for windows. // You can enable drop shadows for windows.
shadow { shadow {
// Uncomment the next line to enable shadows. // Uncomment the next line to enable shadows.
// on // on
// By default, the shadow draws only around its window, and not behind it. // By default, the shadow draws only around its window, and not behind it.
// Uncomment this setting to make the shadow draw behind its window. // Uncomment this setting to make the shadow draw behind its window.
@@ -261,7 +252,7 @@ layout {
struts { struts {
// left 64 // left 64
// right 64 // right 64
top -6 // top 64
// bottom 64 // bottom 64
} }
} }
@@ -286,7 +277,7 @@ environment {
// Additionally, clients will be informed that they are tiled, removing some client-side rounded corners. // 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. // 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. // After enabling or disabling this, you need to restart the apps for this to take effect.
prefer-no-csd // prefer-no-csd
// You can change the path where screenshots are saved. // You can change the path where screenshots are saved.
// A ~ at the front will be expanded to the home directory. // A ~ at the front will be expanded to the home directory.
@@ -304,7 +295,7 @@ animations {
// off // off
// Slow down all animations by this factor. Values below 1 speed them up instead. // Slow down all animations by this factor. Values below 1 speed them up instead.
slowdown 0.8 // slowdown 3.0
} }
// Window rules let you adjust behavior for individual windows. // Window rules let you adjust behavior for individual windows.
@@ -380,10 +371,8 @@ 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"; }
Super+E hotkey-overlay-title="Umlaute" { spawn "bash" "-c" "echo 'aä\noö\nuü\nsß\nAÄ\nOÖ\nUÜ' | fuzzel -d | tr -d '\n aousAOU' | wl-copy"; }
// You can also use a shell. Do this if you need pipes, multiple commands, etc. // 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. // Note: the entire command goes as a single argument in the end.
@@ -394,6 +383,8 @@ 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

@@ -2,12 +2,12 @@
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
xwayland-satellite xwayland-satellite
# xdg-desktop-portal-gtk xdg-desktop-portal-gtk
# xdg-desktop-portal-gnome xdg-desktop-portal-gnome
nautilus nautilus
]; ];
home.file."/home/nico/.config/niri/config.kdl" = { home.file."/home/n/.config/niri/config.kdl" = {
source = ./config.kdl; source = ./config.kdl;
}; };
} }

View File

@@ -17,7 +17,7 @@ programs.neovim = {
enable = true; enable = true;
vimAlias = true; vimAlias = true;
}; };
catppuccin.nvim.enable = false;
programs.neovim.plugins = [ programs.neovim.plugins = [
pkgs.vimPlugins.lazy-nvim pkgs.vimPlugins.lazy-nvim
@@ -59,10 +59,6 @@ programs.neovim.plugins = [
".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/nvim-tree.lua".source = ./lua/plugins/nvim-tree.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/notify.lua".source = ./lua/plugins/notify.lua;
# ".config/nvim/lua/plugins/rest.lua".source = ./lua/plugins/rest.lua;
".config/nvim/lua/plugins/neominimap.lua".source = ./lua/plugins/neominimap.lua;
".config/nvim/lua/plugins/vim-tmux-navigator.lua".source = ./lua/plugins/vim-tmux-navigator.lua;
# ".config/nvim/lua/plugins/workspaces.lua".source = ./lua/plugins/workspaces.lua;
# ".config/nvim/lua/plugins/go.lua".source = ./lua/plugins/go.lua; # ".config/nvim/lua/plugins/go.lua".source = ./lua/plugins/go.lua;
# ".config/nvim/lua/plugins/typst.lua".source = ./lua/plugins/typst.lua; # ".config/nvim/lua/plugins/typst.lua".source = ./lua/plugins/typst.lua;

View File

@@ -46,8 +46,8 @@ end, { noremap = true, silent = true })
-- Lazy -- Lazy
require("config.lazy") require("config.lazy")
-- require("catppuccin").setup({}) require("catppuccin").setup({})
-- vim.cmd.colorscheme("catppuccin") vim.cmd.colorscheme("catppuccin")
-- css colors -- css colors
vim.opt.termguicolors = true vim.opt.termguicolors = true
@@ -57,6 +57,7 @@ require("nvim-highlight-colors").setup({})
require("lualine").setup() require("lualine").setup()
require("dapui").setup() require("dapui").setup()
require("ibl").setup() require("ibl").setup()
require("telescope").load_extension("flutter")
require("toggleterm").setup({}) require("toggleterm").setup({})
require("mini.animate").setup() require("mini.animate").setup()
require('nvim-autopairs').enable() require('nvim-autopairs').enable()
@@ -109,17 +110,17 @@ dap.configurations.cpp = dap.configurations.gdb
dap.configurations.rust = dap.configurations.gdb dap.configurations.rust = dap.configurations.gdb
-------------------------------------------- --------------------------------------------
-- local builtin = require("telescope.builtin") local builtin = require("telescope.builtin")
local conform = require("conform") local conform = require("conform")
-- Love binds -- Love binds
vim.keymap.set("n", "<leader>lr", ":LoveRun<CR>", { desc = "Love run" }) 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" })

View File

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

View File

@@ -14,9 +14,5 @@ return {
indentscope_color = "", indentscope_color = "",
}, },
} }
}, }
config = function()
require("catppuccin").setup({})
vim.cmd.colorscheme("catppuccin")
end
} }

View File

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

@@ -10,11 +10,6 @@ return {
view = { view = {
width = 30, width = 30,
}, },
renderer = {
indent_markers = {
enable = true;
}
}
}) })
end, end,
} }

View File

@@ -1,10 +0,0 @@
return {
"rest-nvim/rest.nvim",
dependencies = {
"nvim-treesitter/nvim-treesitter",
opts = function (_, opts)
opts.ensure_installed = opts.ensure_installed or {}
table.insert(opts.ensure_installed, "http")
end,
}
}

View File

@@ -1,16 +1,4 @@
return { return {
"nvim-telescope/telescope-file-browser.nvim", "nvim-telescope/telescope-file-browser.nvim",
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }, dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
config = function()
local telescope = require("telescope")
telescope.load_extension("flutter")
local builtin = require("telescope.builtin")
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>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>fl", ": Telescope flutter commands<CR>", { desc = "Open Telescope flutter" })
vim.keymap.set("n", "<leader>fl", ":Telescope flutter commands<CR>", { desc = "Open Telescope flutter" })
end,
} }

View File

@@ -1,18 +0,0 @@
return {
"christoomey/vim-tmux-navigator",
cmd = {
"TmuxNavigateLeft",
"TmuxNavigateDown",
"TmuxNavigateUp",
"TmuxNavigateRight",
"TmuxNavigatePrevious",
"TmuxNavigatorProcessList",
},
keys = {
{ "<c-h>", "<cmd><C-U>TmuxNavigateLeft<cr>" },
{ "<c-j>", "<cmd><C-U>TmuxNavigateDown<cr>" },
{ "<c-k>", "<cmd><C-U>TmuxNavigateUp<cr>" },
{ "<c-l>", "<cmd><C-U>TmuxNavigateRight<cr>" },
{ "<c-\\>", "<cmd><C-U>TmuxNavigatePrevious<cr>" },
},
}

View File

@@ -1,16 +0,0 @@
return {
"natecraddock/workspaces.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
},
config = function ()
require("workspaces").setup()
require("telescope").load_extension("workspaces");
vim.keymap.set("n", "<leader>w", "", { desc = "Open telescope workspaces" })
vim.keymap.set("n", "<leader>wa", ":WorkspacesAdd ", { desc = "Add workspace" })
vim.keymap.set("n", "<leader>wo", ":Telescope workspaces<CR>", { desc = "Show workspaces" })
vim.keymap.set("n", "<leader>wd", ":WorkspacesRemove ", { desc = "Remove workspace" })
end
}

View File

@@ -1,3 +1,16 @@
{ 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

@@ -15,10 +15,10 @@ set preview_images_method kitty
programs.git = { programs.git = {
enable = true; enable = true;
settings.user.name = "Nico"; settings = {
settings.user.email = "nico@getmemy.coffee";
settings.extraConfig = {
safe.directory = "/etc/nixos"; safe.directory = "/etc/nixos";
user.name = "Nico";
user.email = "nicovessen@gmail.com";
}; };
}; };

View File

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

View File

@@ -3,9 +3,9 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
rofi-screenshot rofi-screenshot
rofi-power-menu rofi-power-menu
bitwarden-menu
]; ];
catppuccin.rofi.enable = false;
programs.rofi = { programs.rofi = {
enable = true; enable = true;

View File

@@ -3,6 +3,7 @@
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

View File

@@ -6,26 +6,20 @@
config = rec { config = rec {
modifier = "Mod4"; modifier = "Mod4";
# Use kitty as default terminal # Use kitty as default terminal
terminal = "kitty"; terminal = "alacritty";
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
@@ -33,6 +27,23 @@ for_window [class="Spotify"] scratchpad show
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
@@ -44,10 +55,10 @@ for_window [class="Spotify"] scratchpad show
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,26 +13,37 @@
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
@@ -44,10 +55,10 @@ for_window [class="Spotify"] scratchpad show
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

File diff suppressed because it is too large Load Diff

View File

@@ -6,6 +6,7 @@
]; ];
programs.nushell = { programs.nushell = {
enable = false; enable = false;
extraConfig = '' extraConfig = ''
@@ -28,7 +29,6 @@ programs.carapace = {
enableNushellIntegration = true; enableNushellIntegration = true;
}; };
# programs.thefuck.enable = true;
programs.starship.enable = true; programs.starship.enable = true;
@@ -39,61 +39,35 @@ 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";
dvu = "devenv up";
dvs = "devenv shell";
}; };
initContent = '' initContent = ''
if [ "$TMUX" = "" ]; then exec tmux; fi
eval "$(starship init zsh)" 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')
export ZVM_VI_INSERT_ESCAPE_BINDKEY=jk
function zvm_after_init() {
bindkey "^[[1;5C" forward-word && bindkey "^[[1;5D" backward-word
}
autoload -U select-word-style
select-word-style bash
''; '';
zplug = { zplug = {
enable = false; enable = false;
plugins = [ plugins = [
{ name = "jeffreytse/zsh-vi-mode"; } { name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation
]; ];
}; };
oh-my-zsh = { oh-my-zsh = {
enable = false; enable = true;
# plugins = [ "thefuck" ]; plugins = [ ];
# theme = ""; # theme = "";
}; };
plugins = [
{
name = "vi-mode";
src = pkgs.zsh-vi-mode;
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
}
];
}; };
programs.fzf = {
programs.ghostty = {
enable = true; enable = true;
}; enableZshIntegration = true;
catppuccin.ghostty.enable = false;
home.file."/home/nico/.config/ghostty/config" = {
source = ./ghostty-config;
}; };
programs.zoxide = { programs.zoxide = {
@@ -101,6 +75,15 @@ 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

@@ -1,30 +1,24 @@
# palette = 0=#45475a palette = 0=#45475a
# palette = 1=#f38ba8 palette = 1=#f38ba8
# palette = 2=#a6e3a1 palette = 2=#a6e3a1
# palette = 3=#f9e2af palette = 3=#f9e2af
# palette = 4=#89b4fa palette = 4=#89b4fa
# palette = 5=#f5c2e7 palette = 5=#f5c2e7
# palette = 6=#94e2d5 palette = 6=#94e2d5
# palette = 7=#bac2de palette = 7=#bac2de
# palette = 8=#585b70 palette = 8=#585b70
# palette = 9=#f38ba8 palette = 9=#f38ba8
# palette = 10=#a6e3a1 palette = 10=#a6e3a1
# palette = 11=#f9e2af palette = 11=#f9e2af
# palette = 12=#89b4fa palette = 12=#89b4fa
# palette = 13=#f5c2e7 palette = 13=#f5c2e7
# palette = 14=#94e2d5 palette = 14=#94e2d5
# palette = 15=#a6adc8 palette = 15=#a6adc8
# background = 1e1e2e background = 1e1e2e
# foreground = cdd6f4 foreground = cdd6f4
# cursor-color = f5e0dc cursor-color = f5e0dc
# cursor-text = 1e1e2e cursor-text = 1e1e2e
# selection-background = 353749 selection-background = 353749
# selection-foreground = cdd6f4 selection-foreground = cdd6f4
background-opacity = 0.8
background-opacity-cells = true
# background-blur = true
theme = Catppuccin Mocha
gtk-titlebar = false gtk-titlebar = false

View File

@@ -1,66 +1,30 @@
{ pkgs, config, lib, inputs, ... }: { pkgs, config, lib,... }:
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
]; ];
catppuccin.tmux = {
enable = true;
extraConfig = ''
set -g @catppuccin_window_status_style "rounded"
'';
flavor = "mocha";
};
programs.tmux = { programs.tmux = {
enable = true; enable = true;
terminal = "tmux-256color"; terminal = "tmux-256color";
disableConfirmationPrompt = true; disableConfirmationPrompt = true;
keyMode = "vi";
# newSession = true;
extraConfig = '' extraConfig = ''
# set-option -sa terminal-overrides ",xterm*:Tc"
# unbind C-b # set -g @catppuccin_flavor 'mocha'
# set -g prefix C-t # set -g @catppuccin_window_status_style "rounded"
# bind C-t send-prefix # set -g default-terminal "xterm-256color"
# set -ga terminal-overrides ",*256col*:Tc"
# vim-like pane resizing # set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
bind -r C-k resize-pane -U # set-environment -g COLORTERM "truecolor"
bind -r C-j resize-pane -D #
bind -r C-h resize-pane -L # run-shell ${pkgs.tmuxPlugins.catppuccin}/share/tmux-plugins/catppuccin/catppuccin.tmux
bind -r C-l resize-pane -R
unbind k
unbind j
unbind h
unbind l
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# and now unbind keys
unbind Up
unbind Down
unbind Left
unbind Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right
set -g base-index 1 set -g base-index 1
set -g pane-base-index 1 set -g pane-base-index 1
set-window-option -g pane-base-index 1 set-window-option -g pane-base-index 1
set-option -g renumber-windows on set-option -g renumber-windows on
unbind s bind '"' split-window -v -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}"
unbind x
bind x split-window -h -c "#{pane_current_path}"
set -g mouse on set -g mouse on
@@ -68,32 +32,45 @@ bind -n M-H previous-window
bind -n M-L next-window bind -n M-L next-window
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# 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 = with pkgs.tmuxPlugins; [ plugins = with pkgs.tmuxPlugins; [
# vim-tmux-navigator { catppuccin {
# plugin = vim-tmux-navigator; plugin = catppuccin;
# } extraConfig = ''
# tmux-which-key { set -g @plugin 'catppuccin/tmux#2.1.3'
# plugin = tmux-which-key; set -g @catppuccin_window_status_style "rounded"
# } set -g @catppuccin_flavor 'mocha'
# 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
]; ];
}; };

View File

@@ -5,40 +5,17 @@
"spacing": 0, "spacing": 0,
"modules-left": ["clock", "niri/workspaces"], "modules-left": ["clock", "niri/workspaces"],
"modules-center": [ ], "modules-center": [ ],
"modules-right": [ "modules-right": ["network", "battery", "cpu", "memory", "custom/notification", "pulseaudio", "tray"],
"network",
"custom/separator",
"cpu",
"custom/separator",
"memory",
"custom/separator",
"custom/notification",
"custom/separator",
"pulseaudio",
"custom/separator",
"tray"
],
"tray": { "custom/keyboard-layout": {
"spacing": 10, "interval": 1,
"show-passive-items": true "exec": "hyprctl devices -j | jq -r '.keyboards[] | .active_keymap' | head -n1 | cut -c1-2 | tr 'a-z' 'A-Z'"
}, },
"custom/keyboard-layout": { "custom/notification": {
"interval": 1, "on-click": "swaync-client -t",
"exec": "hyprctl devices -j | jq -r '.keyboards[] | .active_keymap' | head -n1 | cut -c1-2 | tr 'a-z' 'A-Z'" "format": "♥"
}, },
"custom/separator": {
"format": "|",
"interval": "once",
"tooltip": false
},
"custom/notification": {
"on-click": "swaync-client -t",
"format": "♥"
},
"cpu": { "cpu": {
"interval": 5, "interval": 5,
@@ -62,12 +39,24 @@
}, },
"network": { "network": {
"interval": 1, "format-wifi": " {essid} {signalStrength}%",
"format": "{ifname}", "format-disconnected": " No Connection"
"format-wifi": " {signalStrength}%  {bandwidthDownBytes}  {bandwidthUpBytes} {ipaddr} {essid}", },
"format-disconnected": "No Connection",
"format-ethernet": " {bandwidthDownBytes}  {bandwidthUpBytes} {ipaddr}" "battery": {
"format": "{capacity}% {icon}",
// "format-icons": [, ""]
"format-icons": {
"default": [ "", "", "" ],
"charging": [ "" ],
"warning": "",
"critical": ""
},
"states": {
"warning": 20,
"critical": 10
}
} }
} }

View File

@@ -11,8 +11,7 @@
window#waybar { window#waybar {
/* background: rgba(0,130,130,0); */ /* background: rgba(0,130,130,0); */
/* background: rgba(0,0,0,0.9); */ background: @base;
background: transparent;
} }
#clock, #clock,
@@ -26,22 +25,14 @@ window#waybar {
#custom-notification, #custom-notification,
#tray, #tray,
#battery{ #battery{
/* background: rgba(10,10,10,100); */ background: rgba(10,10,10,100);
background: @crust; opacity: 0.8;
/* opacity: 0.8; */
/* color: #00ffff; */ /* color: #00ffff; */
color: @mauve; color: @mauve;
padding: 0px 10px ; padding: 0px 10px ;
margin: 3px 0px; margin: 3px 0px;
} }
#custom-separator {
background: @crust;
color: @mauve;
padding: 0px 2px ;
margin: 1px 0px;
}
#workspaces button{ #workspaces button{
color: @mauve; color: @mauve;
border-radius: 7px; border-radius: 7px;
@@ -71,11 +62,11 @@ window#waybar {
background: none; background: none;
} }
#network { #network{
border-radius: 10px 0px 0px 10px; border-radius: 10px 0px 0px 10px;
} }
#tray { #tray{
border-radius: 0px 10px 10px 0px; border-radius: 0px 10px 10px 0px;
margin-right: 5px margin-right: 5px
} }

View File

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

View File

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

View File

@@ -4,7 +4,6 @@
home.file."/home/nico/.config/zed/settings.json" = { home.file."/home/nico/.config/zed/settings.json" = {
source = ./settings.json; source = ./settings.json;
}; };
catppuccin.zed.enable = false;
programs.zed-editor = { programs.zed-editor = {
enable = true; enable = true;
}; };

51
packages/zen/default.nix Normal file
View File

@@ -0,0 +1,51 @@
{ config, pkgs, lib, inputs, ... }:
let
zenBrowser = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser;
extension = shortId: guid: {
name = guid;
value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed";
};
};
prefs = {
"extensions.autoDisableScopes" = 0;
"extensions.pocket.enabled" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
extensions = [
(extension "ublock-origin" "uBlock0@raymondhill.net")
(extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
(extension "styl-us" "{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}")
(extension "vimium-ff" "{d7742d87-e61d-4b78-b8a1-b469842139fa}")
];
in
{
home.packages = [
(pkgs.wrapFirefox
zenBrowser
{
extraPrefs = lib.concatLines (
lib.mapAttrsToList (
name: value: ''lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});''
) prefs
);
extraPolicies = {
DisableTelemetry = true;
ExtensionSettings = builtins.listToAttrs extensions;
SearchEngines = {
Default = "ddg";
};
};
}
)
];
}

53
packages/zen/zen-mod.nix Normal file
View File

@@ -0,0 +1,53 @@
{
inputs,
pkgs,
lib,
...
}:
let
extension = shortId: guid: {
name = guid;
value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed";
};
};
prefs = {
"extensions.autoDisableScopes" = 0;
"extensions.pocket.enabled" = false;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
extensions = [
(extension "ublock-origin" "uBlock0@raymondhill.net")
(extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
(extension "styl-us" "{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}")
(extension "vimium-ff" "{d7742d87-e61d-4b78-b8a1-b469842139fa}")
];
in
{
environment.systemPackages = [
(pkgs.wrapFirefox
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.zen-browser-unwrapped
{
extraPrefs = lib.concatLines (
lib.mapAttrsToList (
name: value: ''lockPref(${lib.strings.toJSON name}, ${lib.strings.toJSON value});''
) prefs
);
extraPolicies = {
DisableTelemetry = true;
ExtensionSettings = builtins.listToAttrs extensions;
SearchEngines = {
Default = "ddg";
};
};
}
)
];
}

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 pc git push origin laptop

View File

@@ -1,198 +1,53 @@
{ {
description = "PlatformIO Development Environment with VSCodium"; description = "Arduino";
inputs = { 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
outputs = { self, nixpkgs }: # (vscode-with-extensions.override {
let # vscode = vscodium;
system = "x86_64-linux"; # vscodeExtensions = with vscode-extensions; [
pkgs = import <nixpkgs> { inherit system; }; # 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";
# # }
# ];
# })
];
platformioVsix = pkgs.fetchurl { shellHook = ''
url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/platformio/vsextensions/platformio-ide/3.3.4/vspackage?targetPlatform=linux-x64"; zsh
sha256 = "sha256-Ri5TZDxSsW1cW33Rh+l/5Fxl23MNzFEjcFGLDx/xzT8=";
};
patchedExtension = pkgs.stdenv.mkDerivation { exit
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;
};
};
} }

View File

@@ -1,198 +0,0 @@
{
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;
};
};
}

View File

@@ -1,103 +0,0 @@
{
"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
}

View File

@@ -1,24 +0,0 @@
{
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/
}

View File

@@ -1,15 +0,0 @@
# 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

View File

@@ -1,100 +0,0 @@
{
"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
}

View File

@@ -1,111 +0,0 @@
{
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";
};
});
}

View File

@@ -1,43 +0,0 @@
{
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
'';
};
});
}

View File

@@ -1,109 +0,0 @@
{
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

@@ -1,32 +0,0 @@
{
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
'';
};
});
}

View File

@@ -1,53 +0,0 @@
{
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

@@ -1,33 +0,0 @@
{
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
'';
};
});
}

View File

@@ -1,73 +0,0 @@
{
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/''
];
};
}
);
}

View File

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

View File

@@ -1,109 +0,0 @@
{
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,6 +18,7 @@
GOPATH="${go}"; GOPATH="${go}";
buildInputs = [ buildInputs = [
go go
gopls
]; ];
shellHook = '' shellHook = ''

View File

@@ -1,53 +0,0 @@
{
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

@@ -1,33 +0,0 @@
{
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
'';
};
});
}

View File

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

View File

@@ -1,106 +0,0 @@
{
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";
};
});
}