Skip to content

Instantly share code, notes, and snippets.

@rajivr

rajivr/flake.nix Secret

Created December 18, 2020 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajivr/35008e8e2fa26e048a9a1d9892c27837 to your computer and use it in GitHub Desktop.
Save rajivr/35008e8e2fa26e048a9a1d9892c27837 to your computer and use it in GitHub Desktop.
{
inputs.nixpkgs.url = "nixpkgs/nixos-20.09";
inputs.home-manager = {
url = "github:nix-community/home-manager/release-20.09";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.nur.url = "github:nix-community/NUR";
outputs = { self, nixpkgs, home-manager, nur }: {
nixosConfigurations.thinkpad = nixpkgs.lib.nixosSystem {
modules =
[
(
{ ... }: {
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
nix.registry.nixpkgs.flake = nixpkgs;
nixpkgs.overlays = [
nur.overlay
];
}
)
home-manager.nixosModules.home-manager
nixpkgs.nixosModules.notDetected
./machines/thinkpad/configuration.nix
];
system = "x86_64-linux";
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment