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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1724479785, "lastModified": 1724479785,
@ -478,6 +493,7 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixvim": "nixvim", "nixvim": "nixvim",
"shells": "shells", "shells": "shells",

View file

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

View file

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

View file

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

View file

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