dotfiles/flake.nix

50 lines
963 B
Nix
Raw Normal View History

2023-08-05 18:44:35 -07:00
{
description = "System Configuration Flake";
inputs = {
nixpkgs = {
2023-08-05 21:03:24 -07:00
url = "github:NixOS/nixpkgs/nixos-unstable";
2023-08-05 18:44:35 -07:00
};
2023-08-05 21:03:24 -07:00
2023-08-06 09:25:52 -07:00
home-manager = {
2023-08-05 21:03:24 -07:00
url = "github:nix-community/home-manager/master";
2023-08-06 09:25:52 -07:00
inputs.nixpkgs.follows = "nixpkgs";
2023-08-05 21:03:24 -07:00
};
hyprland.url = "github:hyprwm/Hyprland";
2023-08-05 18:44:35 -07:00
};
2023-08-05 21:03:24 -07:00
outputs = {
nixpkgs,
2023-08-06 09:25:52 -07:00
home-manager,
hyprland,
...
2023-08-05 21:03:24 -07:00
}: {
2023-08-05 18:44:35 -07:00
2023-08-06 09:25:52 -07:00
nixpkgs.hostPlatform = "x86_64-linux";
pkgs = import nixpkgs {
#config.allowUnfree = true;
};
2023-08-05 18:44:35 -07:00
nixosConfigurations = {
2023-08-06 09:25:52 -07:00
hostname = nixpkgs.lib.nixosSystem {
modules = [
2023-08-05 18:44:35 -07:00
./configuration.nix
2023-08-06 09:25:52 -07:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = false;
home-manager.users.stitchynyan = import ./users/stitchynyan/home.nix ;
}
2023-08-05 21:03:24 -07:00
hyprland.homeManagerModules.default
2023-08-06 09:25:52 -07:00
{wayland.windowManager.hyprland.enable = true;}
2023-08-05 18:44:35 -07:00
];
};
2023-08-06 09:25:52 -07:00
};
2023-08-05 18:44:35 -07:00
};
}