Skip to content

Instantly share code, notes, and snippets.

@Patryk27
Created January 29, 2024 19:23
Show Gist options
  • Save Patryk27/bdc8d856cb66b8cac4201b05ab411653 to your computer and use it in GitHub Desktop.
Save Patryk27/bdc8d856cb66b8cac4201b05ab411653 to your computer and use it in GitHub Desktop.
{
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
# Recent nixpkgs known to work with pcloud:
nixpkgs-pcloud-base = {
url = "github:nixos/nixpkgs/a575c243c23e2851b78c00e9fa245232926ec32f";
};
};
outputs =
{ self
, nixpkgs
, nixpkgs-pcloud-base
}:
{
nixosConfigurations = {
machine =
let
nixpkgs-pcloud-base' = import nixpkgs-pcloud-base {
system = "x86_64-linux";
};
in
nixpkgs.lib.nixosSystem {
# ...
modules = [
# ...
({ pkgs, ... }: {
environment.systemPackages = [
(nixpkgs-pcloud-base'.pkgs.pcloud.overrideAttrs (old: {
src = pkgs.pcloud.src;
}))
];
})
];
};
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment