Change jovian nixos to a flake import instead of a normal import

This commit is contained in:
Lillian Violet 2024-01-11 13:24:48 +01:00
parent 0555ee7ce4
commit 366f4a1253
2 changed files with 3 additions and 12 deletions

View file

@ -10,6 +10,8 @@
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Also see the 'unstable-packages' overlay at 'overlays/default.nix'.
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
# Home manager
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -8,18 +8,7 @@
}: {
imports = [
#Jovian Nixos
(
# Put the most recent revision here:
let
revision = "1962ff3135b1468ae473a196da01d0ebf38c144e";
in
builtins.fetchTarball {
url = "https://github.com/Jovian-Experiments/Jovian-NixOS/archive/${revision}.tar.gz";
# Update the hash as needed:
sha256 = "sha256:1iicb42dy4k440ddarysbb82bc7k5dv94xhg38jfcwh0wpq0rbdc";
}
+ "/modules"
)
inputs.jovian.nixosModules.jovian
# If you want to use modules your own flake exports (from modules/home-manager):
# outputs.homeManagerModules.example
inputs.home-manager.nixosModules.home-manager