Compare commits

...

4 commits

Author SHA1 Message Date
6a4c1b34bf
Autoformat 2024-12-02 23:09:33 +01:00
dd5a1d52da
NixVim: Add Rust 2024-12-02 23:08:51 +01:00
265b1ab049
Remove nixos-hardware input override 2024-12-02 23:08:34 +01:00
4b2997c4de
NixVim: Make some keybinds silent 2024-12-02 23:08:18 +01:00
6 changed files with 166 additions and 156 deletions

View file

@ -12,10 +12,7 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hardware = { hardware.url = "github:nixos/nixos-hardware";
url = "github:nixos/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = { disko = {
url = "github:nix-community/disko"; url = "github:nix-community/disko";
@ -73,13 +70,12 @@
}; };
}; };
outputs = outputs = {
{ self self,
, nixpkgs nixpkgs,
, home-manager home-manager,
, ... ...
} @ inputs: } @ inputs: let
let
inherit (self) outputs; inherit (self) outputs;
# Supported systems for your flake packages, shell, etc. # Supported systems for your flake packages, shell, etc.
systems = [ systems = [
@ -93,8 +89,7 @@
# pass to it, with each system as an argument # pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems; forAllSystems = nixpkgs.lib.genAttrs systems;
vars = import ./vars.nix; vars = import ./vars.nix;
in in {
{
# Your custom packages # Your custom packages
# Accessible through 'nix build', 'nix shell', etc # Accessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});

View file

@ -17,6 +17,7 @@
key = "<leader>ch"; key = "<leader>ch";
action = "<cmd>noh<CR>"; action = "<cmd>noh<CR>";
options = { options = {
silent = true;
desc = "Clear Highlighting"; desc = "Clear Highlighting";
}; };
} }
@ -41,6 +42,7 @@
key = "<C-n>"; key = "<C-n>";
action = "<Cmd>Neotree toggle<CR>"; action = "<Cmd>Neotree toggle<CR>";
options = { options = {
silent = true;
desc = "Toggle Neotree"; desc = "Toggle Neotree";
}; };
} }
@ -81,6 +83,7 @@
key = "<c-k>"; key = "<c-k>";
action = ":wincmd k<CR>"; action = ":wincmd k<CR>";
options = { options = {
silent = true;
desc = "Go Up"; desc = "Go Up";
}; };
} }
@ -89,6 +92,7 @@
key = "<c-j>"; key = "<c-j>";
action = ":wincmd j<CR>"; action = ":wincmd j<CR>";
options = { options = {
silent = true;
desc = "Go Down"; desc = "Go Down";
}; };
} }
@ -97,6 +101,7 @@
key = "<c-h>"; key = "<c-h>";
action = ":wincmd h<CR>"; action = ":wincmd h<CR>";
options = { options = {
silent = true;
desc = "Go Left"; desc = "Go Left";
}; };
} }
@ -105,6 +110,7 @@
key = "<c-l>"; key = "<c-l>";
action = ":wincmd l<CR>"; action = ":wincmd l<CR>";
options = { options = {
silent = true;
desc = "Go Right"; desc = "Go Right";
}; };
} }

View file

@ -1,5 +1,8 @@
{ {
programs.nixvim.plugins.lsp = { programs.nixvim.plugins = {
rustaceanvim.enable = true;
lsp = {
enable = true; enable = true;
inlayHints = true; inlayHints = true;
@ -22,4 +25,5 @@
}; };
}; };
}; };
};
} }

View file

@ -1,7 +1,8 @@
{ inputs {
, pkgs inputs,
, vars pkgs,
, ... vars,
...
}: { }: {
imports = [inputs.arkenfox.hmModules.default]; imports = [inputs.arkenfox.hmModules.default];
home.file.".mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma5Packages.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json"; home.file.".mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma5Packages.plasma-browser-integration}/lib/mozilla/native-messaging-hosts/org.kde.plasma.browser_integration.json";

View file

@ -1,11 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ {
imports = config,
[ (modulesPath + "/installer/scan/not-detected.nix") lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];