nix/flake.nix

34 lines
1 KiB
Nix
Raw Normal View History

2023-08-14 07:11:18 -04:00
{
2023-08-14 07:45:15 -04:00
description = "mehbark's NixOS configuration";
2023-08-14 07:11:18 -04:00
2023-08-14 07:45:15 -04:00
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.home-manager.url = "github:nix-community/home-manager";
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
2023-08-15 09:38:01 -04:00
inputs.hyprland.url = "github:hyprwm/Hyprland";
2023-08-14 07:45:15 -04:00
2023-08-15 09:38:01 -04:00
outputs = inputs@{ self, nixpkgs, home-manager, hyprland, ... }: {
2023-08-14 07:45:15 -04:00
nixosConfigurations = {
nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.mbk = import ./home.nix;
}
];
};
2023-08-14 07:18:25 -04:00
};
2023-08-15 09:38:01 -04:00
homeConfigurations."mbk@nix" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [
hyprland.homeManagerModules.default
{wayland.windowManager.hyprland.enable = true;}
];
};
2023-08-14 07:45:15 -04:00
};
2023-08-14 07:11:18 -04:00
}