mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
adjust themes and other stuff
This commit is contained in:
parent
1bd790f1c8
commit
70e965c63f
17 changed files with 332 additions and 183 deletions
21
nix/hardware/audio.nix
Normal file
21
nix/hardware/audio.nix
Normal 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
|
||||
];
|
||||
}
|
||||
|
|
@ -10,11 +10,13 @@
|
|||
|
||||
options.kp2pml30.hardware = {
|
||||
wireless = lib.mkEnableOption "";
|
||||
audio = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./efiGrub.nix
|
||||
./wireless.nix
|
||||
./audio.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ in {
|
|||
|
||||
./opera.nix
|
||||
./steam.nix
|
||||
|
||||
./messengers.nix
|
||||
./messengers-work.nix
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
|
|
|
|||
10
nix/personal/graphical/messengers-work.nix
Normal file
10
nix/personal/graphical/messengers-work.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, rootPath
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.kp2pml30;
|
||||
in lib.mkIf cfg.messengers.personal {
|
||||
}
|
||||
15
nix/personal/graphical/messengers.nix
Normal file
15
nix/personal/graphical/messengers.nix
Normal 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
|
||||
];
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue