nixos-greynix/flake.nix

38 lines
970 B
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";
2025-01-26 11:09:20 +08:00
2025-01-12 21:51:33 +08:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-10 15:47:39 +08:00
};
outputs = inputs@{ nixpkgs, home-manager, ... }: {
nixosConfigurations = {
# greynix - Gray Asus machine
greynix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2025-01-05 11:49:14 +08:00
./nixosModules/base.nix
2025-01-12 20:44:03 +08:00
./greynix/configuration.nix
2025-01-05 11:56:09 +08:00
./nixosModules/docker.nix
2024-11-10 15:47:39 +08:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2025-01-12 19:24:41 +08:00
home-manager.users.elias = import ./nixosModules/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
}
];
};
2024-11-10 20:28:45 +08:00
2025-01-12 19:22:01 +08:00
};
};
2024-11-10 15:47:39 +08:00
}