69 lines
1.5 KiB
Nix
Executable file
69 lines
1.5 KiB
Nix
Executable file
{ config, pkgs, ... }:
|
|
|
|
let
|
|
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
|
|
|
hyprland = (import flake-compat {
|
|
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz";
|
|
}).defaultNix;
|
|
in {
|
|
imports = [
|
|
hyprland.homeManagerModules.default
|
|
];
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
kwin-system76-scheduler-integration = pkgs.libsForQt5.callPackage ../system/syspkgs/kwin-system76-scheduler-integration.nix {};
|
|
})
|
|
];
|
|
|
|
home.username = "bolt";
|
|
home.homeDirectory = "/home/bolt";
|
|
|
|
home.packages = with pkgs; [
|
|
cmus
|
|
zellij
|
|
xonotic
|
|
nicotine-plus
|
|
];
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
config = rec {
|
|
modifier = "Mod4";
|
|
terminal = "kitty";
|
|
gaps = {
|
|
inner = 15;
|
|
outer = 30;
|
|
};
|
|
};
|
|
wrapperFeatures = {
|
|
base = true;
|
|
gtk= true;
|
|
};
|
|
};
|
|
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
bind = SUPER, Return, exec, kitty
|
|
'';
|
|
};
|
|
|
|
systemd.user.startServices = true;
|
|
systemd.user.services."com.system76.Scheduler.dbusproxy" = {
|
|
Unit = {
|
|
Description = "the system76 process scheduler kwin dbus proxy";
|
|
Requires = [ "dbus.service" ];
|
|
};
|
|
Install = {
|
|
WantedBy = [ "graphical-session.target" "default.target" ];
|
|
};
|
|
Service = {
|
|
ExecStart = ''${pkgs.kwin-system76-scheduler-integration}/bin/kwin-system76-scheduler-dbus-proxy.sh'';
|
|
};
|
|
};
|
|
|
|
}
|