NixOS config for jollywhoppers servers
1{
2 description = "nix flake for jollywhoppers servers";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs/release-25.11";
6 };
7
8 outputs =
9 {
10 self,
11 nixpkgs,
12 }@inputs:
13 let
14 system = "x86_64-linux";
15 pkgs = import nixpkgs { inherit system; };
16 # FIX: Choose proper hostname for machine
17 hostname = "placeholder_hostname";
18 in
19 {
20 # TODO: Examine the necessity of a dev shell for a simple Nix config?
21 devShells.${system}.default = pkgs.mkShell {
22 # Add whichever packages you'd need for editing the config
23 packages = with pkgs; [
24 ];
25
26 # Run whatever commands you'd like when entering the shell
27 shellHook = '''';
28 };
29
30 nixosConfigurations.${hostname} = pkgs.lib.nixosSystem {
31 inherit system;
32 specialArgs = {
33 inherit
34 inputs
35 pkgs
36 system
37 hostname
38 ;
39 };
40 modules = [
41 ./configuration.nix
42 ./hosts/${hostname}/hardware-configuration.nix
43 ];
44 };
45
46 formatter.${system} = pkgs.nixfmt-tree;
47 };
48}