2023-07-06 20:03:25 +02:00
|
|
|
{
|
2023-07-13 12:49:20 +02:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
2023-07-30 23:52:15 +02:00
|
|
|
}: {
|
2023-07-13 12:49:20 +02:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2023-07-23 20:51:31 +02:00
|
|
|
nixpkgs.overlays = [ inputs.nur.overlay ];
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2023-07-20 00:06:31 +02:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2023-07-20 23:48:46 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
2023-07-20 21:03:58 +02:00
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
boot.kernelParams = [
|
|
|
|
"video=eDP-1:2560x1440@165"
|
|
|
|
"video=HDMI-A-1:2560x1440@144"
|
|
|
|
];
|
2023-07-13 12:49:20 +02:00
|
|
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
|
|
|
|
nix.settings = {
|
|
|
|
experimental-features = [
|
|
|
|
"flakes"
|
|
|
|
"nix-command"
|
|
|
|
];
|
|
|
|
substituters = [
|
|
|
|
"https://hyprland.cachix.org"
|
2023-07-20 23:48:46 +02:00
|
|
|
"https://neovim-nightly.cachix.org"
|
|
|
|
"https://nix-gaming.cachix.org"
|
2023-08-03 18:34:37 +02:00
|
|
|
"https://anyrun.cachix.org"
|
2023-07-13 12:49:20 +02:00
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
|
|
"neovim-nightly.cachix.org-1:feIoInHRevVEplgdZvQDjhp11kYASYCE2NGY9hNrwxY="
|
2023-07-20 23:48:46 +02:00
|
|
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
2023-08-03 18:34:37 +02:00
|
|
|
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
|
2023-07-13 12:49:20 +02:00
|
|
|
];
|
2023-07-20 21:03:58 +02:00
|
|
|
keep-outputs = true;
|
|
|
|
keep-derivations = true;
|
2023-07-13 12:49:20 +02:00
|
|
|
};
|
2023-07-06 20:03:25 +02:00
|
|
|
|
2023-07-13 12:49:20 +02:00
|
|
|
programs.zsh.enable = true;
|
2023-07-06 20:03:25 +02:00
|
|
|
|
2023-07-13 12:49:20 +02:00
|
|
|
programs.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
xwayland = {
|
|
|
|
enable = true;
|
|
|
|
hidpi = true;
|
|
|
|
};
|
|
|
|
nvidiaPatches = false;
|
|
|
|
};
|
2023-07-06 20:03:25 +02:00
|
|
|
|
2023-07-30 01:18:57 +02:00
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
|
2023-07-22 00:17:32 +02:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/158025
|
|
|
|
security.pam.services.swaylock = {};
|
|
|
|
|
2023-07-30 01:19:23 +02:00
|
|
|
fonts.packages = with pkgs; [
|
2023-07-13 12:49:20 +02:00
|
|
|
material-design-icons
|
|
|
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
2023-07-06 20:03:25 +02:00
|
|
|
];
|
|
|
|
|
2023-07-13 12:49:20 +02:00
|
|
|
users.users.jacek = {
|
|
|
|
isNormalUser = true;
|
2023-07-30 01:18:57 +02:00
|
|
|
extraGroups = [ "wheel" "networkmanager" "libvirtd" ];
|
2023-07-13 12:49:20 +02:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
2023-07-06 20:03:25 +02:00
|
|
|
|
2023-07-13 12:49:20 +02:00
|
|
|
environment = {
|
|
|
|
shells = with pkgs; [zsh];
|
|
|
|
pathsToLink = [ "/share/zsh" ];
|
|
|
|
enableAllTerminfo = true;
|
|
|
|
sessionVariables = {
|
|
|
|
TERM = "foot";
|
|
|
|
EDITOR = "nvim";
|
|
|
|
|
|
|
|
GTK_IM_MODULE = "fcitx";
|
|
|
|
QT_IM_MODULE = "fcitx";
|
|
|
|
XMODIFIERS = "@im=fcitx";
|
|
|
|
|
|
|
|
LIBSEAT_BACKEND = "logind";
|
|
|
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
|
|
|
|
|
|
|
XDG_CURRENT_DESKTOP = "Hyprland";
|
|
|
|
XDG_SESSION_TYPE = "wayland";
|
|
|
|
XDG_SESSION_DESKTOP = "Hyprland";
|
|
|
|
|
|
|
|
QT_QPA_PLATFORM = "wayland";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
|
|
MOZ_DRM_DEVICE = "/dev/dri/card0";
|
|
|
|
|
|
|
|
SDL_VIDEODRIVER = "wayland";
|
|
|
|
|
|
|
|
_JAVA_AWT_WM_NONEREPARENTING = "1";
|
|
|
|
|
|
|
|
CLUTTER_BACKEND = "wayland";
|
|
|
|
|
|
|
|
GDK_BACKEND = "wayland";
|
|
|
|
|
|
|
|
XCURSOR_THEME = "Bibata-Modern-Classic";
|
|
|
|
XCURSOR_SIZE = "24";
|
|
|
|
|
|
|
|
SYSTEMD_TIMEDATED_NTP_SERVICES = "chronyd.service:systemd-timesyncd.service";
|
2023-07-22 00:17:57 +02:00
|
|
|
|
|
|
|
XDG_DATA_HOME = "\$HOME/.local/share";
|
|
|
|
XDG_CONFIG_HOME = "\$HOME/.config";
|
|
|
|
XDG_STATE_HOME = "\$HOME/.local/state";
|
|
|
|
XDG_CACHE_HOME = "\$HOME/.cache";
|
|
|
|
|
|
|
|
HISTFILE = "\${XDG_STATE_HOME}/bash/history";
|
|
|
|
CARGO_HOME = "\${XDG_DATA_HOME}/cargo";
|
|
|
|
GTK2_RC_FILES = "\${XDG_CONFIG_HOME}/gtk-2.0/gtkrc";
|
2023-07-13 12:49:20 +02:00
|
|
|
};
|
2023-07-06 21:07:54 +02:00
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
|
|
|
services = {
|
2023-07-20 00:06:31 +02:00
|
|
|
blueman.enable = true;
|
2023-07-20 17:11:15 +02:00
|
|
|
mullvad-vpn.enable = true;
|
2023-07-23 20:12:12 +02:00
|
|
|
|
|
|
|
pcscd.enable = true;
|
|
|
|
|
|
|
|
udev.packages = [ pkgs.yubikey-personalization ];
|
|
|
|
|
|
|
|
udisks2.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "qt";
|
|
|
|
enableSSHSupport = true;
|
2023-07-20 00:06:31 +02:00
|
|
|
};
|
|
|
|
|
2023-07-20 23:48:46 +02:00
|
|
|
|
2023-07-20 00:06:31 +02:00
|
|
|
hardware = {
|
2023-07-20 15:51:48 +02:00
|
|
|
opentabletdriver = {
|
|
|
|
enable = true;
|
|
|
|
daemon.enable = true;
|
|
|
|
};
|
2023-07-20 00:06:31 +02:00
|
|
|
bluetooth.enable = true;
|
2023-07-20 21:03:58 +02:00
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
2023-07-07 20:13:49 +02:00
|
|
|
};
|
2023-07-13 12:49:20 +02:00
|
|
|
|
2023-07-23 20:12:29 +02:00
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
storageDriver = "btrfs";
|
|
|
|
rootless = {
|
|
|
|
enable = true;
|
|
|
|
setSocketVariable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-07-22 00:16:19 +02:00
|
|
|
swapDevices = [ {
|
|
|
|
device = "/var/lib/swapfile";
|
|
|
|
size = 16*1024;
|
|
|
|
} ];
|
|
|
|
|
2023-07-13 15:11:17 +02:00
|
|
|
system.stateVersion = "23.11";
|
2023-07-06 20:03:25 +02:00
|
|
|
}
|