update hyprland usage

This commit is contained in:
2025-04-21 21:32:17 +08:00
parent 90126edab0
commit ac9d778c53
7 changed files with 22 additions and 12 deletions

View File

@@ -78,8 +78,6 @@
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
hyprland.url = "github:hyprwm/Hyprland";
# Impermanence system
impermanence.url = "github:nix-community/impermanence";

View File

@@ -1,7 +1,7 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs, outputs, lib, config, pkgs, username, useremail, hyprland, ... }:
{ inputs, outputs, lib, config, pkgs, username, useremail, ... }:
{
# You can import other home-manager modules here
imports = [

View File

@@ -1,7 +1,7 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{ inputs, outputs, lib, config, pkgs, username, useremail, hyprland, ... }: {
{ inputs, outputs, lib, config, pkgs, username, useremail, ... }: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):

View File

@@ -1,11 +1,23 @@
{ config, lib, pkgs, hyprland, ... }:
{ config, lib, pkgs, ... }:
{
imports = [
hyprland.homeManagerModules.default
./env.nix
];
wayland.windowManager.hyprland = {
# Whether to enable Hyprland wayland compositor
enable = true;
# The hyprland package to use
package = pkgs.hyprland;
# Whether to enable XWayland
xwayland.enable = true;
# Optional
# Whether to enable hyprland-session.target on hyprland startup
systemd.enable = true;
};
home.packages = with pkgs; [
waybar # the status bar
# hyprpaper # wallpaper

View File

@@ -1,6 +1,6 @@
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
let
inherit (inputs) home-manager hyprland;
inherit (inputs) home-manager;
in
{
# You can import other NixOS modules here
@@ -27,7 +27,7 @@ in
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs outputs hostname username useremail hyprland sysversion;
inherit inputs outputs hostname username useremail sysversion;
};
home-manager.users."${username}" = { ... }: {
imports = [

View File

@@ -1,6 +1,6 @@
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
let
inherit (inputs) home-manager hyprland nixpkgs-unstable;
inherit (inputs) home-manager nixpkgs-unstable;
in
{
# You can import other NixOS modules here
@@ -37,7 +37,7 @@ in
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs outputs hostname username useremail hyprland sysversion;
inherit inputs outputs hostname username useremail sysversion;
# enable unstable packages
nixpkgs = nixpkgs-unstable;

View File

@@ -1,6 +1,6 @@
{ inputs, outputs, lib, pkgs, config, self, username, useremail, hostname, sysversion, ... }:
let
inherit (inputs) home-manager hyprland;
inherit (inputs) home-manager;
in
{
# You can import other NixOS modules here
@@ -27,7 +27,7 @@ in
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {
inherit inputs outputs hostname username useremail hyprland sysversion;
inherit inputs outputs hostname username useremail sysversion;
};
home-manager.users."${username}" = { ... }: {
imports = [