adjust themes and other stuff

This commit is contained in:
kp2pml30 2025-02-02 00:24:27 +04:00
parent 1bd790f1c8
commit 70e965c63f
17 changed files with 332 additions and 183 deletions

21
nix/hardware/audio.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs
, lib
, rootPath
, config
, ...
}:
let
cfg = config.kp2pml30;
in lib.mkIf cfg.hardware.audio {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.systemPackages = with pkgs; [
alsa-utils
acpid
];
}

View file

@ -10,11 +10,13 @@
options.kp2pml30.hardware = {
wireless = lib.mkEnableOption "";
audio = lib.mkEnableOption "";
};
imports = [
./efiGrub.nix
./wireless.nix
./audio.nix
];
config = {

View file

@ -17,6 +17,10 @@ in {
kitty = lib.mkEnableOption "";
opera = lib.mkEnableOption "";
steam = lib.mkEnableOption "";
messengers = {
personal = lib.mkEnableOption "";
work = lib.mkEnableOption "";
};
};
imports = [
@ -53,6 +57,7 @@ in {
fishPlugins.grc
fishPlugins.bass
python312 # needed for bass
grc
];
@ -67,6 +72,7 @@ in {
"nvidia-settings"
"nvidia-persistenced"
"opera"
"discord-ptb"
];
};
}

View file

@ -13,6 +13,9 @@ in {
./opera.nix
./steam.nix
./messengers.nix
./messengers-work.nix
];
fonts.packages = with pkgs; [

View file

@ -0,0 +1,10 @@
{ pkgs
, lib
, rootPath
, config
, ...
}:
let
cfg = config.kp2pml30;
in lib.mkIf cfg.messengers.personal {
}

View file

@ -0,0 +1,15 @@
{ pkgs
, lib
, rootPath
, config
, ...
}:
let
cfg = config.kp2pml30;
in lib.mkIf cfg.messengers.personal {
users.users.${cfg.username}.packages = with pkgs; [
discord-ptb
telegram-desktop
signal-desktop
];
}

View file

@ -31,12 +31,23 @@ in lib.mkIf cfg.xserver {
environment.systemPackages = with pkgs; [
xclip
brightnessctl
];
home-manager.users.${cfg.username} = {
home.file.".config/awesome/rc.lua" = { source = rootPath + "/home/.config/awesome/rc.lua"; };
programs.rofi = {
enable = true;
};
home.file.".config/rofi" = { source = rootPath + "/home/.config/rofi"; recursive = true; };
home.file.".config/awesome/rc.lua" = { source = rootPath + "/home/.config/awesome/rc.lua"; };
home.file.".config/awesome/theme.lua" = { source = rootPath + "/home/.config/awesome/theme.lua"; };
home.file.".config/awesome/deficient" = {
source = builtins.fetchGit {
url = "https://github.com/deficient/deficient.git";
rev = "22ad2bea198f0c231afac0b7197d9b4eb6d80da3";
};
recursive = true;
};
};
}

View file

@ -30,12 +30,12 @@ in lib.mkIf cfg.nginx {
listen = [
{ addr = "0.0.0.0"; port = 80; }
{ addr = "0.0.0.0"; port = 444; ssl = true; }
# { addr = "0.0.0.0"; port = 444; ssl = true; }
];
locations."/" = {
root = cfg.sitePath;
tryFiles = "$uri $uri/ index.html";
tryFiles = "$uri $uri/ /index.html";
};
};