Compare commits

...

2 Commits

Author SHA1 Message Date
662e45ef16 wayland: add XDPH to hosts/satori and add initial hyprland+foot configs to home/natto
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-01-24 11:37:03 +05:30
5fef417fb0 home/natto: move around stuff
move git and zsh from hosts/satori and split services.nix

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-01-24 11:36:04 +05:30
25 changed files with 427 additions and 170 deletions

1
home/natto/config/README Normal file
View File

@@ -0,0 +1 @@
Some of these are copied as-it-is. The rest are managed via home-manager and are just here for legacy purposes.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,26 @@
[colors]
background=11111B
bright0=585B70
bright1=F38BA8
bright2=A6E3A1
bright3=F9E2AF
bright4=89B4FA
bright5=F5C2E7
bright6=94E2D5
bright7=A6ADC8
foreground=CDD6F4
regular0=45475A
regular1=F38BA8
regular2=A6E3A1
regular3=F9E2AF
regular4=89B4FA
regular5=F5C2E7
regular6=94E2D5
regular7=BAC2DE
[main]
font=Fira Mono:style=Regular:pixelsize=12
font-bold=Fira Mono:style=Bold:pixelsize=12
[scrollback]
lines=4000

View File

@@ -0,0 +1,147 @@
exec-once=/nix/store/x6xkqqa5caslrmbz36m2hxg5b3pzzydy-dbus-1.14.4/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && systemctl --user start hyprland-session.target
monitor=,preferred,auto,1
input {
kb_layout = us
kb_variant = colemak_dh
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = yes
}
repeat_delay = 300
}
general {
gaps_in = 5
gaps_out = 10
border_size = 2
# home-manager is going to override these
col.active_border = rgba(b4befeee) rgba(f5c2e7ff) 135deg
col.inactive_border = rgba(595959ff)
layout = dwindle
}
decoration {
rounding = 1
blur = yes
blur_size = 6
blur_passes = 1
blur_new_optimizations = on
blur_xray = yes
drop_shadow = yes
inactive_opacity = 0.8
}
animations {
enabled = yes
bezier =overshot,0.01, 0.9, 0.1, 1.05
bezier =easeoutexpo,0.16, 1, 0.3, 1
animation = windows, 1, 7, overshot, popin 50%
animation = windowsOut, 1, 7, easeoutexpo, popin 50%
animation = border, 1, 10, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, overshot
}
dwindle {
pseudotile = yes
preserve_split = yes
}
master {
new_is_master = false
}
gestures {
workspace_swipe = off
}
$mainMod = SUPER
binde=$mainMod, RETURN, exec, foot
bindr=SUPER, D, exec, pkill wofi || wofi
bind=$mainMod, P, exec, mpc toggle
bind=, XF86AudioNext, exec, mpc seek +00:00:05
bind=, XF86AudioPrev, exec, mpc seek -00:00:05
bind=$mainMod, XF86AudioNext, exec, mpc next
bind=$mainMod, XF86AudioPrev, exec, mpc prev
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind=,XF86AudioMute,exec,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
binde=, XF86MonBrightnessUp, exec, light -A 5
binde=, XF86MonBrightnessDown, exec, light -U 5
bind=$mainMod SHIFT, F1, exec, setxkbmap us colemak_dh
bind=$mainMod SHIFT, F2, exec, setxkbmap us basic
bind=$mainMod SHIFT, F3, exec, setxkbmap in deva
bind=$mainMod SHIFT, F4, exec, setxkbmap in guru
bind=$mainMod SHIFT, F5, exec, setxkbmap colemak dhz
binde=$mainMod SHIFT, Q, killactive,
bind=$mainMod ALT, e, exit,
bind=$mainMod SHIFT, t, pseudo,
bind=$mainMod, f, fullscreen,
bind=$mainMod, t, togglefloating,
bindm=SUPER, mouse:272, movewindow
bindm=SUPER, mouse:273, resizewindow
bind=$mainMod, left, movefocus, l
bind=$mainMod, m, movefocus, l
bind=$mainMod, right, movefocus, r
bind=$mainMod, i, movefocus, r
bind=$mainMod, up, movefocus, u
bind=$mainMod, e, movefocus, u
bind=$mainMod, down, movefocus, d
bind=$mainMod, n, movefocus, d
binde=$mainMod SHIFT, left, movewindow, l
binde=$mainMod SHIFT, m, movewindow, l
binde=$mainMod SHIFT, right, movewindow, r
binde=$mainMod SHIFT, i, movewindow, r
binde=$mainMod SHIFT, up, movewindow, u
binde=$mainMod SHIFT, e, movewindow, u
binde=$mainMod SHIFT, down, movewindow, d
binde=$mainMod SHIFT, n, movewindow, d
binde=SHIFT ALT, left, resizeactive, -10 0
binde=SHIFT ALT, m, resizeactive, -10 0
binde=SHIFT ALT, right, resizeactive, 10 0
binde=SHIFT ALT, i, resizeactive, 10 0
binde=SHIFT ALT, up, resizeactive, 0 -10
binde=SHIFT ALT, e, resizeactive, 0 -10
binde=SHIFT ALT, down, resizeactive, 0 10
binde=SHIFT ALT, n, resizeactive, 0 10
bind=$mainMod, 1, workspace, 1
bind=$mainMod, 2, workspace, 2
bind=$mainMod, 3, workspace, 3
bind=$mainMod, 4, workspace, 4
bind=$mainMod, 5, workspace, 5
bind=$mainMod, 6, workspace, 6
bind=$mainMod, 7, workspace, 7
bind=$mainMod, 8, workspace, 8
bind=$mainMod, 9, workspace, 9
bind=$mainMod, 0, workspace, 10
bind=$mainMod SHIFT, 1, movetoworkspace, 1
bind=$mainMod SHIFT, 2, movetoworkspace, 2
bind=$mainMod SHIFT, 3, movetoworkspace, 3
bind=$mainMod SHIFT, 4, movetoworkspace, 4
bind=$mainMod SHIFT, 5, movetoworkspace, 5
bind=$mainMod SHIFT, 6, movetoworkspace, 6
bind=$mainMod SHIFT, 7, movetoworkspace, 7
bind=$mainMod SHIFT, 8, movetoworkspace, 8
bind=$mainMod SHIFT, 9, movetoworkspace, 9
bind=$mainMod SHIFT, 0, movetoworkspace, 10

