73 lines
2.2 KiB
Nix
73 lines
2.2 KiB
Nix
{
|
|
description = "System building flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
pkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/master";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland = {
|
|
url = "github:hyprwm/Hyprland";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hyprland-plugins = {
|
|
url = "github:hyprwm/hyprland-plugins";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
hyprland-split-monitor-workspaces = {
|
|
url = "github:zjeffer/split-monitor-workspaces";
|
|
inputs.hyprland.follows = "hyprland";
|
|
};
|
|
#hyprland-hyprspace = {
|
|
# url = "github:KZDKM/Hyprspace";
|
|
# inputs.hyprland.follows = "hyprland";
|
|
#};
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, pkgs-unstable, home-manager, hyprland-split-monitor-workspaces, ... }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
in {
|
|
nixosConfigurations.nixMain = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
pkgs-unstable = import pkgs-unstable { inherit system; };
|
|
inputs = inputs;
|
|
};
|
|
modules = [
|
|
./nixMain/configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.backupFileExtension = "backup";
|
|
|
|
home-manager.users.someone = import ./nixMain/homemanager/someone.nix;
|
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
|
}
|
|
];
|
|
};
|
|
nixosConfigurations.nixLap = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
pkgs-unstable = import pkgs-unstable { inherit system; };
|
|
inputs = inputs;
|
|
};
|
|
modules = [
|
|
./nixLap/configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.backupFileExtension = "backup";
|
|
|
|
home-manager.users.someone = import ./nixLap/homemanager/someone.nix;
|
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|