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

24 lines
550 B
Nix
Raw Normal View History

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