View File

@@ -8,13 +8,16 @@
imports = [
./email.nix
./secrets
./programs.nix
./xsession.nix
./wayland.nix
./services.nix
./pkgs.nix
./stuff.nix
./emacs.nix
./gtk.nix
./dunst.nix
./git.nix
./mpd.nix
./zsh.nix
];
}

38
home/natto/dunst.nix Normal file
View File

@@ -0,0 +1,38 @@
{ config, colors, ... }:
{
services = {
dunst = {
enable = true;
iconTheme = with config.gtk.iconTheme; { inherit name package; };
settings = with colors.hex; {
global = {
mouse_left_click = "close_current";
mouse_right_click = "do_action";
mouse_middle_click = "close_all";
font = "Monospace 10";
separator_color = "auto";
shrink = true;
word_wrap = "yes";
};
urgency_low = {
inherit background foreground;
frame_color = sky;
timeout = 5;
};
urgency_normal = {
inherit background foreground;
frame_color = green;
timeout = 5;
};
urgency_critical = {
inherit background foreground;
frame_color = red;
timeout = 0;
};
};
};
};
}

16
home/natto/git.nix Normal file
View File

@@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.git.override {
doInstallCheck = false;
sendEmailSupport = true;
withManual = false;
};
};
age.secrets.gitconfig = {
file = ./secrets/.gitconfig.age;
path = "${config.home.homeDirectory}/.gitconfig";
};
}

18
home/natto/gtk.nix Normal file
View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
{
gtk = {
enable = true;
theme = {
name = "Catppuccin-Mocha-Standard-Teal-Dark";
package = pkgs.catppuccin-gtk.override {
accents = [ "teal" ];
variant = "mocha";
};
};
iconTheme = {
package = pkgs.zafiro-icons;
name = "Zafiro-icons-Dark";
};
};
qt.platformTheme = "gtk";
}

