all repos — char/flake @ 6e34475619958f3a528bca99c3942a02e6344055

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          ];
38        };
39      };
40
41      packages = {
42        x86_64-linux = import ./packages/default.nix {
43          pkgs = import nixpkgs { system = "x86_64-linux"; };
44        };
45      };
46    };
47}