nixos-greynix/flake.nix

35 lines
958 B
Nix
Raw Normal View History

2024-11-10 15:47:39 +08:00
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
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-01 21:22:01 +08:00
./hosts/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
}