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 6bafd9a3d7
commit a433e98f0b
2 changed files with 3 additions and 12 deletions

View file

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

View file

@ -8,18 +8,7 @@
}: { }: {
imports = [ imports = [
#Jovian Nixos #Jovian Nixos
( inputs.jovian.nixosModules.jovian
# 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"
)
# If you want to use modules your own flake exports (from modules/home-manager): # If you want to use modules your own flake exports (from modules/home-manager):
# outputs.homeManagerModules.example # outputs.homeManagerModules.example
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager