diff --git a/entropy/nixos/configuration.nix b/entropy/nixos/configuration.nix index 8ef0131..957be56 100644 --- a/entropy/nixos/configuration.nix +++ b/entropy/nixos/configuration.nix @@ -129,11 +129,15 @@ in programs.fish.enable = true; programs.vim.defaultEditor = true; + services.emacs = { + install = true; + enable = false; + }; + # List of packages installed in system profile. environment.systemPackages = with pkgs; [ ## basic command line tooling wget - emacs w3m htop bat @@ -169,7 +173,7 @@ in ## other programming languages and compilers stack - haskell-language-server + unstable.haskell-language-server gcc binutils-unwrapped gnumake diff --git a/entropy/nixos/modules/audio.nix b/entropy/nixos/modules/audio.nix index a4dcbc6..bb4fdf7 100644 --- a/entropy/nixos/modules/audio.nix +++ b/entropy/nixos/modules/audio.nix @@ -8,6 +8,96 @@ pavucontrol ]; + ## use Pipewire instead. + #hardware.pulseaudio.enable = false; + + ## rtkit is optional but recommended + #security.rtkit.enable = true; + #services.pipewire = { + #enable = true; + #alsa.enable = true; + #alsa.support32Bit = true; + #pulse.enable = true; + ## If you want to use JACK applications, uncomment this + ##jack.enable = true; + + ## use the example session manager (no others are packaged yet so this is enabled by default, + ## no need to redefine it in your config for now) + ##media-session.enable = true; + #media-session.config.bluez-monitor.rules = [ + #{ + ## Matches all cards + #matches = [ { "device.name" = "~bluez_card.*"; } ]; + #actions = { + #"update-props" = { + #"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ]; + ## mSBC is not expected to work on all headset + adapter combinations. + #"bluez5.msbc-support" = true; + ## SBC-XQ is not expected to work on all headset + adapter combinations. + #"bluez5.sbc-xq-support" = true; + #}; + #}; + #} + #{ + #matches = [ + ## Matches all sources + #{ "node.name" = "~bluez_input.*"; } + ## Matches all outputs + #{ "node.name" = "~bluez_output.*"; } + #]; + #actions = { + #"node.pause-on-idle" = false; + #}; + #} + #]; + ##media-session.config.v4l2-monitor.rules = [ + ### An array of matches/actions to evaluate. + ##{ + ### Rules for matching a device or node. It is an array of + ### properties that all need to match the regexp. If any of the + ### matches work, the actions are executed for the object. + ##matches = [ + ##{ + ### This matches all devices. + ##device.name = "~v4l2_device.*"; + ##} + ##]; + ##actions = { + ### Actions can update properties on the matched object. + ##update-props = { + ###device.nick = "My Device" + ##}; + ##}; + ##} + ##{ + ##matches = [ + ##{ + ### Matches all sources. + ##node.name = "~v4l2_input.*"; + ##} + ##{ + ### Matches all sinks. + ##node.name = "~v4l2_output.*"; + ##} + ##]; + ##actions = { + ##update-props = { + ###node.nick = "My Node" + ###node.nick = null + ###priority.driver = 100 + ###priority.session = 100 + ##node.pause-on-idle = false; + ###session.suspend-timeout-seconds = 5 # 0 disables suspend + ##}; + ##}; + ##} + ##]; + + #}; + + #sound.mediaKeys.enable = true; + + # configure pulseaudio to work with bluetooth headsets using aptx hardware.pulseaudio = { enable = true; diff --git a/entropy/sway/config b/entropy/sway/config index ec6cea2..9e5c2ea 100644 --- a/entropy/sway/config +++ b/entropy/sway/config @@ -227,13 +227,6 @@ mode "resize" { } bindsym $mod+r mode "resize" -# Screenshots -bindsym $mod+c exec grimshot --notify save area - -# quick access to mail -bindsym $mod+m exec 'alacritty -e neomutt -f "notmuch://?query=tag:unread"' - -bindsym $mod+x exec 'swaylock -f -c 000000ff' # Volume bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +5%' @@ -247,6 +240,19 @@ for_window [title="Extension: (Tree Style Tab).*" app_id="firefox"] floating ena # those frickin' zoom popups for_window [title="zoom"] floating enable +# custom keybinds + +# Screenshots +bindsym $mod+c exec grimshot --notify save area + +# quick access to mail +bindsym $mod+m exec 'alacritty -e neomutt -f "notmuch://?query=tag:unread"' + +bindsym $mod+x exec 'swaylock -f -c 000000ff' + +bindsym $mod+n exec firefox +bindsym $mod+o exec obsidian + # # Status Bar: