82 lines
2.2 KiB
Nix
82 lines
2.2 KiB
Nix
{
|
|
description = "My NixOS";
|
|
|
|
outputs = inputs:
|
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
|
systems = ["x86_64-linux"];
|
|
|
|
imports = [
|
|
./home/users
|
|
./nixos/hosts
|
|
./nixos/pkgs
|
|
./pre-commit-hooks.nix
|
|
];
|
|
|
|
perSystem = {
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
devShells.default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.alejandra
|
|
pkgs.git
|
|
pkgs.nodePackages.prettier
|
|
];
|
|
name = "dots";
|
|
DIRENV_LOG_FORMAT = "";
|
|
shellHook = ''
|
|
${config.pre-commit.installationScript}
|
|
'';
|
|
};
|
|
|
|
formatter = pkgs.alejandra;
|
|
};
|
|
};
|
|
inputs = {
|
|
# Nix environs
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
# nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
|
|
systems.url = "github:nix-systems/default-linux";
|
|
hardware.url = "github:nixos/nixos-hardware";
|
|
lanzaboote.url = "github:nix-community/lanzaboote";
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
flake-compat.url = "github:edolstra/flake-compat";
|
|
hm = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
flake-parts = {
|
|
url = "github:hercules-ci/flake-parts";
|
|
inputs.nixpkgs-lib.follows = "nixpkgs";
|
|
};
|
|
# cachyos
|
|
chaotic.url = "https://flakehub.com/f/chaotic-cx/nyx/*.tar.gz";
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
|
nix-gaming = {
|
|
url = "github:fufexan/nix-gaming";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-parts.follows = "flake-parts";
|
|
};
|
|
firefox-nightly = {
|
|
url = "github:nix-community/flake-firefox-nightly";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
wezterm = {
|
|
url = "github:wez/wezterm?dir=nix";
|
|
};
|
|
pre-commit-hooks = {
|
|
url = "github:cachix/pre-commit-hooks.nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-compat.follows = "flake-compat";
|
|
};
|
|
};
|
|
}
|