From 0905303cf4babf5b9b9476e8e7efae4cc423c7ef Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 27 Aug 2024 23:53:40 +0200 Subject: [PATCH] add bindings for buffers --- flake.lock | 16 ++++++++++++++++ flake.nix | 12 ++++++++---- home/base/programs/nixvim/keymaps.nix | 7 +++++++ modules/gnome.nix | 1 + modules/system/core.nix | 2 ++ 5 files changed, 34 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 877e362..ee4fda3 100644 --- a/flake.lock +++ b/flake.lock @@ -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", diff --git a/flake.nix b/flake.nix index 92e2789..b0d03f6 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = { diff --git a/home/base/programs/nixvim/keymaps.nix b/home/base/programs/nixvim/keymaps.nix index 9d91c34..80d8e62 100644 --- a/home/base/programs/nixvim/keymaps.nix +++ b/home/base/programs/nixvim/keymaps.nix @@ -16,6 +16,13 @@ desc = "Find projects"; }; } + { + action = "Telescope buffers"; + key = "fb"; + options = { + desc = "Find buffers"; + }; + } { action = "Neotree toggle"; key = "ft"; diff --git a/modules/gnome.nix b/modules/gnome.nix index fe7077a..1b565c3 100644 --- a/modules/gnome.nix +++ b/modules/gnome.nix @@ -20,6 +20,7 @@ environment.systemPackages = with pkgs; [ gnome-tweaks + gnome-power-manager ]; }; } diff --git a/modules/system/core.nix b/modules/system/core.nix index e2a2e43..a5f65b5 100644 --- a/modules/system/core.nix +++ b/modules/system/core.nix @@ -18,6 +18,8 @@ # automount services.udisks2.enable = true; + services.fwupd.enable = true; + nixpkgs.config.allowUnfree = true; hardware.enableAllFirmware = true;