[Nix] Cleans up linux host root [neovim] Renames buffer picker

This commit is contained in:
2025-03-02 14:29:35 -08:00
parent 2fa15c9e2a
commit 4c5ea117f9
3 changed files with 10 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ return {
function() function()
Snacks.picker.buffers() Snacks.picker.buffers()
end, end,
desc = "Open Files", desc = "Buffers",
}, },
{ "<leader><comma>", false }, { "<leader><comma>", false },
}, },

View File

@@ -1,33 +1,27 @@
{ self, nixpkgs, inputs, ... }: { nixpkgs, inputs, ... }:
let nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
# TODO: Fix this so it doesn't warn about wanting readOnlyPkgs
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [ modules = [
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
{ {
home-manager.users.drew = { pkgs, inputs, ... }: nixpkgs.config.allowUnfree = true;
home-manager.users.drew =
{ ... }:
{ {
imports = [ imports = [
./drew.nix ./drew.nix
]; ];
}; };
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { home-manager.extraSpecialArgs = {
inherit inputs; inherit inputs;
inherit pkgs;
}; };
} }
]; ];
specialArgs = { specialArgs = {
inherit inputs; inherit inputs;
inherit pkgs;
}; };
} }

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, self, ... }: { pkgs, ... }:
{ {
imports = map (x: ../../../home-manager + x) [ imports = map (x: ../../../home-manager + x) [
"/features/linux-desktop.nix" "/features/linux-desktop.nix"