2024-02-25 18:25:39 +01:00
|
|
|
{ config, pkgs, materusArg, ... }:
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
{
|
2023-10-31 14:40:57 +01:00
|
|
|
virtualisation.lxc.enable = true;
|
|
|
|
virtualisation.lxc.lxcfs.enable = true;
|
|
|
|
virtualisation.lxd.enable = true;
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
programs.gamemode.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services.teamviewer.enable = true;
|
|
|
|
|
|
|
|
systemd.tmpfiles.rules = [
|
2023-10-14 14:40:37 +02:00
|
|
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
2023-10-08 11:42:08 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
services.gvfs.enable = true;
|
|
|
|
|
|
|
|
|
2024-03-29 14:51:39 +01:00
|
|
|
services.xserver.xkb.layout = "pl";
|
2024-04-06 18:28:17 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
|
|
|
services.dbus.enable = true;
|
2024-03-03 13:19:40 +01:00
|
|
|
services.dbus.packages = [ pkgs.gcr ];
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
|
2024-04-19 18:27:05 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
services.xserver.displayManager.startx.enable = false;
|
2023-10-14 14:40:37 +02:00
|
|
|
|
|
|
|
xdg.portal.enable = true;
|
|
|
|
xdg.portal.wlr.enable = true;
|
|
|
|
xdg.portal.xdgOpenUsePortal = true;
|
|
|
|
|
2024-04-11 18:44:03 +02:00
|
|
|
services.xserver.exportConfiguration = true;
|
2023-10-14 14:40:37 +02:00
|
|
|
services.xserver.extraConfig = pkgs.lib.mkDefault ''
|
2023-10-08 11:42:08 +02:00
|
|
|
Section "OutputClass"
|
|
|
|
Identifier "amd-options"
|
|
|
|
Option "TearFree" "True"
|
|
|
|
Option "SWCursor" "True"
|
|
|
|
Option "VariableRefresh" "true"
|
|
|
|
Option "AsyncFlipSecondaries" "true"
|
2024-04-11 18:44:03 +02:00
|
|
|
Option "DRI3" "1"
|
2023-10-08 11:42:08 +02:00
|
|
|
MatchDriver "amdgpu"
|
|
|
|
EndSection
|
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
|
2024-03-05 13:25:01 +01:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
services.xserver.libinput.enable = true;
|
|
|
|
|
|
|
|
virtualisation.waydroid.enable = false;
|
|
|
|
virtualisation.podman = {
|
|
|
|
enable = true;
|
|
|
|
dockerCompat = true;
|
|
|
|
dockerSocket.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
users.users.materus = {
|
|
|
|
isNormalUser = true;
|
2024-04-02 19:45:43 +02:00
|
|
|
extraGroups = [
|
|
|
|
"audio"
|
|
|
|
"video"
|
|
|
|
"render"
|
|
|
|
"pipewire"
|
|
|
|
"wheel"
|
|
|
|
"networkmanager"
|
|
|
|
"input"
|
|
|
|
"kvm"
|
|
|
|
"libvirt-qemu"
|
|
|
|
"libvirt"
|
|
|
|
"libvirtd"
|
|
|
|
"podman"
|
|
|
|
"lxd"
|
2024-04-22 11:33:57 +02:00
|
|
|
];
|
2024-04-02 19:45:43 +02:00
|
|
|
shell = pkgs.zsh;
|
2023-10-08 11:42:08 +02:00
|
|
|
description = "Mateusz Słodkowicz";
|
|
|
|
};
|
2024-03-05 13:25:01 +01:00
|
|
|
|
2024-02-25 18:25:39 +01:00
|
|
|
environment.sessionVariables = {
|
2023-10-08 11:42:08 +02:00
|
|
|
XDG_CACHE_HOME = "\${HOME}/.cache";
|
|
|
|
XDG_CONFIG_HOME = "\${HOME}/.config";
|
|
|
|
XDG_BIN_HOME = "\${HOME}/.local/bin";
|
|
|
|
XDG_DATA_HOME = "\${HOME}/.local/share";
|
2023-11-13 00:44:03 +01:00
|
|
|
QT_XKB_CONFIG_ROOT = "\${XKB_CONFIG_ROOT}";
|
2024-03-11 16:19:31 +01:00
|
|
|
GTK_IM_MODULE = "fcitx";
|
|
|
|
QT_IM_MODULE = "fcitx";
|
|
|
|
XMODIFIERS = "@im=fcitx";
|
|
|
|
SDL_IM_MODULE = "fcitx";
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
MOZ_USE_XINPUT2 = "1";
|
|
|
|
PATH = [
|
|
|
|
"\${XDG_BIN_HOME}"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
environment.shellInit = ''
|
|
|
|
if ! [ -z "$DISPLAY" ]; then xhost +si:localuser:root &> /dev/null; fi;
|
|
|
|
if ! [ -z "$DISPLAY" ]; then xhost +si:localuser:$USER &> /dev/null; fi;
|
|
|
|
'';
|
|
|
|
|
|
|
|
i18n.inputMethod.enabled = "fcitx5";
|
2024-03-11 16:46:48 +01:00
|
|
|
i18n.inputMethod.fcitx5.addons = [ pkgs.kdePackages.fcitx5-configtool pkgs.fcitx5-lua pkgs.fcitx5-mozc pkgs.fcitx5-gtk pkgs.kdePackages.fcitx5-qt ];
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
|
2024-04-19 18:27:05 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
services.pcscd.enable = true;
|
2024-04-22 11:33:57 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
services.samba-wsdd.enable = true;
|
2024-04-22 11:33:57 +02:00
|
|
|
services.samba-wsdd.openFirewall = true;
|
2023-10-08 11:42:08 +02:00
|
|
|
services.samba = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.sambaFull;
|
2024-04-22 11:33:57 +02:00
|
|
|
securityType = "user";
|
|
|
|
openFirewall = true;
|
|
|
|
extraConfig = ''
|
|
|
|
workgroup = WORKGROUP
|
|
|
|
server string = smbmaterus
|
|
|
|
netbios name = smbmaterus
|
|
|
|
security = user
|
|
|
|
hosts allow = 192.168.122. 127.0.0.1 localhost
|
|
|
|
hosts deny = 0.0.0.0/0
|
|
|
|
guest account = nobody
|
|
|
|
map to guest = bad user
|
|
|
|
'';
|
|
|
|
shares = {
|
|
|
|
windows = {
|
|
|
|
path = "/materus/data/VM/windows_shared";
|
|
|
|
browseable = "yes";
|
|
|
|
"read only" = "no";
|
|
|
|
"guest ok" = "no";
|
|
|
|
"create mask" = "0644";
|
|
|
|
"directory mask" = "0755";
|
|
|
|
"force user" = "materus";
|
|
|
|
"force group" = "users";
|
|
|
|
};
|
|
|
|
};
|
2023-10-08 11:42:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = false;
|
|
|
|
enableBrowserSocket = true;
|
2023-10-14 14:40:37 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
};
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
environment.enableAllTerminfo = true;
|
|
|
|
environment.pathsToLink = [ "/share/zsh" "/share/bash-completion" "/share/fish" ];
|
|
|
|
environment.shells = with pkgs; [ zsh bashInteractive fish ];
|
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
java.enable = true;
|
|
|
|
java.package = pkgs.graalvm-ce;
|
|
|
|
java.binfmt = true;
|
|
|
|
command-not-found.enable = false;
|
|
|
|
dconf.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-04-03 11:08:02 +02:00
|
|
|
materus.profile.browser.enable = true;
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
|
2024-03-27 11:23:52 +01:00
|
|
|
services.davfs2.enable = true;
|
2023-10-08 11:42:08 +02:00
|
|
|
|
|
|
|
|
2024-04-22 11:33:57 +02:00
|
|
|
|
2023-10-08 11:42:08 +02:00
|
|
|
}
|