commit aff15c4ac7b06939cc0b5facb70c739f7b336503 Author: dhrm Date: Tue Aug 25 19:20:24 2026 +0200 Initial minimal NixOS config for syncala diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1cd791b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result/ diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..17d8c02 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,22 @@ +{ config, pkgs, ... }: +{ + system.stateVersion = "24.05"; + + boot.loader.grub.enable = true; + boot.loader.grub.device = "/dev/sda"; + + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "ext4"; + }; + + networking.hostName = "syncala"; + + environment.systemPackages = with pkgs; [ vim git ]; + + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL637vZmT placenolder" + ]; + + services.openssh.enable = true; +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..aff1d1f --- /dev/null +++ b/flake.nix @@ -0,0 +1,11 @@ +{ + description = "Minimal NixOS configuration for syncala hosts"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs }: { + nixosConfigurations.syncala = nixpkgs.lib.nixosSystem { + modules = [ ./configuration.nix ]; + }; + }; +}