all repos — char/flake @ 3db86c6872cbd29ec02a6a117fdec41d9c00f4ea

nixos flake

flake.nix (view raw)

 1{
 2  description = "charlotte's NixOS flake";
 3  inputs = {
 4    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
 5    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
 6  };
 7  outputs =
 8    { self
 9    , nixpkgs
10    , nixpkgs-unstable
11    , ...
12    }@inputs:
13    {
14      nixosConfigurations = {
15        runestone = nixpkgs.lib.nixosSystem {
16          system = "x86_64-linux";
17
18          specialArgs = {
19            user-pkgs = self.packages."x86_64-linux";
20            unstable-pkgs = nixpkgs-unstable.legacyPackages."x86_64-linux";
21          };
22
23          modules = [
24            (
25              { ... }:
26              {
27                system.stateVersion = "24.05";
28              }
29            )
30
31            ./profiles/common/base.nix
32            ./profiles/common/locale.nix
33            ./profiles/common/networking.nix
34
35            ./profiles/runestone/hardware-configuration.nix
36            ./profiles/runestone/base.nix
37            ./profiles/runestone/postgres.nix
38          ];
39        };
40      };
41
42      packages = {
43        x86_64-linux = import ./packages/default.nix {
44          pkgs = import nixpkgs { system = "x86_64-linux"; };
45        };
46      };
47    };
48}