This commit is contained in:
Lucy Hochkamp 2025-01-26 09:26:39 +01:00
parent 1685aa3a52
commit d6ae95ef9b
No known key found for this signature in database
10 changed files with 256 additions and 294 deletions

View file

@ -78,12 +78,13 @@
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
openFirewall = true;
};
services.printing.enable = true;
# end printing
programs.light.enable = true;
# networking.networkmanager.enable = true;
@ -101,7 +102,7 @@
services.displayManager.defaultSession = "river";
programs.river.enable = true;
services.upower.enable = true;
users.users.ragon.extraGroups = [ "networkmanager" "video" "netdev" ];
users.users.ragon.extraGroups = [ "networkmanager" "video" "netdev" "plugdev" "dialout" "tape" "uucp" ];
fonts.packages = with pkgs; [
nerdfonts
cantarell-fonts
@ -187,15 +188,18 @@
services.syncthing.enable = true;
services.syncthing.tray.enable = true;
services.syncthing.tray.command = "syncthingtray --wait";
programs.firefox.nativeMessagingHosts = [ pkgs.unstable.firefoxpwa ];
programs.firefox.enable = true;
home.packages = with pkgs; [
inputs.wezterm.packages.${pkgs.system}.default
# inputs.wezterm.packages.${pkgs.system}.default
element-desktop # this is not a place of honor
discord # shitcord
unstable.signal-desktop
unstable.feishin
unstable.firefoxpwa
unstable.plexamp
firefox
# firefox
obsidian
thunderbird
orca-slicer
@ -213,18 +217,17 @@
easyeffects
dune3d
ptyxis
appimage-run
filezilla
# filezilla
broot
];
home.file.".zshrc".text = lib.mkForce ''
exec nu
# we're using nushell as our interactive shell
# so if zsh gets spawned by our terminal emulator, exec nu
cat /proc/$PPID/cmdline | grep -q alacritty && exec nu
'';
programs.nushell.extraConfig = ''
harsh l
'';
services.kdeconnect = {
enable = true;
indicator = true;
@ -257,6 +260,41 @@ filezilla
# };
programs.home-manager.enable = true;
home.stateVersion = "24.05";
programs.alacritty = {
enable = true;
settings = {
font.normal.family = "JetBrainsMono NerdFont";
colors = {
primary = {
# hard contrast
background = "#1d2021";
# normal background = "#282828";
# soft contrast background = = "#32302f"
foreground = "#ebdbb2";
};
normal = {
black = "#282828";
red = "#cc241d";
green = "#98971a";
yellow = "#d79921";
blue = "#458588";
magenta = "#b16286";
cyan = "#689d6a";
white = "#a89984";
};
bright = {
black = "#928374";
red = "#fb4934";
green = "#b8bb26";
yellow = "#fabd2f";
blue = "#83a598";
magenta = "#d3869b";
cyan = "#8ec07c";
white = "#ebdbb2";
};
};
};
};
programs.borgmatic = {
enable = true;
backups.system = {

View file

@ -6,8 +6,8 @@
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
config = builtins.readFile ./builtin.kbd;
};
razerbuero = {
device = "/dev/input/by-id/usb-Razer_Razer_BlackWidow_Tournament_Edition_Chroma-event-kbd";
k70-office = {
device = "/dev/input/by-id/usb-Corsair_CORSAIR_K70_CORE_RGB_TKL_Mechanical_Gaming_Keyboard_599A4D472DCAC05584072AFB922E3BFB-event-kbd";
config = builtins.readFile ./razer.kbd;
};

View file

@ -1,6 +1,6 @@
(defcfg
;; ** For Linux **
input (device-file "/dev/input/by-id/usb-Razer_Razer_BlackWidow_Tournament_Edition_Chroma-event-kbd")
input (device-file "/dev/input/by-id/usb-Corsair_CORSAIR_K70_CORE_RGB_TKL_Mechanical_Gaming_Keyboard_599A4D472DCAC05584072AFB922E3BFB-event-kbd")
;; input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "KMonad output razer")

View file

@ -5,6 +5,11 @@ let
# sha256 = "1zw1a8x20bp9mn9lx18mxzgzvzi02ss57r4q1lc9f14fsmzphnlq";
# };
backgroundImage = "/home/ragon/Pictures/background.jpg";
pow = n: i:
if i == 1 then n
else if i == 0 then 1
else n * pow n (i - 1);
tag = n: toString (pow 2 (n - 1));
in
{
home.packages = with pkgs; [
@ -19,6 +24,7 @@ in
playerctl
pwvucontrol
# networkmanagerapplet
mako
iwgtk
libnotify
];
@ -31,6 +37,14 @@ in
};
};
home.file.".config/mako/config".text = ''
font=Source Sans Pro Nerd Font
background-color=#1d2021ff
border-color=#3c3836FF
text-color=#ebdbb2ff
progress-color=over #928374FF
'';
gtk = {
enable = true;
gtk4.extraConfig.gtk-application-prefer-dark-theme = 1;
@ -61,7 +75,7 @@ window#waybar {
/* background-color: rgba(43, 48, 59, 0.5);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);*/
color: #a89984;
background-color: #282828;
background-color: #1d2021;
/* transition-property: background-color;
transition-duration: .5s;*/
}
@ -90,7 +104,7 @@ window#waybar.chromium {
#tags button {
padding: 0 2px;
background-color: #282828;
background-color: #1d2021;
color: #ebdbb2;
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
@ -144,7 +158,7 @@ window#waybar.chromium {
#custom-suspend,
#mpd {
padding: 0 2px;
background-color: #282828;
background-color: #1d2021;
color: #ebdbb2;
}
@ -181,7 +195,7 @@ window#waybar.chromium {
}
#battery.critical:not(.charging) {
background-color: #282828;
background-color: #1d2021;
color: #d3869b;
animation-name: blink;
animation-duration: 0.5s;
@ -214,10 +228,10 @@ label:focus {
color: #FFFFFF; /* enby white */
}
#network {
color: #9C59D1; /* enby purple */
color: #b8bb26; /* enby green */
}
#clock {
color: #000000;
color: #9C59D1; /* enby purple */
/*color: #2C2C2C; enby black */
}
@ -241,7 +255,7 @@ label:focus {
}
#idle_inhibitor {
background-color: #282828;
background-color: #1d2021;
color: #ebdbb2;
}
@ -431,12 +445,14 @@ label:focus {
${pkgs.wl-clipboard}/bin/wl-copy < $IMG_FILE
${pkgs.libnotify}/bin/notify-send -i $IMG_FILE -e -t 10000 "Screenshot Saved" $IMG_FILE
'';
in
{
"Super+Alt 4" = "spawn '${slurpscrn}'";
"Super+Alt 1" = "spawn '${scrn}'";
"Super+Shift Space" = "spawn 'rofi -show drun'";
"Super+Shift Return" = "spawn ptyxis";
"Super+Shift A" = "spawn alacritty";
"Super+Shift F" = "spawn nautilus";
"Super Q" = "close";
"Super J" = "focus-view next";
"Super K" = "focus-view previous";
@ -457,8 +473,8 @@ label:focus {
"Super Right" = ''send-layout-cmd rivertile "main-ratio +0.05"'';
"Super+Shift H" = ''send-layout-cmd rivertile "main-count -1"'';
"Super+Shift L" = ''send-layout-cmd rivertile "main-count +1"'';
"Super+Shift Left" = ''send-layout-cmd rivertile main-count -1"'';
"Super+Shift Right" = ''send-layout-cmd rivertile main-count +1"'';
"Super+Shift Left" = ''send-layout-cmd rivertile "main-count -1"'';
"Super+Shift Right" = ''send-layout-cmd rivertile "main-count +1"'';
# Super+Alt+{H,J,K,L} to move views
"Super+Alt H" = "move left 100";
"Super+Alt J" = "move down 100";
@ -480,10 +496,6 @@ label:focus {
} // (lib.zipAttrs (map
(x_int:
let
pow = n: i:
if i == 1 then n
else if i == 0 then 1
else n * pow n (i - 1);
tags = toString (pow 2 (x_int - 1));
x = toString x_int;
@ -549,9 +561,16 @@ label:focus {
rule-add = {
"-title 'Picture-in-Picture'" = "float";
"-app-id 'com.saivert.pwvucontrol'" = "float";
"-app-id 'org.gnome.NautilusPreviewer'" = "float";
"-app-id 'Signal'" = "tags ${tag 9}"; # signal
"-app-id 'Cinny'" = "tags ${tag 9}"; # cinny
"-app-id 'FFPWA-01JHNYASHBQB122KMCDPEZ65JA'" = "tags ${tag 9}"; # yt music
"-app-id 'org.gnome.evolution'" = "tags ${tag 8}"; # evolution
"-app-id 'obsidian'" = "tags ${tag 1}"; # obsidian
};
};
extraConfig = ''
export XDG_CURRENT_DESKTOP=river
rivertile -view-padding 0 -outer-padding 0 &
swayidle \
timeout 300 'swaylock -i ${backgroundImage}' \
@ -560,7 +579,13 @@ label:focus {
swaybg -i ${backgroundImage} &
shikane &
${pkgs.mako}/bin/mako &
iwgtk -i &
# iwgtk likes to crash when restarting iwd
(while true; do iwgtk -i; sleep 10; done) &
# now autostarting stuff thats always open anyways
obsidian &
signal-desktop &
cinny-desktop &
evolution &
'';
};
# services.wired = {

View file

@ -4,7 +4,7 @@
slurp
grim
# mako
firefox
# firefox
# light installed via programs.light
playerctl
jq

View file

@ -4,7 +4,7 @@
pkgs.unstable.dotnet-sdk_9
pkgs.unstable.jetbrains.rider
# pkgs.jetbrains.datagrip
(pkgs.firefox-devedition.overrideAttrs (super: self: { meta.priority = 1; }))
(pkgs.unstable.firefox-devedition.overrideAttrs (super: self: { meta.priority = 1; }))
];
}