2023-10-08 14:57:57 +00:00
|
|
|
{
|
|
|
|
description = "My NixOS configuration";
|
|
|
|
|
|
|
|
inputs = {
|
2024-06-04 19:21:38 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
2023-11-30 15:59:49 +00:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
2023-10-09 09:25:17 +00:00
|
|
|
nur.url = "github:nix-community/NUR";
|
2024-02-18 21:05:23 +00:00
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
2024-09-24 20:19:37 +00:00
|
|
|
stylix.url = "github:pizzapim/stylix/release-24.05";
|
2024-10-26 18:32:37 +00:00
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
2024-09-24 20:19:37 +00:00
|
|
|
|
|
|
|
nix-index-database = {
|
|
|
|
url = "github:nix-community/nix-index-database";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-18 21:05:23 +00:00
|
|
|
|
2023-10-08 16:03:14 +00:00
|
|
|
home-manager = {
|
2024-06-04 19:21:38 +00:00
|
|
|
url = "github:nix-community/home-manager?ref=release-24.05";
|
2023-10-08 16:03:14 +00:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-18 21:05:23 +00:00
|
|
|
|
2024-01-29 20:05:48 +00:00
|
|
|
lanzaboote = {
|
|
|
|
url = "github:nix-community/lanzaboote/v0.3.0";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-05-26 15:12:52 +00:00
|
|
|
|
|
|
|
disko = {
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-06-09 18:31:39 +00:00
|
|
|
|
|
|
|
nixos-artwork = {
|
|
|
|
type = "git";
|
|
|
|
url = "https://github.com/NixOS/nixos-artwork.git";
|
|
|
|
flake = false;
|
|
|
|
};
|
2024-06-15 14:20:03 +00:00
|
|
|
|
|
|
|
sops-nix = {
|
|
|
|
url = "github:Mic92/sops-nix";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-10-26 09:59:32 +00:00
|
|
|
|
|
|
|
nixos-cosmic = {
|
|
|
|
url = "github:lilyinstarlight/nixos-cosmic";
|
2024-10-27 11:23:20 +00:00
|
|
|
inputs.nixpkgs-stable.follows = "nixpkgs-unstable";
|
2024-10-26 09:59:32 +00:00
|
|
|
};
|
2023-10-08 14:57:57 +00:00
|
|
|
};
|
2023-11-05 17:49:51 +00:00
|
|
|
|
2024-10-26 18:33:47 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
} @ inputs: let
|
|
|
|
supportedSystems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
|
|
|
forAllSystems' = nixpkgs.lib.genAttrs;
|
|
|
|
forAllSystems = forAllSystems' supportedSystems;
|
|
|
|
pkgsForSystem = system:
|
|
|
|
import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
2024-10-26 18:32:37 +00:00
|
|
|
|
2024-10-26 18:33:47 +00:00
|
|
|
treefmtEval = forAllSystems (
|
|
|
|
system: inputs.treefmt-nix.lib.evalModule (pkgsForSystem system) ./treefmt.nix
|
|
|
|
);
|
|
|
|
in {
|
|
|
|
formatter = forAllSystems (system: (treefmtEval.${system}.config.build.wrapper));
|
|
|
|
|
2024-10-27 11:23:20 +00:00
|
|
|
nixosConfigurations = nixpkgs.lib.mapAttrs (
|
|
|
|
name: {
|
|
|
|
nixosModule,
|
|
|
|
homeManagerModule,
|
|
|
|
}:
|
|
|
|
nixpkgs.lib.nixosSystem rec {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
specialArgs = {
|
|
|
|
inherit inputs system;
|
|
|
|
flake = self;
|
2024-10-26 18:33:47 +00:00
|
|
|
};
|
2024-05-16 16:48:46 +00:00
|
|
|
|
2024-10-27 11:23:20 +00:00
|
|
|
modules = [
|
|
|
|
nixosModule
|
|
|
|
./nixos
|
|
|
|
{
|
|
|
|
home-manager.users.pim.imports = [homeManagerModule];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
}
|
|
|
|
) (import ./machines);
|
2024-10-26 18:33:47 +00:00
|
|
|
};
|
2023-10-08 14:57:57 +00:00
|
|
|
}
|