add split monitor
This commit is contained in:
37
flake.nix
37
flake.nix
@@ -9,9 +9,20 @@
|
||||
url = "github:nix-community/home-manager/release-25.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
split-monitor-workspaces = {
|
||||
url = "github:Duckonaut/split-monitor-workspaces";
|
||||
inputs.hyprland.follows = "hyprland";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
split-monitor-workspaces,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
@@ -19,27 +30,32 @@
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration.nix
|
||||
|
||||
({ pkgs, ... }: {
|
||||
# Define the overlay inline or in a separate file
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
openmodelica = final.callPackage ./nixpkgs/openmodelica.nix { };
|
||||
})
|
||||
];
|
||||
})
|
||||
(
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# Define the overlay inline or in a separate file
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
openmodelica = final.callPackage ./nixpkgs/openmodelica.nix { };
|
||||
})
|
||||
];
|
||||
}
|
||||
)
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
|
||||
home-manager.users.allen = import ./home.nix {
|
||||
inherit split-monitor-workspaces;
|
||||
inherit inputs;
|
||||
inherit pkgs;
|
||||
};
|
||||
@@ -48,4 +64,3 @@
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
10
home.nix
10
home.nix
@@ -1,4 +1,9 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
inputs,
|
||||
split-monitor-workspaces,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@@ -39,6 +44,9 @@
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
plugins = [
|
||||
split-monitor-workspaces.packages.x86_64-linux.split-monitor-workspaces
|
||||
];
|
||||
extraConfig = ''
|
||||
source = ~/.config/hypr/common.conf
|
||||
source = ~/.config/hypr/device/laptop.conf
|
||||
|
||||
Reference in New Issue
Block a user