nixos-conf/misc/template-configuration.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-29 17:29:02 +03:00
{ config, pkgs, ... }:
let
host = "generic";
stateVersion = "24.05";
2024-05-29 17:29:02 +03:00
2024-06-02 05:53:39 +03:00
repo = builtins.fetchGit {
url = "https://github.com/VSinerva/nixos-conf.git";
name = "nixos-conf-github";
ref = "main";
2024-07-11 15:33:35 +03:00
publicKeys = [
{
# helium
2024-10-16 01:52:03 +03:00
type = "ssh-ed25519-sk";
key = "AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIPiupf3xK6eWvno7R2rDYPuDxVvbmzWh5EkR1rquvV9hAAAABHNzaDo=";
2024-07-11 15:33:35 +03:00
}
{
# lithium
2024-10-16 01:52:03 +03:00
type = "ssh-ed25519-sk";
key = "AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHr/1uVk5cWRWAELvwVvBG+eAbkKqpH2gat1yKKO11roAAAABHNzaDo=";
}
{
# backup
2024-07-11 15:33:35 +03:00
type = "ssh-ed25519";
2024-10-16 01:52:03 +03:00
key = "AAAAC3NzaC1lZDI1NTE5AAAAIOOk8akyi6Ob1EOPugxnjdlMQs9rOAbxBbakT8olBFe7";
2024-07-11 15:33:35 +03:00
}
];
2024-06-02 05:53:39 +03:00
};
2024-05-29 17:29:02 +03:00
in
2024-06-02 16:18:19 +03:00
{
imports = [
./hardware-configuration.nix
"${repo}/machine-confs/${host}.nix"
];
2024-05-29 17:29:02 +03:00
2024-06-02 16:18:19 +03:00
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = stateVersion; # Did you read the comment?
2024-05-29 17:29:02 +03:00
}