1
0
Fork 0
nix-configuration/hosts/common/default.nix

24 lines
548 B
Nix

{ lib, pkgs, ... }:
let
# Fetch secrets
# IMPORTANT: Make sure this repo exists on the filesystem first!
nix-secrets = builtins.fetchGit {
url = "/home/aires/Development/nix-configuration/nix-secrets";
ref = "main";
rev = "55fc814d477d956ab885e157f24c2d43f433dc7a";
};
# Install upgrade script
nixos-upgrade = pkgs.writeShellScriptBin "start-haven" (builtins.readFile ./nixos-upgrade.sh);
in{
imports = [
../../modules
"${nix-secrets}/default.nix"
];
# Add upgrade script
environment.systemPackages = [
nixos-upgrade
];
}