Anthony Rodriguez
8fe0604299
Refactored the entire repository structure, as putting everything into modules was just awkward. Took heavy inspiration from fufexan's repository, fufexan/dotfiles, as the structure felt much saner.
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
description = "nezia's nixos configuration";
|
|
|
|
outputs = inputs:
|
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
|
systems = ["x86-64_linux"];
|
|
|
|
imports = [
|
|
./hosts
|
|
];
|
|
|
|
perSystem = {
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
devShells.default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.alejandra
|
|
pkgs.git
|
|
];
|
|
};
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
};
|
|
|
|
inputs = {
|
|
# global, so they can be `.follow`ed
|
|
systems.url = "github:nix-systems/default-linux";
|
|
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
wezterm = {
|
|
url = "github:wez/wezterm/main?dir=nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
zen-browser.url = "github:MarceColl/zen-browser-flake";
|
|
nvf = {
|
|
url = "github:notashelf/nvf";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
|
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
};
|
|
}
|