Compare commits

...

2 commits

Author SHA1 Message Date
krizej
6449f27c58 remove crap 2024-06-21 17:55:02 +02:00
krizej
a28604827a crap 2024-06-21 17:54:41 +02:00
6 changed files with 90 additions and 28 deletions

View file

@ -26,6 +26,7 @@
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"freeimage-unstable-2021-11-01" "freeimage-unstable-2021-11-01"
"openssl-1.1.1w"
]; ];
networking.hostName = "krizej-pc"; networking.hostName = "krizej-pc";
@ -33,37 +34,53 @@
time.timeZone = "Europe/Warsaw"; time.timeZone = "Europe/Warsaw";
services.libinput = { # services.libinput = {
enable = true; # enable = true;
touchpad = { # touchpad = {
naturalScrolling = false; # it's reversed on my laptop for some reason # naturalScrolling = false; # it's reversed on my laptop for some reason
tapping = true; # tapping = true;
tappingButtonMap = "lmr"; # tappingButtonMap = "lmr";
scrollMethod = "edge"; # scrollMethod = "edge";
# };
# };
programs.sway.enable = true;
services = {
xserver = {
enable = true;
xkb.layout = "pl";
windowManager.i3.enable = true;
displayManager = {
sessionCommands = ''
xrandr --output DP-3 --mode 1920x1080 --rate 239.76 --primary
xrandr --output HDMI-3 --mode 1920x1080 --rate 74.97 --right-of DP-3
xset r rate 180 50
'';
};
autoRepeatDelay = 180;
autoRepeatInterval = 50;
}; };
};
# programs.sway.enable = true; displayManager = {
defaultSession = "none+i3";
services.xserver = { sddm = {
enable = true; enable = true;
displayManager.gdm.enable = true; theme = "sddm-i3-theme";
windowManager.i3.enable = true; };
};
xkb.layout = "pl";
# this shit doesn't actually work
autoRepeatDelay = 180;
autoRepeatInterval = 50;
# this does
displayManager.sessionCommands = "xset r rate 180 50\n";
}; };
fonts = { fonts = {
enableDefaultPackages = true; enableDefaultPackages = true;
packages = with pkgs; [ packages = with pkgs; [
jetbrains-mono jetbrains-mono
dejavu_fonts
corefonts
vistafonts
]; ];
fontconfig.defaultFonts = { fontconfig.defaultFonts = {
serif = [ "JetBrains Mono NL" ]; serif = [ "JetBrains Mono NL" ];
@ -116,6 +133,7 @@
gcc gcc
unzip unzip
python311 python311
python39
ripgrep ripgrep
gnomeExtensions.user-themes gnomeExtensions.user-themes
xdg-user-dirs xdg-user-dirs
@ -126,10 +144,24 @@
xclip xclip
tcl tcl
pkg-config pkg-config
fish
tree tree
openssl_1_1
sddm-i3-theme
]; ];
documentation.dev.enable = true; documentation = {
enable = true;
dev.enable = true;
doc.enable = false;
info.enable = false;
man = {
enable = true;
generateCaches = false;
man-db.enable = false;
mandoc.enable = true;
};
};
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;

View file

@ -50,6 +50,9 @@ in rec {
yad yad
pcmanfm pcmanfm
gvfs gvfs
sqlitebrowser
xdg-desktop-portal
xdg-desktop-portal-gnome
# # It is sometimes useful to fine-tune packages, for example, by applying # # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the # # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
@ -94,7 +97,6 @@ in rec {
".config/i3/i3gtk.css".source = files/i3gtk.css; ".config/i3/i3gtk.css".source = files/i3gtk.css;
# FIXME not .vim bro!!!!!!!!! # FIXME not .vim bro!!!!!!!!!
".vim/colors/darcula.vim".source = files/darcula.vim; ".vim/colors/darcula.vim".source = files/darcula.vim;
# # You can also set the file content immediately. # # You can also set the file content immediately.
# ".gradle/gradle.properties".text = '' # ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose # org.gradle.console=verbose

View file

@ -9,6 +9,7 @@ pkgs: [
darkcold-gtk-theme = pkgs.callPackage ./darkcold-gtk-theme.nix {}; darkcold-gtk-theme = pkgs.callPackage ./darkcold-gtk-theme.nix {};
arc-mono-gtk-theme = pkgs.callPackage ./arc-mono-gtk-theme.nix {}; arc-mono-gtk-theme = pkgs.callPackage ./arc-mono-gtk-theme.nix {};
vim-darcula-theme = pkgs.callPackage ./vim-darcula-theme.nix {}; vim-darcula-theme = pkgs.callPackage ./vim-darcula-theme.nix {};
sddm-i3-theme = pkgs.callPackage ./sddm-i3-theme.nix {};
}) })
] ]

20
pkgs/sddm-i3-theme.nix Normal file
View file

@ -0,0 +1,20 @@
{ lib, stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "sddm-i3-theme";
version = "1";
src = fetchzip {
url = "http://192.168.1.12/${pname}.tar.gz";
hash = "sha256-WGvjW3Z8TfJhAsbxUyYRKSYFucEwYzTIbpDZsLTPbyo=";
};
installPhase = ''
mkdir -p $out/share/sddm/themes/${pname}/
cp -r $src/* $out/share/sddm/themes/${pname}/
'';
meta = {
license = lib.licenses.mit;
platforms = lib.platforms.linux;
};
}

View file

@ -54,7 +54,7 @@
}; };
startup = [ startup = [
{ command = "picom &"; notification = false; } # { command = "picom &"; notification = false; }
{ command = "mpd &"; notification = false; } { command = "mpd &"; notification = false; }
{ command = "dunst &"; notification = false; } { command = "dunst &"; notification = false; }
{ command = "flameshot &"; notification = false; } { command = "flameshot &"; notification = false; }
@ -70,7 +70,7 @@
{ command = "discord &"; notification = false; } { command = "discord &"; notification = false; }
{ command = "element-desktop &"; notification = false; } { command = "element-desktop &"; notification = false; }
{ command = "xrandr --output DP-3 --mode 1920x1080 --rate 239.76 --primary --output HDMI-3 --mode 1920x1080 --rate 74.97 --right-of DP-3 &"; notification = false; } # { command = "xrandr --output DP-3 --mode 1920x1080 --rate 239.76 --primary --output HDMI-3 --mode 1920x1080 --rate 74.97 --right-of DP-3 &"; notification = false; }
]; ];
modes = let modes = let
@ -123,7 +123,7 @@
"${mod}+Shift+r" = "restart"; "${mod}+Shift+r" = "restart";
"${mod}+Shift+e" = "${execns} i3-nagbar -t warning -m 'exit?' -b 'yes' 'i3-msg exit'"; "${mod}+Shift+e" = "${execns} i3-nagbar -t warning -m 'exit?' -b 'yes' 'i3-msg exit'";
# Mouse bindings # Mouse bindings
"--border --whole-window button8" = "${execns} i3custom-window-actions"; # "--border --whole-window button8" = "${execns} i3custom-window-actions";
"${mod}+Left" = cmd_and_center "focus left"; "${mod}+Left" = cmd_and_center "focus left";
"${mod}+Right" = cmd_and_center "focus right"; "${mod}+Right" = cmd_and_center "focus right";

View file

@ -14,5 +14,12 @@
user = "forgejo"; user = "forgejo";
identityFile = "~/.ssh/jacekgit"; identityFile = "~/.ssh/jacekgit";
}; };
"zasadzka.pl" = {
user = "discord";
identityFile = "~/.ssh/zasadzka";
setEnv = {
"TERM" = "xterm-256color";
};
};
}; };
} }