Migrate to snowfall lib

This commit is contained in:
soraefir
2023-11-04 02:28:27 +01:00
parent a7ef5cf996
commit 153c1a8359
171 changed files with 3787 additions and 3999 deletions

View File

@@ -0,0 +1,18 @@
{ lib, config, pkgs, ... }:
let cfg = config.hostcfg.make.gui;
in {
config = lib.mkIf cfg {
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
environment.systemPackages = with pkgs; [ easyeffects ];
};
}

View File

@@ -0,0 +1,24 @@
{ lib, config, pkgs, ... }:
let cfg = config.hostcfg.make.gui;
in {
config = lib.mkIf cfg {
environment.systemPackages = with pkgs; [ bspwm hyprland ];
services.greetd = {
enable = true;
settings = rec {
initial_session = {
command = "zsh";
user = "${config.hostcfg.username}";
};
default_session = initial_session;
};
};
environment.etc."greetd/environments".text = ''
Hyprland
bspwm
'';
};
}

View File

@@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let cfg = config.hostcfg.make.gui;
in {
config = lib.mkIf cfg {
services.xserver = {
enable = true;
videoDrivers = [ "amd" ];
layout = "us";
xkbVariant = "intl";
excludePackages = [ pkgs.xterm ];
exportConfiguration = true;
# libinput.touchpad.tapping = false;
desktopManager.xterm.enable = false;
};
};
}