update hyprland

This commit is contained in:
2026-05-07 21:41:52 +09:00
parent d00f43a12e
commit 69b88803eb
2 changed files with 45 additions and 26 deletions

View File

@@ -4,13 +4,21 @@
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 =
{
self,
nixpkgs,
home-manager,
...
}@inputs:
{
nixosConfigurations.haskell = nixpkgs.lib.nixosSystem { nixosConfigurations.haskell = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { inputs, pkgs, ... }:
{ {
imports = [ imports = [
@@ -19,7 +19,8 @@
"Xft.dpi" = 172; "Xft.dpi" = 172;
}; };
home.packages = let home.packages =
let
fonts = import ./pkgs/fonts.nix { inherit pkgs; }; fonts = import ./pkgs/fonts.nix { inherit pkgs; };
minecraft = import ./pkgs/minecraft.nix { inherit pkgs; }; minecraft = import ./pkgs/minecraft.nix { inherit pkgs; };
misc = import ./pkgs/misc.nix { inherit pkgs; }; misc = import ./pkgs/misc.nix { inherit pkgs; };
@@ -28,11 +29,21 @@
tools = import ./pkgs/tools.nix { inherit pkgs; }; tools = import ./pkgs/tools.nix { inherit pkgs; };
util = import ./pkgs/util.nix { inherit pkgs; }; util = import ./pkgs/util.nix { inherit pkgs; };
games = import ./pkgs/games.nix { inherit pkgs; }; games = import ./pkgs/games.nix { inherit pkgs; };
in fonts ++ minecraft ++ misc ++ network ++ programming ++ tools ++ util in
++ games; 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";
} }