This commit is contained in:
Alexander Szczepanski
2021-12-02 08:43:20 +01:00
parent 527b387c2e
commit c9414f1fbd
14 changed files with 435 additions and 123 deletions

View File

View File

@ -1,7 +0,0 @@
#!/usr/bin/env zsh
sink=$(ponymix -t sink list | awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}' | rofi -dmenu -p 'default sink' | grep -Po '[0-9]+(?=:)') &&
ponymix set-default -d $sink &&
for input in $(ponymix list -t sink-input | grep -Po '[0-9]+(?=:)');do
echo "$input -> $sink"
ponymix -t sink-input -d $input move $sink
done

View File

@ -6,6 +6,7 @@ in
{
services = {
blueman.enable = true;
xserver = {
enable = true;
displayManager = {
@ -39,7 +40,41 @@ in
};
};
environment.systemPackages = with unstable.pkgs; [
lightlocker
pulseaudio-ctl
];
home-manager.users.alex = { pkgs, ... }: {
home = {
packages = with unstable.pkgs; [
arandr
evince
gnome.eog
gnome.file-roller
gnome.gnome-calculator
keepassxc
libnotify
gnome.cheese
];
};
gtk = {
enable = true;
font = {
name = "Liberation Sans Regular";
size = 12;
};
gtk3 = {
extraConfig = { gtk-application-prefer-dark-theme = 1; };
};
iconTheme = {
package = pkgs.pantheon.elementary-icon-theme;
name = "elementary";
};
theme = { name = "Adwaita-dark"; };
};
services = {
# picom = {
# enable = true;
@ -50,44 +85,45 @@ in
dunst = {
enable = true;
package = unstable.dunst;
iconTheme = {
package = pkgs.pantheon.elementary-icon-theme;
name = "elementary";
};
settings = {
global = {
font = "SF Pro Display Regular 12";
markup = "yes";
format = "%s %p\n%b";
sort = "yes";
indicate_hidden = "no";
alignment = "center";
bounce_freq = 0;
show_age_threshold = 60;
word_wrap = "yes";
ignore_newline = "no";
geometry = "300x0-5-5";
shrink = "yes";
transparency = 0;
idle_threshold = 120;
monitor = 0;
follow = "mouse";
sticky_history = "yes";
history_length = 20;
show_indicators = "no";
line_height = 0;
separator_height = 1;
stack_duplicates = "no";
padding = 8;
font = "SF Pro Display Regular 12";
format = "%s %p %b";
width = "(0,300)";
# height = 300;
origin = "bottom-right";
notification_limit = 5;
offset = "4x4";
horizontal_padding = 8;
separator_color = "frame";
startup_notification = true;
# dmenu = /usr/bin/dmenu -p dunst;
# browser = /usr/bin/firefox -new-tab;
icon_position = "left";
icon_path = "/usr/share/icons/Arc";
idle_threshold = 120;
ignore_newline = "no";
indicate_hidden = "no";
line_height = 0;
markup = "yes";
max_icon_size = 64;
};
frame = {
width = 1;
color = "#A6A6A6";
monitor = 0;
padding = 8;
separator_color = "frame";
separator_height = 1;
show_age_threshold = 60;
show_indicators = "no";
shrink = "yes";
sort = "yes";
stack_duplicates = "no";
startup_notification = true;
sticky_history = "yes";
transparency = 0;
word_wrap = "yes";
frame_width = 2;
frame_color = "#A6A6A6";
};
urgency_low = {
@ -150,10 +186,32 @@ in
};
};
nextcloud-client = {
enable = true;
startInBackground = true;
};
# nextcloud-client = {
# enable = true;
# startInBackground = true;
# };
# polybar = {
# enable = true;
# script = "polybar bar &";
# settings = {
# "bar/top" = {
# monitor = "\${env:MONITOR:DisplayPort-1}";
# width = "100%";
# height = "3%";
# radius = 0;
# modules-center = "date";
# };
# "module/date" = {
# type = "internal/date";
# internal = 5;
# date = "%d.%m.%y";
# time = "%H:%M";
# label = "%time% %date%";
# };
# };
# };
redshift = {
enable = true;
@ -189,7 +247,7 @@ in
'';
settings = {
border_width = 4;
window_gap = 5;
window_gap = 4;
top_padding = 0;
left_padding = 0;
right_padding = 0;

View File

@ -72,7 +72,7 @@ in
nix-du
nix-tree
nmap
nodejs-16_x
nodejs
parallel
pciutils
ruby

View File

@ -21,12 +21,9 @@ in
glxinfo
gparted
libsecret
lightlocker
networkmanager-openconnect
openconnect
ponymix
pulseaudio-ctl
python39Packages.pyyaml
];
programs = {
@ -83,40 +80,47 @@ in
fontDir.enable = true;
fonts = with pkgs; [
# (nerdfonts.override { fonts = [ "Liberation" ]; })
nerdfonts
# corefonts
font-awesome
google-fonts
liberation_ttf
meslo-lg
nerdfonts
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-extra
open-sans
stix-two
twemoji-color-font
];
fontconfig = {
enable = true;
antialias = true;
defaultFonts = {
# monospace = [ "Fira Mono" ];
serif = [ "Linux Libertine" ];
sansSerif = [ "Open Sans" ];
emoji = [ "Twitter Color Emoji" ];
};
};
# fontconfig = {
# enable = true;
# antialias = true;
# defaultFonts = {
# # monospace = [ "Fira Mono" ];
# serif = [ "Linux Libertine" ];
# sansSerif = [ "Open Sans" ];
# emoji = [ "Twitter Color Emoji" ];
# };
# };
};
hardware.bluetooth.enable = true;
services = {
blueman.enable = true;
mullvad-vpn.enable = true;
gvfs.enable = true;
udev.packages = with pkgs; [ gnome.gnome-settings-daemon ];
printing = {
enable = true;
drivers = [ pkgs.brlaser ];
};
etesync-dav = {
enable = true;
apiUrl = "https://etesync.szczepan.ski/";
};
};
}

23
configs/pantheon.nix Normal file
View File

@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
{
programs.pantheon-tweaks.enable = true;
services = {
xserver = {
enable = true;
displayManager = {
lightdm = {
enable = true;
greeters.pantheon.enable = true;
};
};
desktopManager.pantheon.enable = true;
layout = "us";
# Enable touchpad support.
libinput.enable = true;
updateDbusEnvironment = true;
};
};
}

View File

@ -18,15 +18,14 @@ in
font-manager
freecad
fslint
gnome.cheese
homebank
insomnia
kdenlive
libreoffice
lutris
mangohud
# mangohud
meld
obs-studio
# obs-studio
pinta
prusa-slicer
rpi-imager

View File

@ -1,6 +1,16 @@
{ config, pkgs, lib, ... }:
let unstable = import <nixos-unstable> { config.allowUnfree = true; };
with builtins; let
unstable = import <nixos-unstable> { config.allowUnfree = true; };
rofiPin = import
(pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "42ded9d56bf0f56bebfcd49b4e942e7ffba4d5fc";
sha256 = "KK/LIcEIU4mKYuGxXSqyBRA/fVplsRs3gnmtdUCqKxU=";
fetchSubmodules = true;
})
{ };
in
{
imports = [ <home-manager/nixos> ];
@ -10,19 +20,15 @@ in
file = {
".bin/rofi-default-sink.sh" = {
executable = true;
source = ./bin/rofi-default-sink.sh;
source = ../home/bin/rofi-default-sink.sh;
};
};
packages = with unstable.pkgs; [
arandr
baobab
barrier
evince
gnome.eog
gnome.file-roller
gnome.gnome-calculator
keepassxc
libnotify
ponymix #rofi-default
mullvad-vpn
];
};
@ -40,31 +46,6 @@ in
};
};
gtk = {
enable = true;
font = {
name = "Liberation Sans Regular";
size = 12;
};
gtk3 = {
# bookmarks = [
# "file:///home/alex/Downloads"
# "file:///home/alex/Nextcloud"
# "file:///mnt/second"
# "smb://192.168.0.100/storage/"
# "file:///home/alex/Workspace"
# "file:///home/alex/3D%20Print"
# "file:///home/alex/Sync"
# ];
extraConfig = { gtk-application-prefer-dark-theme = 1; };
};
iconTheme = {
package = pkgs.pantheon.elementary-icon-theme;
name = "elementary";
};
theme = { name = "Adwaita-dark"; };
};
programs = {
vscode = {
enable = true;
@ -87,6 +68,7 @@ in
rofi = {
enable = true;
font = "Liberation Sans Regular 20";
package = rofiPin.rofi;
extraConfig = {
modi = "drun,window";
show-icons = true;

View File

@ -26,7 +26,6 @@ in
home-manager.users.alex = { pkgs, ... }: {
home = {
enableNixpkgsReleaseCheck = false;
packages = with unstable.pkgs; [
exa
broot
@ -44,10 +43,22 @@ in
pstree
ranger
sshfs
tree
unrar
youtube-dl
];
sessionPath = [
"$HOME/.npm-packages"
"$HOME/.bin"
];
file = {
".npmrc" = {
source = ../home/npmrc;
};
".bin/git-redate" = {
executable = true;
source = ../home/bin/git-redate;
};
};
};
programs = {