2024-06-17 16:36:50 +02:00
|
|
|
{ pkgs, ...}:
|
|
|
|
{
|
2024-06-13 15:38:40 +02:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-06-15 21:59:32 +02:00
|
|
|
boot = {
|
2024-06-17 16:36:50 +02:00
|
|
|
loader = {
|
|
|
|
timeout = 2;
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S4CNNE0M700172J";
|
|
|
|
gfxmodeBios = "auto"; # 1920x1080 did not work
|
|
|
|
splashImage = null;
|
|
|
|
font = null;
|
|
|
|
};
|
2024-06-15 21:59:32 +02:00
|
|
|
};
|
2024-06-17 16:36:50 +02:00
|
|
|
# doesn't even work, todo when fixed: remove xrandr from i3 autostart
|
|
|
|
kernelParams = [
|
|
|
|
"video=DP-3:1920x1080@240"
|
|
|
|
"video=HDMI-3:1920x1080@75"
|
|
|
|
];
|
2024-06-15 21:59:32 +02:00
|
|
|
};
|
2024-06-13 15:38:40 +02:00
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
2024-06-17 16:36:50 +02:00
|
|
|
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
"freeimage-unstable-2021-11-01"
|
2024-06-21 17:54:41 +02:00
|
|
|
"openssl-1.1.1w"
|
2024-06-17 16:36:50 +02:00
|
|
|
];
|
2024-06-13 15:38:40 +02:00
|
|
|
|
2024-06-15 21:59:32 +02:00
|
|
|
networking.hostName = "krizej-pc";
|
2024-06-13 15:38:40 +02:00
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
|
2024-06-21 17:54:41 +02:00
|
|
|
# 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;
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
2024-06-15 21:59:32 +02:00
|
|
|
|
2024-06-21 17:54:41 +02:00
|
|
|
autoRepeatDelay = 180;
|
|
|
|
autoRepeatInterval = 50;
|
|
|
|
};
|
2024-06-17 16:36:50 +02:00
|
|
|
|
2024-06-21 17:54:41 +02:00
|
|
|
displayManager = {
|
|
|
|
defaultSession = "none+i3";
|
|
|
|
sddm = {
|
|
|
|
enable = true;
|
|
|
|
theme = "sddm-i3-theme";
|
|
|
|
};
|
|
|
|
};
|
2024-06-13 15:38:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableDefaultPackages = true;
|
|
|
|
packages = with pkgs; [
|
|
|
|
jetbrains-mono
|
2024-06-21 17:54:41 +02:00
|
|
|
dejavu_fonts
|
|
|
|
corefonts
|
|
|
|
vistafonts
|
2024-06-13 15:38:40 +02:00
|
|
|
];
|
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
serif = [ "JetBrains Mono NL" ];
|
|
|
|
sansSerif = [ "JetBrains Mono NL" ];
|
|
|
|
monospace = [ "JetBrains Mono NL" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
|
|
|
# fucking stupid android shit man
|
2024-06-15 21:59:32 +02:00
|
|
|
# users.groups.plugdev.members = [ "krizej" ];
|
|
|
|
# services.udev.extraRules = ''
|
|
|
|
# SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e76", MODE="0666", GROUP="plugdev"
|
|
|
|
# '';
|
2024-06-13 15:38:40 +02:00
|
|
|
|
|
|
|
users.users.krizej = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
shell = pkgs.fish;
|
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gnome";
|
|
|
|
style = "adwaita-dark";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.nano.enable = false;
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
|
|
|
# any-nix-shell
|
|
|
|
programs.fish.enable = true;
|
|
|
|
programs.fish.promptInit = ''
|
|
|
|
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
|
|
|
|
'';
|
2024-06-15 21:59:32 +02:00
|
|
|
|
|
|
|
programs.steam = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-06-13 15:38:40 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
ed # is the standard text editor.
|
|
|
|
vim
|
2024-06-15 21:59:32 +02:00
|
|
|
file
|
2024-06-13 15:38:40 +02:00
|
|
|
wget
|
|
|
|
btop
|
|
|
|
git
|
|
|
|
gcc
|
|
|
|
unzip
|
2024-06-15 21:59:32 +02:00
|
|
|
python311
|
2024-06-21 17:54:41 +02:00
|
|
|
python39
|
2024-06-13 15:38:40 +02:00
|
|
|
ripgrep
|
|
|
|
gnomeExtensions.user-themes
|
|
|
|
xdg-user-dirs
|
|
|
|
man-pages
|
|
|
|
man-pages-posix
|
2024-06-15 21:59:32 +02:00
|
|
|
ntfs3g
|
|
|
|
gnumake
|
|
|
|
xclip
|
|
|
|
tcl
|
|
|
|
pkg-config
|
2024-06-21 17:54:41 +02:00
|
|
|
fish
|
2024-06-15 21:59:32 +02:00
|
|
|
tree
|
2024-06-21 17:54:41 +02:00
|
|
|
openssl_1_1
|
|
|
|
sddm-i3-theme
|
2024-06-13 15:38:40 +02:00
|
|
|
];
|
|
|
|
|
2024-06-21 17:54:41 +02:00
|
|
|
documentation = {
|
|
|
|
enable = true;
|
|
|
|
dev.enable = true;
|
|
|
|
doc.enable = false;
|
|
|
|
info.enable = false;
|
|
|
|
man = {
|
|
|
|
enable = true;
|
|
|
|
generateCaches = false;
|
|
|
|
man-db.enable = false;
|
|
|
|
mandoc.enable = true;
|
|
|
|
};
|
|
|
|
};
|
2024-06-13 15:38:40 +02:00
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
security.sudo.extraConfig = ''
|
|
|
|
Defaults pwfeedback
|
|
|
|
'';
|
|
|
|
|
2024-06-17 16:36:50 +02:00
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
mesa
|
|
|
|
amdvlk
|
|
|
|
libdrm
|
|
|
|
libva
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
rocmPackages.clr.icd
|
|
|
|
];
|
|
|
|
extraPackages32 = with pkgs; [
|
|
|
|
driversi686Linux.mesa
|
|
|
|
driversi686Linux.amdvlk
|
|
|
|
driversi686Linux.vaapiVdpau
|
|
|
|
driversi686Linux.libvdpau-va-gl
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
AMD_VULKAN_ICD = "RADV";
|
|
|
|
};
|
|
|
|
|
2024-06-13 15:38:40 +02:00
|
|
|
nixpkgs.overlays = import ./pkgs pkgs;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|
|
|
|
|