hyprland in homemanager + cleanup
This commit is contained in:
parent
f0f8cd6d0f
commit
4c9adeb9af
8 changed files with 65 additions and 27 deletions
|
|
@ -3,18 +3,12 @@ with lib;
|
|||
let
|
||||
cfg = config.nyxs-nix.services.home;
|
||||
in {
|
||||
imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
];
|
||||
imports = if pkgs.stdenv.pkgs.stdenv.isLinux
|
||||
then [ inputs.home-manager.nixosModules.home-manager ]
|
||||
else [ inputs.home-manager.darwinModules.home-manager ];
|
||||
|
||||
options.nyxs-nix.services.home = with types; {
|
||||
enable = mkEnableOption "Enable the vrrp quotes service";
|
||||
|
||||
isMacOS = mkOption {
|
||||
type = bool;
|
||||
default = false;
|
||||
description = "is this device running on macos";
|
||||
};
|
||||
enable = mkEnableOption "Enable Home Manager";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
|
|||
|
|
@ -1,15 +1,20 @@
|
|||
{ config, pkgs, lib, osConfig, ... }:
|
||||
|
||||
{
|
||||
imports = if pkgs.stdenv.pkgs.stdenv.isLinux
|
||||
then [ ./linux ]
|
||||
else [ ./mac ];
|
||||
|
||||
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
home = {
|
||||
username = "nyxerinys";
|
||||
homeDirectory = (
|
||||
if osConfig.nyxs-nix.services.home.isMacOS then
|
||||
"/Users/nyxerinys"
|
||||
else
|
||||
if pkgs.stdenv.isLinux then
|
||||
"/home/nyxerinys"
|
||||
else
|
||||
"/Users/nyxerinys"
|
||||
);
|
||||
packages = with pkgs; [
|
||||
prismlauncher
|
||||
|
|
|
|||
6
modules/home/nyxerinys/linux/default.nix
Normal file
6
modules/home/nyxerinys/linux/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ osConfig, lib, ... }:
|
||||
|
||||
{
|
||||
imports = []
|
||||
++ lib.optionals osConfig.programs.hyprland.enable osConfig.programs [ ./hyprland.nix ];
|
||||
}
|
||||
11
modules/home/nyxerinys/linux/hyprland.nix
Normal file
11
modules/home/nyxerinys/linux/hyprland.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
systemd.variables = ["--all"];
|
||||
};
|
||||
}
|
||||
5
modules/home/nyxerinys/mac/default.nix
Normal file
5
modules/home/nyxerinys/mac/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue