1
0
Fork 0
nix-configuration/templates/systems/default.nix

39 lines
855 B
Nix
Raw Normal View History

2024-05-10 16:53:17 +00:00
# Template file for configuring a new host
{
2024-12-06 18:04:47 +00:00
namespace,
2024-05-10 16:53:17 +00:00
...
}:
let
# Do not change this value! This tracks when NixOS was installed on your system.
stateVersion = "24.11";
# The hostname for this system.
hostName = "myHost";
in
2024-05-10 16:53:17 +00:00
{
# Generate hardware-configuration.nix by running this command on the host:
# $ nixos-generate-config
imports = [ ./hardware-configuration.nix ];
system.stateVersion = stateVersion;
networking.hostName = hostName;
2024-05-10 16:53:17 +00:00
# Main system configuration happens here.
2024-12-06 18:04:47 +00:00
config.${namespace} = {
2024-05-10 16:53:17 +00:00
apps = {
# Define applications here
};
services = {
# Define services here
};
users.aires = {
enable = true;
services.syncthing = {
enable = true;
home = "/home/aires/.config/syncthing";
2024-05-10 16:53:17 +00:00
};
};
};
# Additional configuration options go here
2024-05-10 16:53:17 +00:00
}