View File

@@ -1,11 +1,14 @@
{ config, pkgs, inputs, ... }:
{ config, pkgs, ... }:
let
home = config.home.homeDirectory;
in
{
services = {
mpd = {
enable = true;
musicDirectory = "${config.home.homeDirectory}/Music";
dbFile = "${config.home.homeDirectory}/.config/mpd/database";
dataDir = "${config.home.homeDirectory}/.config/mpd";
musicDirectory = "${home}/Music";
dbFile = "${home}/.config/mpd/database";
dataDir = "${home}/.config/mpd";
network = {
startWhenNeeded = true;
listenAddress = "any";
@@ -26,38 +29,6 @@
};
};
};
dunst = {
enable = true;
settings = {
global = {
font = "Monospace 10";
frame_color = "#93a1a1";
separator_color = "#93a1a1";
shrink = true;
icon_theme = config.gtk.iconTheme.name;
};
urgency_low = {
background = "#586e75";
foreground = "#eee8d5";
timeout = 5;
};
urgency_normal = {
background = "#073642";
foreground = "#eee8d5";
timeout = 5;
};
urgency_critical = {
background = "#dc322f";
foreground = "#eee8d5";
timeout = 0;
};
};
};
};
systemd.user.services = {
@@ -84,4 +55,25 @@
};
};
};
home = {
packages = with pkgs; [
(ncmpcpp.override {
visualizerSupport = true;
clockSupport = true;
})
mpdas
mpc_cli
];
file.ncmpcpp = {
source = ./config/ncmpcpp/config;
target = "${config.xdg.configHome}/ncmpcpp/config";
};
};
age.secrets.mpdasrc = {
file = ./secrets/mpdasrc.age;
path = "${home}/.config/mpdasrc";
};
}

View File

@@ -4,10 +4,8 @@
# A/V, codec and media stuff
ffmpeg-full
pamixer
mpdas
wireplumber
mpv
mpc_cli
pulseaudio
pavucontrol
spotify
@@ -16,22 +14,12 @@
# Utils
rage
curl
(dmenu.override { patches = [ ./patches/dmenu.patch ]; })
(st.override {
patches = [ ./patches/st.patch ];
extraLibs = [ harfbuzz ];
})
yt-dlp
xclip
xorg.xkbcomp
xorg.xmodmap
p7zip
unrar
sxiv
vim
jmtpfs
neofetch
xdotool
(inputs.nbfc.packages.${pkgs.system}.nbfc-client-c)
(flake.packages.${pkgs.system}.customscripts)
translate-shell
@@ -40,16 +28,6 @@
undervolt
# GUI utils
(xfce.thunar.override {
thunarPlugins = with xfce; [
thunar-media-tags-plugin
thunar-volman
thunar-archive-plugin
];
})
xfce.xfconf
xfce.tumbler
flameshot
(discord.override {
nss = nss_latest;
})
@@ -58,12 +36,8 @@
luajit
dunst
feh
xmobar
arc-theme
arc-icon-theme
authy
gnome.zenity
stalonetray
# Wine and games and stuff
steam
@@ -108,10 +82,5 @@
anki-bin
tor-browser-bundle-bin
mailcap
(ncmpcpp.override {
visualizerSupport = true;
clockSupport = true;
})
libsForQt5.qtstyleplugins
];
}

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, colors, ... }:
{
programs = {
home-manager.enable = true;
@@ -25,7 +25,33 @@
password-store.enable = true;
direnv.enable = true;
foot = {
enable = false;
enable = true;
settings = {
main = {
font = "Fira Mono:style=Regular:pixelsize=18";
font-bold = "Fira Mono:style=Bold:pixelsize=18";
};
scrollback.lines = 4000;
colors = with colors.default; {
inherit foreground background;
regular0 = surface1;
regular1 = red;
regular2 = green;
regular3 = yellow;
regular4 = blue;
regular5 = pink;
regular6 = teal;
regular7 = subtext1;
bright0 = surface2;
bright1 = red;
bright2 = green;
bright3 = yellow;
bright4 = blue;
bright5 = pink;
bright6 = teal;
bright7 = subtext0;
};
};
};
};
}

View File

