I want to share a base home-manager configuration across multiple systems. I prefer to use Git submodule in this case. Unfortunately, it does not work …
flake.nix of main Git repository:
{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
base = {
url = "git+file:./base";
flake = false;
};
};
outputs = { nixpkgs, home-manager, base, ... }@inputs:
let
system = "x86_64-linux";
in
{
defaultPackage.x86_64-linux = home-manager.defaultPackage.x86_64-linux;
homeConfigurations = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};
modules = [
./home.nix
base
];
};
};
default.nix in submodule
{ config, pkgs, lib, ... }:
{
home.packages = with pkgs; [
k9s
];
}
Error:
error: The option `dirtyRev' does not exist. Definition values:
- In `<unknown-file>': "90808699c816dd5157c1bffda72821c2bf37ad47-dirty"
How can I fix this issue?
Thanks in Advance!