nixos-config/configurations/host/materusPC/tmp.nix

155 lines
3.5 KiB
Nix
Raw Normal View History

2024-02-25 18:25:39 +01:00
{ config, pkgs, materusArg, ... }:
2023-10-08 11:42:08 +02:00
{
2023-10-08 11:42:08 +02:00
programs.gamemode.enable = true;
programs.corectrl.enable = true;
2023-10-08 11:42:08 +02:00
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
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-06-17 13:09:58 +02:00
services.libinput.enable = true;
2023-10-08 11:42:08 +02:00
2023-10-08 11:42:08 +02: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";
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;
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;
services.openssh.settings.PermitRootLogin = "no";
services.openssh.settings.PasswordAuthentication = false;
services.openssh.openFirewall = true;
services.sunshine = {
enable = true;
capSysAdmin = true;
openFirewall = true;
autoStart = false;
};
hardware.sane.enable = true;
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
2023-10-08 11:42:08 +02:00
environment.enableAllTerminfo = true;
environment.pathsToLink = [ "/share/zsh" "/share/bash-completion" "/share/fish" ];
environment.shells = with pkgs; [ zsh bashInteractive fish ];
programs = {
fish.enable = true;
command-not-found.enable = false;
dconf.enable = true;
};
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
}