@@ -0,0 +1,17 @@
age-encryption.org/v1
-> ssh-ed25519 kIk5ZQ e1cSQ/CPtYglZXXIQSM2pWQQ8FJQQepuqCXiIDU/Oyk
W3/7wgoihF+wusjGjSvKsn/jJqRSC0jUnWXY3Irvc4s
-> ssh-rsa lnK3Ng
NonFv6q2KMI4U/qNlgb01YOdeo7m7UkuU8rixgv8YZU+89ZfTWcuk946FffNT1Rs
7Y2JrK1YGQGXz2/sNJshJXKJKawRGfynWjSSPt5wiEYvetXnvD9xY36BYX482/59
RhmsIVkAD8i809CZxpjukrwcrqCbqG7O7USe8suFlcYRIFP15jc3q5sMBUaIi982
yZM2UeB4ep/onPLnrhiBPnhzMILkDQTcv6Ajmcax0ZrKTcZ7qoe1dgLmJKTNLA/5
DNO3MT5m1wzx2KZ2FIjmpnJ+/yVXdIfSJgGnrR1qbHl3Zbji8EJx7fbUUddASvot
QS/OgRcYg063DDNCOycxCzpYVGCw6jWSpbohZnoy9+zhei2nnI/UHOZYng2OJ6vV
gP5BWwSBWXtX3UsrCZkLhTDMniU2Qje3S4b0jya8AIdpTLanrIS0GXSWzQTEx2gp
6OqNGXKa/LCAmFw83gC0VDdi6AgCTbBZT6Ul06dQiG4K5PgDtiysxcAb+HPUWJG+
-> #sFXk;-grease xnKp
RDMpdFSVKr7dC3z6iAF4QmYE
--- F4Uen8zSg6WsChoMDXaJSP/fLj/7QWI5jcQMFF0E9DM
<EFBFBD><EFBFBD>U<EFBFBD><EFBFBD>6<07>҄e!31<33>b<EFBFBD>1S,<2C>'<27>C<EFBFBD>}<7D>8d<38><64><19>d<EFBFBD><64>u4{^v/<2F><1B>Zr<5A><72><EFBFBD>$<24>"RK

Binary file not shown.

View File

@@ -1,25 +0,0 @@
{ config, ... }: {
age =
let
home = config.home.homeDirectory;
in
{
sshKeyPaths = [ "${home}/.ssh/id_ed25519" ];
secrets = {
mpdasrc = {
file = ./mpdasrc.age;
path = "${home}/.config/mpdasrc";
};
zshrc = {
file = ./.zshrc.age;
path = "${home}/.zshrc";
mode = "660";
};
gitconfig = {
file = ./.gitconfig.age;
path = "${home}/.gitconfig";
mode = "660";
};
};
};
}

View File

@@ -4,11 +4,11 @@
userDirs.enable = true;
};
age.sshKeyPaths = [ "${config.home.homeDirectory}/.ssh/id_ed25519" ];
home = {
sessionVariables = {
LV2_PATH = lib.makeSearchPath "lib/lv2" (with pkgs; [ calf ]);
TERM = "st-24bits";
QT_QPA_PLATFORMTHEME = "gtk2";
QT_X11_NO_MITSHM = "1";
HM_CONF_DIR = "/etc/nixos";
};
@@ -24,24 +24,10 @@
source = ./config/stalonetrayrc;
target = "${home.homeDirectory}/.stalonetrayrc";
};
ncmpcpp = {
source = ./config/ncmpcpp/config;
target = "${xdg.configHome}/ncmpcpp/config";
};
mpv = {
source = ./config/mpv/mpv.conf;
target = "${xdg.configHome}/mpv/mpv.conf";
};
packages = {
text =
let
packages = builtins.map (p: "${p.name}") config.home.packages;
sortedUnique = builtins.sort builtins.lessThan (lib.unique packages);
formatted = builtins.concatStringsSep "\n" sortedUnique;
in
formatted;
target = "${xdg.configHome}/${config.home.username}-packages";
};
};
};
i18n = {

View File

@@ -6,12 +6,13 @@
enable = true;
};
hyprland = {
enable = false;
enable = true;
xwayland = {
enable = true;
hidpi = true;
};
nvidiaPatches = true;
extraConfig = builtins.readFile ./config/hypr/hyprland.conf;
};
};
};

