Comments (6)
modSha256
was used in 20.03. Starting with 20.09 there is vendorSha256
. Can you upgrade?
from sops-nix.
@Mic92 Thanks for the insight! I wanted to try and upgrade but for some reason "niv update nixpkgs -b nixos-20.09" is saying that nixos-20.09 tag/commit doesn't exist.
Update nixpkgs
FATAL: Cannot get latest revision for branch 'nixos-20.09' (NixOS/nixpkgs-channels)
The request failed: Response {responseStatus = Status {statusCode = 422, statusMessage = "Unprocessable Entity"}, responseVersion = HTTP/1.1, responseHeaders = [("server","GitHub.com"),("date","Thu, 12 Nov 2020 13:44:01 GMT"),("content-type","application/json; charset=utf-8"),("content-length","130"),("status","422 Unprocessable Entity"),("x-github-media-type","github.v3; param=sha"),("access-control-expose-headers","ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"),("access-control-allow-origin","*"),("strict-transport-security","max-age=31536000; includeSubdomains; preload"),("x-frame-options","deny"),("x-content-type-options","nosniff"),("x-xss-protection","1; mode=block"),("referrer-policy","origin-when-cross-origin, strict-origin-when-cross-origin"),("content-security-policy","default-src 'none'"),("vary","Accept-Encoding, Accept, X-Requested-With"),("X-Ratelimit-Limit","60"),("X-Ratelimit-Remaining","58"),("X-Ratelimit-Reset","1605192024"),("X-Ratelimit-Used","2"),("X-GitHub-Request-Id","88A2:4222:C0146D:1A0A2B0:5FAD3C20")], responseBody = "{\"message\":\"No commit found for SHA: nixos-20.09\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-commit\"}", responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}
from sops-nix.
Nevermind. niv update nixpkgs -o NixOS -r nixpkgs -b nixos-20.09
works. I'll try with that.
from sops-nix.
hey @Mic92 I was able to install it when bumping nixpkgs to nixos-20.09! Hooray! 🍰
I was wondering though...I had to upgrade the entire system and it would be great if I could have used 20.09 just for sops-nix. If I had an entry in my source.json file nixpkgs-20.09
and left the original nixpkgs
entry alone would it be possible to pass in the new nixpkgs value to ${(import ../../nix/sources.nix).sops-nix}/modules/sops
somehow ? So it would get built with 20.09 but the rest of the system would be left alone.
from sops-nix.
Yes. you can override pkgs here:
Line 1 in b67ae45
sops-nix/modules/sops/default.nix
Line 8 in b67ae45
It would be roughly like this (untested) snippet:
{ config, lib, pkgs, ... }:
{
imports = [
({ config, lib, ... }: (import ${(import ../../nix/sources.nix).sops-nix}/modules/sops
) {inherit config lib; pkgs = import <nixos-20.09> {};})
];
}
from sops-nix.
Thanks @Mic92 I'll give it a try. I'm going to close this since it's resolved the issue for me.
from sops-nix.
Related Issues (20)
- [Feature?] Use from devShell flake with direnv HOT 3
- support encrypting plain passwords for hashedPasswordFiles HOT 5
- Binary data embedded in yaml secret file causes template rendering error
- error: attribute 'placeholder' missing HOT 3
- Bug: Failed to set user authorized SSH key file from secret HOT 4
- setting owner and group seems not to work for ids HOT 8
- How to have secrets accessible to multiple services? HOT 1
- hangs on boot when GPG key missing HOT 2
- Activation fails with "not a directory" if a file becomes a directory
- close
- README: example links to removed file HOT 1
- sops-nix failing to switch Home Manager configuration on NixOS 23.11 HOT 23
- sops-nix systemd user unit is failing to start HOT 1
- Can't generate age.keyFile if age.generateKey = true for HM module
- Need help with the config in home-manager HOT 1
- Encryption subkey
- error: attribute 'hasStorePathPrefix' missing HOT 1
- `sops-nix` Breaks `nixos-rebuild`s `build-vm` and `build-vm-with-bootloader` Scripts HOT 1
- The option `sops.gnupg.home' is already defined HOT 2
- Unable to process the manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sops-nix.