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

24 lines
550 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
2024-02-29 09:53:34 -05:00
let
2024-03-04 10:57:41 -05:00
# 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
2024-04-01 09:36:52 -04:00
nixos-upgrade = pkgs.writeShellScriptBin "nixos-upgrade" (builtins.readFile ./nixos-upgrade.sh);
2024-02-29 09:53:34 -05:00
in{
2024-03-04 10:57:41 -05:00
imports = [
../../modules
"${nix-secrets}/default.nix"
];
# Add upgrade script
environment.systemPackages = [
nixos-upgrade
];
2024-02-29 09:59:48 -05:00
}