nixos-config/flake.nix

27 lines
798 B
Nix
Raw Normal View History

2023-06-16 23:08:03 +00:00
{
2023-06-16 23:14:12 +00:00
description = "Alex's super mega awesome nixos config";
2023-06-16 23:08:03 +00:00
2023-06-16 23:46:10 +00:00
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05;
2023-06-17 00:30:33 +00:00
home-manager.url = "github:nix-community/home-manager/release-23.05";
2023-06-17 17:01:57 +00:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-06-16 23:46:10 +00:00
};
2023-06-16 23:14:12 +00:00
2023-06-16 23:56:23 +00:00
outputs = inputs@{ nixpkgs, home-manager, ... }: {
2023-06-16 23:08:03 +00:00
nixosConfigurations.nixos76 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2023-06-16 23:46:10 +00:00
modules = [
2023-06-17 20:46:54 +00:00
./system/configuration.nix
2023-06-17 17:01:57 +00:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
2023-06-17 20:48:07 +00:00
home-manager.users.alex = import ./alex/home.nix;
2023-06-17 17:01:57 +00:00
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
}
];
2023-06-16 23:08:03 +00:00
};
};
}