added ncmpcpp

This commit is contained in:
Charlie Root 2024-04-13 00:15:21 +02:00
commit ef91a2a87c
8 changed files with 641 additions and 21 deletions

View file

@ -22,6 +22,17 @@
security.sudo.package = pkgs.sudo.override { withInsults = true; };
security.polkit.enable = true;
programs.kdeconnect.enable = true;
services.mpd = {
enable = true;
musicDirectory = "/home/vali/Nextcloud/Media/Music/";
startWhenNeeded = true;
extraConfig = ''
audio_output {
type "pipewire"
name "My PipeWire Output"
}
'';
};
myOptions = {
other = {
system = {

View file

@ -4,7 +4,7 @@ _: {
./programs.nix
./hardware-configuration.nix
./profile.nix
./i3.nix
./i3
./awesome.nix
./hypr/default.nix
];

View file

@ -22,7 +22,7 @@ font pango:monospace 12
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
@ -36,10 +36,10 @@ exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym 123 exec --no-startup-id wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ && $refresh_i3status
bindsym 122 exec --no-startup-id wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym 198 exec --no-startup-id pamixer --default-source -t && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -111,7 +111,7 @@ bindsym $mod+a focus parent
#bindsym $mod+d focus child
default_border pixel 3
#smart_borders on
#hide_edge_borders smart_no_gaps
hide_edge_borders smart_no_gaps
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"

View file

@ -2,5 +2,4 @@ _: {
imports = [
./i3.nix
];
home.file.".config/i3(config)".source = ./config;
}

View file

@ -1,10 +1,12 @@
{ pkgs, lib, config, callPackage, ... }:
with lib; let
cfg = config.myOptions.programs.i3;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.i3.enable = mkEnableOption "i3";
config = mkIf cfg.enable {
home-manager.users.${username}.xdg.configFile."i3/config".source = ./config;
services.xserver = {
enable = true;
xkb.layout = "de";
@ -14,10 +16,6 @@ in {
displayManager = {
gdm.enable = true;
defaultSession = "none+i3";
setupCommands = ''
xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1
'';
# xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1
};
};
};

View file

@ -1,23 +1,17 @@
{ config, inputs, pkgs, ... }:
let
username = config.myOptions.other.system.username;
fenix = inputs.fenix.packages.${pkgs.system};
in {
home-manager.users.${username} = {
home.packages = let
fenix = inputs.fenix.packages.${pkgs.system};
in with pkgs; [
environment.systemPackages = with pkgs; [
alacritty
alsa-utils
asciinema
betterbird
bibata-cursors
chromium
dig
easyeffects
element-desktop
eza
ripgrep
fastfetch
(fenix.complete.withComponents [
"cargo"
@ -39,6 +33,7 @@ in {
krita
lazygit
libreoffice-fresh
ncmpcpp
neofetch
neovim
networkmanagerapplet
@ -47,18 +42,20 @@ in {
pavucontrol
pcmanfm
pfetch
playerctl
polkit
python3
qbittorrent
ripgrep
rustdesk
rofi
scc
sherlock
signal-desktop-beta
smartmontools
spotube
st
steam
strawberry-qt6
telegram-desktop
texliveFull
thunderbird
@ -74,5 +71,4 @@ in {
zathura
zip
];
};
}