dotfiles/NixOS/flake.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-31 12:41:57 +02:00
{
2024-06-01 16:56:07 +02:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
submodules = true;
};
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland";
2024-05-31 12:41:57 +02:00
};
2024-06-01 16:56:07 +02:00
};
2024-05-31 12:41:57 +02:00
2024-06-01 16:56:07 +02:00
outputs =
{ self
, nixpkgs
, home-manager
, split-monitor-workspaces
, ...
}@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; # allows access to flake inputs in nixos modules
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
extraSpecialArgs = { inherit inputs; }; # allows access to flake inputs in hm modules
useGlobalPkgs = true;
useUserPackages = true;
users.user = {
imports = [ ./home.nix ];
};
};
}
];
2024-05-31 14:55:36 +02:00
};
2024-06-01 16:56:07 +02:00
};
2024-05-31 12:41:57 +02:00
};
}