nixos/flake.nix

68 lines
1.9 KiB
Nix
Raw Normal View History

2024-04-07 17:53:24 +00:00
{
description = "Your new nix config";
inputs = {
2025-01-31 15:13:22 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
2025-02-03 07:55:17 +01:00
colmena.url = "github:zhaofengli/colmena";
2024-08-28 16:08:36 +00:00
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2025-01-31 15:13:22 +01:00
nixos-generators = {
url = "github:nix-community/nixos-generators";
2024-04-07 17:53:24 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-31 15:13:22 +01:00
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
2024-04-07 17:53:24 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2025-02-03 07:55:17 +01:00
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
2025-01-31 15:13:22 +01:00
astal = {
url = "github:aylur/astal";
2024-04-07 17:53:24 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-31 15:13:22 +01:00
ags = {
url = "github:aylur/ags";
2024-04-07 17:53:24 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
2025-02-03 07:55:17 +01:00
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
deploy-rs.url = "github:serokell/deploy-rs";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
agenix-rekey.url = "github:oddlama/agenix-rekey";
agenix-rekey.inputs.nixpkgs.follows = "nixpkgs";
2024-04-07 17:53:24 +00:00
};
2025-02-03 07:55:17 +01:00
outputs = {flake-parts, ...} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} (
{
withSystem,
lib,
inputs,
...
}: {
systems = [
"x86_64-linux"
"aarch64-linux"
2024-04-07 17:53:24 +00:00
];
2025-02-03 07:55:17 +01:00
imports = [
inputs.agenix-rekey.flakeModule
# ./parts/hosts/laptop
# ./parts/hosts/desktop
# ./parts/hosts/qemu
./parts/hosts
# ./parts/vm.nix
./parts/formatter.nix
./parts/devshell.nix
];
_module.args.mylib = import ./lib {inherit lib withSystem inputs;};
}
);
2024-04-07 17:53:24 +00:00
}