From a433e98f0b588af94e6a7f55efc9871bc3ff941e Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 11 Jan 2024 13:24:48 +0100 Subject: [PATCH] Change jovian nixos to a flake import instead of a normal import --- flake.nix | 2 ++ nixos/hosts/shodan/configuration.nix | 13 +------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 0663bf6..4885fc4 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/nixos/hosts/shodan/configuration.nix b/nixos/hosts/shodan/configuration.nix index ab3fae2..a73682d 100644 --- a/nixos/hosts/shodan/configuration.nix +++ b/nixos/hosts/shodan/configuration.nix @@ -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