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 = [
"freeimage-unstable-2021-11-01"
"openssl-1.1.1w"
];
networking.hostName = "krizej-pc";
@ -33,37 +34,53 @@
time.timeZone = "Europe/Warsaw";
services.libinput = {
# services.libinput = {
# enable = true;
# touchpad = {
# naturalScrolling = false; # it's reversed on my laptop for some reason
# tapping = true;
# tappingButtonMap = "lmr";
# scrollMethod = "edge";
# };
# };
programs.sway.enable = true;
services = {
xserver = {
enable = true;
touchpad = {
naturalScrolling = false; # it's reversed on my laptop for some reason
tapping = true;
tappingButtonMap = "lmr";
scrollMethod = "edge";
};
};
# programs.sway.enable = true;
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
windowManager.i3.enable = true;
xkb.layout = "pl";
# this shit doesn't actually work
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;
# this does
displayManager.sessionCommands = "xset r rate 180 50\n";
};
displayManager = {
defaultSession = "none+i3";
sddm = {
enable = true;
theme = "sddm-i3-theme";
};
};
};
fonts = {
enableDefaultPackages = true;
packages = with pkgs; [
jetbrains-mono
dejavu_fonts
corefonts
vistafonts
];
fontconfig.defaultFonts = {
serif = [ "JetBrains Mono NL" ];
@ -116,6 +133,7 @@
gcc
unzip
python311
python39
ripgrep
gnomeExtensions.user-themes
xdg-user-dirs
@ -126,10 +144,24 @@
xclip
tcl
pkg-config
fish
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 = {
enable = true;

View file

@ -50,6 +50,9 @@ in rec {
yad
pcmanfm
gvfs
sqlitebrowser
xdg-desktop-portal
xdg-desktop-portal-gnome
# # It is sometimes useful to fine-tune packages, for example, by applying
# # 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
@ -94,7 +97,6 @@ in rec {
".config/i3/i3gtk.css".source = files/i3gtk.css;
# FIXME not .vim bro!!!!!!!!!
".vim/colors/darcula.vim".source = files/darcula.vim;
# # You can also set the file content immediately.
# ".gradle/gradle.properties".text = ''
# org.gradle.console=verbose

View file

@ -9,6 +9,7 @@ pkgs: [
darkcold-gtk-theme = pkgs.callPackage ./darkcold-gtk-theme.nix {};
arc-mono-gtk-theme = pkgs.callPackage ./arc-mono-gtk-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 = [
{ command = "picom &"; notification = false; }
# { command = "picom &"; notification = false; }
{ command = "mpd &"; notification = false; }
{ command = "dunst &"; notification = false; }
{ command = "flameshot &"; notification = false; }
@ -70,7 +70,7 @@
{ command = "discord &"; 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
@ -123,7 +123,7 @@
"${mod}+Shift+r" = "restart";
"${mod}+Shift+e" = "${execns} i3-nagbar -t warning -m 'exit?' -b 'yes' 'i3-msg exit'";
# 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}+Right" = cmd_and_center "focus right";

View file

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