Add template configuration.nix

This commit is contained in:
Vili Sinervä 2024-05-29 17:29:02 +03:00
parent 0c4995643b
commit 878b1cb12c
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

29
configuration.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, pkgs, ... }:
let
host = "???";
stateVersion = "???";
repo = builtins.fetchGit {
url = "https://github.com/VSinerva/nixos-conf.git";
name = "nixos-conf-github";
ref = "main";
};
in
{
# Verification will be available soon, so keeping this here as a reminder
# publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBbGREoK1uVny1s8FK3KZ74Wmaf0VtifhqPyK69C/Gez vili@helium";
# nix.settings.experimental-features = "verified-fetches";
imports = [
./hardware-configuration.nix
"${repo}/machine-confs/${host}.nix"
];
# 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?
}