View File

@@ -10,18 +10,6 @@
gtk.enable = true;
};
gtk = {
enable = true;
theme = {
package = pkgs.numix-solarized-gtk-theme;
name = "NumixSolarizedDarkMagenta";
};
iconTheme = {
package = pkgs.zafiro-icons;
name = "Zafiro-icons-Dark";
};
};
xsession = {
enable = true;
windowManager = {
@@ -38,4 +26,29 @@
};
};
};
home.packages = with pkgs; [
(dmenu.override { patches = [ ./patches/dmenu.patch ]; })
(st.override {
patches = [ ./patches/st.patch ];
extraLibs = [ harfbuzz ];
})
xclip
xorg.xkbcomp
xorg.xmodmap
sxiv
xdotool
(xfce.thunar.override {
thunarPlugins = with xfce; [
thunar-media-tags-plugin
thunar-volman
thunar-archive-plugin
];
})
xfce.xfconf
xfce.tumbler
flameshot
xmobar
stalonetray
];
}

33
home/natto/zsh.nix Normal file
View File

@@ -0,0 +1,33 @@
{ config, ... }:
let
secretPath = "${config.home.homeDirectory}/.zshenv_secret";
in
{
programs.zsh = {
enable = true;
autocd = true;
history = rec {
expireDuplicatesFirst = true;
ignoreDups = true;
size = 30000;
save = size;
};
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
prezto = {
enable = true;
prompt.theme = "pure";
autosuggestions.color = "fg=yellow,bold";
};
initExtra = ''
. ${secretPath};
'';
};
age.secrets.zshenv_secret = {
file = ./secrets/.zshenv_secret;
path = secretPath;
mode = "660";
};
}

View File

@@ -9,8 +9,8 @@
support32Bit = true;
};
pulse.enable = true;
# jack.enable = true;
socketActivation = true;
wireplumber.enable = true;
config.pipewire = {
context.objects = [
@@ -78,11 +78,4 @@
};
};
sound.enable = true;
/* hardware = {
pulseaudio = {
enable = true;
support32Bit = true;
package = pkgs.pulseaudio.override { jackaudioSupport = true; };
};
};*/
}

View File

@@ -10,6 +10,7 @@
./services.nix
./graphics.nix
./xorg.nix
./wayland.nix
./nix.nix
];
system.stateVersion = "21.05";

View File

@@ -31,42 +31,9 @@
};
};
git = {
enable = true;
package = pkgs.git.override {
doInstallCheck = false;
sendEmailSupport = true;
withManual = false;
};
};
zsh = {
enable = true;
histSize = 30000;
enableCompletion = true;
enableBashCompletion = true;
syntaxHighlighting.enable = true;
autosuggestions = {
enable = true;
highlightStyle = "fg=yellow,bold";
};
ohMyZsh.enable = true;
};
adb.enable = true;
light.enable = true;
/* proxychains = {
enable = true;
chain.type = "dynamic";
proxyDNS = true;
proxies = {
remilia = {
enable = true;
type = "socks5";
host = "127.0.0.1";
port = 2217;
};
};
}; */
gamemode.enable = true;
nm-applet.enable = true;
};

View File

@@ -19,6 +19,7 @@
];
};
};
console.useXkbConfig = true;
fonts.fonts = with pkgs; [
fira-mono

8
hosts/satori/wayland.nix Normal file
View File

@@ -0,0 +1,8 @@
{ inputs, pkgs, ... }:
{
xdg.portal = {
enable = true;
extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ];
};
}

View File

@@ -6,7 +6,6 @@
# '';
#in
{
console.useXkbConfig = true;
services = {
xserver = {
enable = true;
@@ -35,8 +34,8 @@
symbolsFile = ./colemak;
};
};
layout = "colemak";
xkbVariant = "dhz"; # trying to ditch DHz now
layout = "us";
xkbVariant = "colemak_dh"; # trying to ditch DHz now
autoRepeatDelay = 320;
autoRepeatInterval = 30;
};