Last active
May 19, 2023 17:06
-
-
Save artemist/7f35535f65eaca5f2d273e00536dde49 to your computer and use it in GitHub Desktop.
Minimized nixpkgs bug example
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, ... }: | |
{ | |
# Silence some errors | |
boot.initrd.enable = false; | |
boot.loader.grub.enable = false; | |
containers.test = { | |
nixpkgs = inputs.nixpkgs-unstable.outPath; | |
config = { | |
services.openssh.enable = true; | |
}; | |
}; | |
} |
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
{ | |
"nodes": { | |
"nixpkgs": { | |
"locked": { | |
"lastModified": 1684398685, | |
"narHash": "sha256-TRE62m91iZ5ArVMgA+uj22Yda8JoQuuhc9uwZ+NoX+0=", | |
"owner": "nixos", | |
"repo": "nixpkgs", | |
"rev": "628d4bb6e9f4f0c30cfd9b23d3c1cdcec9d3cb5c", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nixos", | |
"ref": "nixos-22.11", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"nixpkgs-unstable": { | |
"locked": { | |
"lastModified": 1684385584, | |
"narHash": "sha256-O7y0gK8OLIDqz+LaHJJyeu09IGiXlZIS3+JgEzGmmJA=", | |
"owner": "nixos", | |
"repo": "nixpkgs", | |
"rev": "48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a", | |
"type": "github" | |
}, | |
"original": { | |
"owner": "nixos", | |
"ref": "nixos-unstable", | |
"repo": "nixpkgs", | |
"type": "github" | |
} | |
}, | |
"root": { | |
"inputs": { | |
"nixpkgs": "nixpkgs", | |
"nixpkgs-unstable": "nixpkgs-unstable" | |
} | |
} | |
}, | |
"root": "root", | |
"version": 7 | |
} |
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-22.11"; | |
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; | |
}; | |
outputs = { nixpkgs, ... } @ inputs: { | |
nixosConfigurations.test = nixpkgs.lib.nixosSystem { | |
system = "x86_64-linux"; | |
specialArgs.inputs = inputs; | |
modules = [ ./config.nix ]; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment