update hyprland
This commit is contained in:
36
flake.nix
36
flake.nix
@@ -4,26 +4,34 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
helix.url = "github:helix-editor/helix/master";
|
helix.url = "github:helix-editor/helix/master";
|
||||||
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
outputs =
|
||||||
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
|
{
|
||||||
system = "x86_64-linux";
|
self,
|
||||||
specialArgs = { inherit inputs; };
|
nixpkgs,
|
||||||
modules = [
|
home-manager,
|
||||||
./configuration.nix
|
...
|
||||||
home-manager.nixosModules.home-manager
|
}@inputs:
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
|
||||||
home-manager.useUserPackages = true;
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
|
||||||
home-manager.users.allen = import ./home.nix;
|
home-manager.users.allen = import ./home.nix;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
35
home.nix
35
home.nix
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -19,20 +19,31 @@
|
|||||||
"Xft.dpi" = 172;
|
"Xft.dpi" = 172;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = let
|
home.packages =
|
||||||
fonts = import ./pkgs/fonts.nix { inherit pkgs; };
|
let
|
||||||
minecraft = import ./pkgs/minecraft.nix { inherit pkgs; };
|
fonts = import ./pkgs/fonts.nix { inherit pkgs; };
|
||||||
misc = import ./pkgs/misc.nix { inherit pkgs; };
|
minecraft = import ./pkgs/minecraft.nix { inherit pkgs; };
|
||||||
network = import ./pkgs/network.nix { inherit pkgs; };
|
misc = import ./pkgs/misc.nix { inherit pkgs; };
|
||||||
programming = import ./pkgs/programming.nix { inherit pkgs; };
|
network = import ./pkgs/network.nix { inherit pkgs; };
|
||||||
tools = import ./pkgs/tools.nix { inherit pkgs; };
|
programming = import ./pkgs/programming.nix { inherit pkgs; };
|
||||||
util = import ./pkgs/util.nix { inherit pkgs; };
|
tools = import ./pkgs/tools.nix { inherit pkgs; };
|
||||||
games = import ./pkgs/games.nix { inherit pkgs; };
|
util = import ./pkgs/util.nix { inherit pkgs; };
|
||||||
in fonts ++ minecraft ++ misc ++ network ++ programming ++ tools ++ util
|
games = import ./pkgs/games.nix { inherit pkgs; };
|
||||||
++ games;
|
in
|
||||||
|
fonts ++ minecraft ++ misc ++ network ++ programming ++ tools ++ util ++ games;
|
||||||
|
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
programs.direnv.nix-direnv.enable = true;
|
programs.direnv.nix-direnv.enable = true;
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||||
|
extraConfig = ''
|
||||||
|
source = ~/.config/hypr/common.conf
|
||||||
|
source = ~/.config/hypr/device/laptop.conf
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user