nixos/flake.nix

83 lines
2.3 KiB
Nix
Raw Normal View History

2024-04-07 17:53:24 +00:00
{
2025-02-24 09:56:16 +01:00
description = "NixOS configuration";
outputs = {
flake-parts,
nixpkgs,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.agenix-rekey.flakeModule
./formatter.nix
./hosts
];
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem = {
pkgs,
system,
...
}: {
# This sets `pkgs` to a nixpkgs with allowUnfree option set.
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
_module.args.pkgsUnstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
};
2025-02-18 20:17:57 +01:00
2024-04-07 17:53:24 +00:00
inputs = {
2025-01-31 15:13:22 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
2024-08-28 16:08:36 +00:00
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2025-02-18 20:17:57 +01:00
2025-02-20 00:02:02 +01:00
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
2025-02-18 20:17:57 +01:00
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2025-02-19 23:42:24 +01:00
nur.url = "github:nix-community/NUR";
nur.inputs.nixpkgs.follows = "nixpkgs";
2025-02-03 07:55:17 +01:00
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
2025-02-18 20:17:57 +01:00
fireproof-shell.url = "github:nickolaj-jepsen/fireproof-shell";
fireproof-shell.inputs.nixpkgs.follows = "nixpkgs";
2025-02-18 20:17:57 +01:00
treefmt-nix.url = "github:numtide/treefmt-nix";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
2025-02-03 07:55:17 +01:00
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
agenix-rekey.url = "github:oddlama/agenix-rekey";
agenix-rekey.inputs.nixpkgs.follows = "nixpkgs";
2025-02-18 20:17:57 +01:00
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
2025-03-04 00:03:59 +01:00
2025-04-28 08:15:24 +02:00
claude-desktop.url = "github:k3d3/claude-desktop-linux-flake";
claude-desktop.inputs.nixpkgs.follows = "nixpkgs";
2025-05-06 23:10:41 +02:00
2025-04-27 23:58:02 +02:00
niri.url = "github:sodiboo/niri-flake";
niri.inputs.nixpkgs.follows = "nixpkgs";
2025-05-14 16:09:29 +02:00
zwift.url = "github:netbrain/zwift";
zwift.inputs.nixpkgs.follows = "nixpkgs";
2024-04-07 17:53:24 +00:00
};
}