2024-05-10 12:53:17 -04:00
|
|
|
# Template file for configuring a new host
|
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
home-manager,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-07-06 12:50:45 -04: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 12:53:17 -04:00
|
|
|
{
|
|
|
|
# Generate hardware-configuration.nix by running this command on the host:
|
|
|
|
# $ nixos-generate-config
|
|
|
|
imports = [ ./hardware-configuration.nix ];
|
|
|
|
|
2024-07-06 12:50:45 -04:00
|
|
|
system.stateVersion = stateVersion;
|
|
|
|
networking.hostName = hostName;
|
2024-05-10 12:53:17 -04:00
|
|
|
|
2024-07-06 12:50:45 -04:00
|
|
|
# Configure the system here.
|
2024-06-24 11:38:28 -04:00
|
|
|
aux.system = {
|
2024-05-10 12:53:17 -04:00
|
|
|
role = "workstation";
|
|
|
|
apps = {
|
|
|
|
# Define applications here
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
# Define services here
|
|
|
|
};
|
|
|
|
users.aires = {
|
|
|
|
enable = true;
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
2024-09-08 13:17:40 -04:00
|
|
|
home = "/home/aires/.config/syncthing";
|
2024-05-10 12:53:17 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Additional host-specific configuration options go here
|
|
|
|
}
|