Created
January 29, 2024 19:23
-
-
Save Patryk27/bdc8d856cb66b8cac4201b05ab411653 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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