Skip to content

Commit

Permalink
✨ (flake.nix) Add xremap overlay for HomeManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Comamoca committed Nov 25, 2024
1 parent fd6c057 commit 07c9874
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# nixpkgs.url = "github:NixOS/nixpkgs/master";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";

home-manager = {
Expand Down Expand Up @@ -52,7 +53,7 @@
(import emacs-overlay)
nak.overlays.default
# (import emacs.overlay)
mozilla-overlay.overlays.firefox
mozilla-overlay.overlays.firefox
];
in
# code = _: s: s;
Expand All @@ -64,26 +65,33 @@
};

nixosConfigurations = {
NixOS = inputs.nixpkgs.lib.nixosSystem {
NixOS = inputs.nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
inputs.catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
# xremap.nixosModules.default
# disko.nixosModules.disko
# ({ config, ... }: {
# # system.stateVersion = config.system.stateVersion;
# disko.devices.disk.main.imageSize = "10G";
# })
./configuration.nix
xremap.nixosModules.default
# disko.nixosModules.disko
# ({ config, ... }: {
# # system.stateVersion = config.system.stateVersion;
# disko.devices.disk.main.imageSize = "10G";
# })
# {
# nixpkgs.overlays = overlays ++ [
# (final: prev: {
# xremap = xremap.packages.${system}.default;
# })
# ];
# }
];
specialArgs = {
inherit inputs;
};
};
};
homeConfigurations = {
Home = inputs.home-manager.lib.homeManagerConfiguration {
Home = inputs.home-manager.lib.homeManagerConfiguration rec {
pkgs = import inputs.nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
Expand All @@ -98,7 +106,8 @@
nixpkgs.overlays = overlays ++ [
(final: prev: {
# nak = inputs.nak.packages.x86_64-linux.default;
})
xremap = xremap.packages.${"x86_64-linux"}.default;
})
];
}
];
Expand Down

0 comments on commit 07c9874

Please sign in to comment.