mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(hyprland): init
This commit is contained in:
parent
8872b78a07
commit
8820db6792
23 changed files with 957 additions and 18 deletions
6
nixos/environments/hyprland/hyprland.nix
Normal file
6
nixos/environments/hyprland/hyprland.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, inputs, ... }: {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
};
|
||||
}
|
||||
9
nixos/environments/hyprland/profile-inheritance.nix
Normal file
9
nixos/environments/hyprland/profile-inheritance.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree.nixos.profiles; [
|
||||
graphical
|
||||
];
|
||||
|
||||
home-manager.users.kat.imports = with tree.home.environments; [
|
||||
hyprland
|
||||
];
|
||||
}
|
||||
10
nixos/environments/hyprland/xdg-portals.nix
Normal file
10
nixos/environments/hyprland/xdg-portals.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{pkgs, inputs, ...}: {
|
||||
xdg = {
|
||||
portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -13,5 +13,6 @@
|
|||
];
|
||||
services.udev.packages = [
|
||||
pkgs.android-udev-rules
|
||||
pkgs.via
|
||||
];
|
||||
}
|
||||
|
|
|
|||
3
nixos/profiles/laptop/cpufreq.nix
Normal file
3
nixos/profiles/laptop/cpufreq.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
powerManagement.cpuFreqGovernor = "performance";
|
||||
}
|
||||
|
|
@ -1,3 +1,12 @@
|
|||
_: {
|
||||
services.power-profiles-daemon.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_BOOST_ON_AC = 1;
|
||||
CPU_BOOST_ON_BAT = 0;
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue