Skip to content

Commit

Permalink
Pin nixops because of NixOS/nixops#1216
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeDupuis committed Feb 20, 2020
1 parent 9965cf4 commit 2332fdd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions overlay/nixops.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
self: super:
let
nixopsLibvirtdSrc = self.fetchFromGitHub {
owner = "nix-community";
repo = "nixops-libvirtd";
sha256 = "0g2ag4mhgrxws3h4q8cvfh4ks1chgpjm018ayqd48lagyvi32l8m";
rev = "1c29f6c716dad9ad58aa863ebc9575422459bf95";
};
nixopsLibvirtdPlugin = self.callPackage "${nixopsLibvirtdSrc}/release.nix" {};
nixopsSrc = self.fetchFromGitHub {
owner = "NixOS";
repo = "nixops";
sha256 = "0irf9wha2rxla6z7mywj5z29bvjbpwlxqj2s29ygsbhp6hnlbzzz";
rev = "4cfb70513bad149183adc3ac741c176d83b0e9d5";
};
nixopsPlugins = _: [ nixopsLibvirtdPlugin ];

in
{
nixops = (self.callPackage "${nixopsSrc}/release.nix" { p = nixopsPlugins; }).build.x86_64-linux;
}
4 changes: 3 additions & 1 deletion profiles/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
services.openssh.enable = true;
services.openssh.passwordAuthentication = false;

nixpkgs.overlays = [ (self: super: {
nixpkgs.overlays = [
(import ../overlay/nixops.nix)
(self: super: {
nixos-generators = self.callPackage ../packages/nixos-generators {};
#xerox6280 = self.callPackage ../packages/xerox6280 {};
pdfarranger = self.callPackage ../packages/pdfarranger.nix {};
Expand Down

2 comments on commit 2332fdd

@adamlwgriffiths
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your repo helped me restructure my configs and also work around the "error: cannot figure out user name" issue.
Much appreciated.

@JoeDupuis
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamlwgriffiths Happy that it saved you some headache!
I took the setup/layout from a friend’s config.
You might be interested in checking it out too:
https://gitlab.com/samueldr/nixos-configuration

Please sign in to comment.