nixos-greynix/flake.nix

40 lines
1 KiB
Nix
Raw Normal View History

2024-11-10 15:47:39 +08:00
{
description = "NixOS configuration";
inputs = {
2025-01-12 21:51:33 +08:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2025-01-27 16:09:37 +08:00
nvf.url = "github:notashelf/nvf";
2024-11-10 15:47:39 +08:00
};
2025-01-27 16:09:37 +08:00
outputs = inputs@{ nixpkgs, home-manager, nvf, ... }: {
2024-11-10 15:47:39 +08:00
nixosConfigurations = {
# greynix - Gray Asus machine
greynix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2025-02-09 20:22:46 +08:00
./mods/base.nix
2025-01-12 20:44:03 +08:00
./greynix/configuration.nix
2025-02-09 20:22:46 +08:00
./mods/docker.nix
2025-01-27 16:09:37 +08:00
nvf.nixosModules.default #for neovim framework flake
2024-11-10 15:47:39 +08:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2025-02-09 20:22:46 +08:00
home-manager.users.elias = import ./mods/home.nix;
2024-11-10 15:47:39 +08:00
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
2025-01-12 19:22:01 +08:00
}
2025-01-27 16:09:37 +08:00
2025-01-12 19:22:01 +08:00
];
};
2024-11-10 20:28:45 +08:00
2025-01-12 19:22:01 +08:00
};
};
2024-11-10 15:47:39 +08:00
}