add bindings for buffers

This commit is contained in:
Anthony Rodriguez 2024-08-27 23:53:40 +02:00
parent 59ba40ae0d
commit 0905303cf4
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
5 changed files with 34 additions and 4 deletions

View file

@ -393,6 +393,21 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1724575805,
"narHash": "sha256-OB/kEL3GAhUZmUfkbPfsPhKs0pRqJKs0EEBiLfyKZw8=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "9fc19be21f0807d6be092d70bf0b1de0c00ac895",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1724479785,
@ -478,6 +493,7 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim",
"shells": "shells",

View file

@ -1,3 +1,4 @@
{
description = "nezia's nixos configuration";
inputs = {
@ -22,9 +23,13 @@
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, nixvim, sops-nix, stylix, ... }@inputs:
outputs = { nixpkgs, nixos-hardware, home-manager, nixvim, sops-nix, stylix, ... }@inputs:
let
username = "nezia";
system = "x86_64-linux";
@ -51,9 +56,8 @@
configureSystem = hostname: homeConfig: nixpkgs.lib.nixosSystem {
system = system;
modules = commonModules hostname ++ [
{ home-manager.users.${username} = import homeConfig; }
];
modules = commonModules hostname ++ [ { home-manager.users."${username}" = import homeConfig; } ]
++ (if hostname == "vamos" then [ nixos-hardware.nixosModules.framework-13-7040-amd ] else []);
};
in {
nixosConfigurations = {

View file

@ -16,6 +16,13 @@
desc = "Find projects";
};
}
{
action = "<cmd>Telescope buffers<CR>";
key = "<leader>fb";
options = {
desc = "Find buffers";
};
}
{
action = "<cmd>Neotree toggle<CR>";
key = "<leader>ft";

View file

@ -20,6 +20,7 @@
environment.systemPackages = with pkgs; [
gnome-tweaks
gnome-power-manager
];
};
}

View file

@ -18,6 +18,8 @@
# automount
services.udisks2.enable = true;
services.fwupd.enable = true;
nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true;