refactor: move stuff to hyprland config
This commit is contained in:
parent
796e7e8f1d
commit
8c7a36554e
9 changed files with 109 additions and 177 deletions
devices
|
@ -4,14 +4,12 @@
|
|||
|
||||
../../modules/ags
|
||||
../../modules/audio.nix
|
||||
../../modules/greetd
|
||||
../../modules/hyprland
|
||||
../../modules/kmscon.nix
|
||||
../../modules/printer.nix
|
||||
../../modules/proton-bridge.nix
|
||||
../../modules/tailscale.nix
|
||||
|
||||
./modules/desktop.nix
|
||||
./modules/gpu-replay.nix
|
||||
./modules/nix-gaming.nix
|
||||
./modules/nvidia.nix
|
||||
|
|
|
@ -67,6 +67,9 @@
|
|||
virtualisation = {
|
||||
libvirtd.enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
hyprland =
|
||||
config
|
||||
.home-manager
|
||||
.users
|
||||
.${config.vars.user}
|
||||
.wayland
|
||||
.windowManager
|
||||
.hyprland
|
||||
.finalPackage;
|
||||
in {
|
||||
programs.dconf.enable = true;
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
displayManager = {
|
||||
sessionPackages = [hyprland];
|
||||
};
|
||||
|
||||
libinput.enable = true;
|
||||
};
|
||||
|
||||
greetd = {
|
||||
settings = {
|
||||
initial_session = {
|
||||
command = "${hyprland}/bin/Hyprland";
|
||||
user = config.vars.user;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dbus.enable = true;
|
||||
gvfs.enable = true;
|
||||
flatpak.enable = true;
|
||||
};
|
||||
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu
|
||||
alsa-utils
|
||||
plasma5Packages.kio-admin
|
||||
plasma5Packages.ksshaskpass
|
||||
p7zip # for reshade
|
||||
kio-admin
|
||||
];
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
../../modules/ags
|
||||
../../modules/audio.nix
|
||||
../../modules/greetd
|
||||
../../modules/hyprland
|
||||
../../modules/kmscon.nix
|
||||
../../modules/plymouth.nix
|
||||
|
@ -12,7 +11,6 @@
|
|||
../../modules/proton-bridge.nix
|
||||
../../modules/tailscale.nix
|
||||
|
||||
./modules/desktop.nix
|
||||
./modules/security.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -83,15 +83,22 @@
|
|||
libvirtd.enable = true;
|
||||
waydroid.enable = true;
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu
|
||||
];
|
||||
|
||||
# enable brightness control
|
||||
programs.light.enable = true;
|
||||
|
||||
services.udev.extraRules = ''
|
||||
# give permanent path to keyboard XF86* binds
|
||||
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
|
||||
services = {
|
||||
tlp.enable = true;
|
||||
|
||||
# give permanent path to touchpad
|
||||
SUBSYSTEMS=="input", ATTRS{id/product}=="01e0", ATTRS{id/vendor}=="27c6", ATTRS{name}=="*Touchpad", SYMLINK += "touchpad"
|
||||
'';
|
||||
udev.extraRules = ''
|
||||
# give permanent path to keyboard XF86* binds
|
||||
SUBSYSTEMS=="input", ATTRS{id/product}=="0006", ATTRS{id/vendor}=="0000", SYMLINK += "video-bus"
|
||||
|
||||
# give permanent path to touchpad
|
||||
SUBSYSTEMS=="input", ATTRS{id/product}=="01e0", ATTRS{id/vendor}=="27c6", ATTRS{name}=="*Touchpad", SYMLINK += "touchpad"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,61 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
hyprland =
|
||||
config
|
||||
.home-manager
|
||||
.users
|
||||
.${config.vars.user}
|
||||
.wayland
|
||||
.windowManager
|
||||
.hyprland
|
||||
.finalPackage;
|
||||
in {
|
||||
programs.dconf.enable = true;
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
displayManager = {
|
||||
sessionPackages = [hyprland];
|
||||
};
|
||||
|
||||
libinput.enable = true;
|
||||
wacom.enable = true;
|
||||
};
|
||||
|
||||
greetd = {
|
||||
settings = {
|
||||
initial_session = {
|
||||
command = "${hyprland}/bin/Hyprland";
|
||||
user = "matt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
dbus.enable = true;
|
||||
gvfs.enable = true;
|
||||
flatpak.enable = true;
|
||||
tlp.enable = true;
|
||||
};
|
||||
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
qemu
|
||||
alsa-utils
|
||||
plasma5Packages.kio-admin
|
||||
plasma5Packages.ksshaskpass
|
||||
p7zip # for reshade
|
||||
kio-admin
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue