2024-02-11 13:16:43 +01:00
|
|
|
{ pkgs, lib, ... }:
|
2023-07-02 00:18:17 +02:00
|
|
|
|
|
|
|
|
{
|
2024-08-11 01:11:29 +02:00
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
|
|
|
|
|
|
|
|
fonts.packages = with pkgs; [
|
|
|
|
|
jetbrains-mono
|
|
|
|
|
];
|
|
|
|
|
|
2023-07-05 07:35:46 +02:00
|
|
|
services = {
|
2023-07-05 22:54:09 +02:00
|
|
|
xserver = {
|
|
|
|
|
enable = true;
|
2024-08-06 14:04:28 +02:00
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
|
desktopManager.gnome = {
|
2024-06-19 17:28:19 +02:00
|
|
|
enable = true;
|
2024-09-11 19:35:49 +02:00
|
|
|
extraGSettingsOverridePackages = [ pkgs.mutter ];
|
2024-08-06 14:04:28 +02:00
|
|
|
# fractional scaling support
|
2024-08-11 01:11:29 +02:00
|
|
|
extraGSettingsOverrides = ''
|
|
|
|
|
[org.gnome.mutter]
|
|
|
|
|
experimental-features=['scale-monitor-framebuffer', 'variable-refresh-rate']
|
|
|
|
|
'';
|
2024-06-19 17:28:19 +02:00
|
|
|
};
|
2024-08-06 14:04:28 +02:00
|
|
|
excludePackages = [ pkgs.xterm ];
|
2023-07-05 22:54:09 +02:00
|
|
|
};
|
2023-07-05 07:35:46 +02:00
|
|
|
pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
jack.enable = true;
|
|
|
|
|
};
|
2023-07-17 10:16:28 +02:00
|
|
|
printing.enable = true;
|
|
|
|
|
resolved.enable = true;
|
2024-01-13 16:58:15 +01:00
|
|
|
mullvad-vpn = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.mullvad-vpn;
|
|
|
|
|
};
|
2024-02-11 13:16:43 +01:00
|
|
|
postgresql = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.postgresql_15;
|
|
|
|
|
authentication = lib.mkForce ''
|
|
|
|
|
local all all trust
|
2024-02-13 15:45:47 +01:00
|
|
|
host all all 0.0.0.0/0 scram-sha-256
|
2024-02-16 07:44:50 +01:00
|
|
|
host all all ::1/128 scram-sha-256
|
2024-02-11 13:16:43 +01:00
|
|
|
'';
|
|
|
|
|
};
|
2024-04-27 13:50:30 +02:00
|
|
|
};
|
|
|
|
|
|
2024-08-07 11:31:13 +02:00
|
|
|
environment.gnome.excludePackages = with pkgs; [
|
|
|
|
|
gnome-tour
|
|
|
|
|
gnome-connections
|
|
|
|
|
geary
|
|
|
|
|
evince
|
|
|
|
|
gnome-calendar
|
2024-09-11 19:35:49 +02:00
|
|
|
gnome-contacts
|
|
|
|
|
gnome-weather
|
|
|
|
|
gnome-maps
|
|
|
|
|
gnome-clocks
|
|
|
|
|
gnome-music
|
2024-08-07 11:31:13 +02:00
|
|
|
snapshot
|
|
|
|
|
simple-scan
|
|
|
|
|
];
|
|
|
|
|
|
2024-08-06 11:17:18 +02:00
|
|
|
users = {
|
|
|
|
|
mutableUsers = false;
|
|
|
|
|
users = {
|
|
|
|
|
root.hashedPassword = "$y$j9T$BfX6ErL64B97Ug1ZrH1GN.$cK/3FlWSDJ99wpbbwu3hBAPX0jGew/zfJhQKf7/OQ12";
|
|
|
|
|
thiloho = {
|
|
|
|
|
isNormalUser = true;
|
2024-08-07 11:31:13 +02:00
|
|
|
extraGroups = [
|
|
|
|
|
"wheel"
|
|
|
|
|
"networkmanager"
|
|
|
|
|
"docker"
|
|
|
|
|
];
|
2024-08-06 11:17:18 +02:00
|
|
|
hashedPassword = "$y$j9T$PmPi.Ji1jDw5rBaKCRepp/$LJLuvnFXiG/8jomOPVwv31R/tKgUmp.W2mKdo08FUK3";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-07 11:08:33 +01:00
|
|
|
networking.firewall = {
|
|
|
|
|
allowedTCPPorts = [ 53317 ];
|
|
|
|
|
allowedUDPPorts = [ 53317 ];
|
|
|
|
|
};
|
|
|
|
|
|
2023-07-16 15:33:51 +02:00
|
|
|
programs = {
|
2023-08-05 11:55:19 +02:00
|
|
|
steam.enable = true;
|
2023-08-04 22:48:00 +02:00
|
|
|
gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
};
|
2023-11-29 03:12:43 +01:00
|
|
|
java.enable = true;
|
2024-04-30 16:26:20 +02:00
|
|
|
nix-ld = {
|
|
|
|
|
enable = true;
|
|
|
|
|
libraries = with pkgs; [
|
|
|
|
|
nodejs
|
|
|
|
|
nodePackages.pnpm
|
|
|
|
|
];
|
|
|
|
|
};
|
2023-07-16 15:33:51 +02:00
|
|
|
};
|
2024-01-04 14:07:22 +01:00
|
|
|
|
2023-08-05 11:55:19 +02:00
|
|
|
hardware.pulseaudio.enable = false;
|
2024-08-06 14:04:28 +02:00
|
|
|
|
2024-01-13 16:58:15 +01:00
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
2024-08-07 11:31:13 +02:00
|
|
|
home-manager.users.thiloho =
|
|
|
|
|
{
|
|
|
|
|
pkgs,
|
|
|
|
|
lib,
|
|
|
|
|
config,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
{
|
|
|
|
|
programs = {
|
|
|
|
|
yt-dlp = {
|
|
|
|
|
enable = true;
|
2024-04-25 08:25:23 +02:00
|
|
|
};
|
2024-08-07 11:31:13 +02:00
|
|
|
firefox = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.firefox-devedition.override {
|
|
|
|
|
cfg = {
|
|
|
|
|
speechSynthesisSupport = true;
|
|
|
|
|
};
|
2024-07-30 06:13:06 +02:00
|
|
|
};
|
2023-07-17 21:13:13 +02:00
|
|
|
};
|
2024-08-07 11:31:13 +02:00
|
|
|
chromium = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.ungoogled-chromium;
|
|
|
|
|
};
|
|
|
|
|
vscode = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.vscodium;
|
|
|
|
|
mutableExtensionsDir = false;
|
|
|
|
|
extensions =
|
|
|
|
|
with pkgs.vscode-extensions;
|
|
|
|
|
[
|
|
|
|
|
# svelte.svelte-vscode
|
|
|
|
|
jnoortheen.nix-ide
|
|
|
|
|
ritwickdey.liveserver
|
|
|
|
|
esbenp.prettier-vscode
|
|
|
|
|
]
|
|
|
|
|
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
|
|
|
|
{
|
|
|
|
|
name = "svelte-vscode";
|
|
|
|
|
publisher = "svelte";
|
|
|
|
|
version = "108.5.4";
|
|
|
|
|
sha256 = "0sjq5ifnz08pkxslzz2qnrc76gvl6lkygcr3042safbvfral4xm1";
|
|
|
|
|
}
|
2024-08-31 19:28:22 +02:00
|
|
|
{
|
|
|
|
|
name = "playwright";
|
|
|
|
|
publisher = "ms-playwright";
|
|
|
|
|
version = "1.1.10";
|
|
|
|
|
sha256 = "0y0jlrxpjzd7drdmcr9kfy5g12zax9q4d8cblzzb6ia4c98ipfq0";
|
|
|
|
|
}
|
2024-08-07 11:31:13 +02:00
|
|
|
];
|
|
|
|
|
userSettings = {
|
2024-08-11 01:11:29 +02:00
|
|
|
"editor.wordWrap" = "on";
|
|
|
|
|
"editor.fontFamily" = "JetBrains Mono";
|
|
|
|
|
"editor.fontLigatures" = true;
|
2024-08-07 11:31:13 +02:00
|
|
|
"editor.indentSize" = 2;
|
|
|
|
|
"editor.tabSize" = 2;
|
|
|
|
|
"typescript.preferences.importModuleSpecifier" = "relative";
|
|
|
|
|
"[svelte]" = {
|
|
|
|
|
"editor.defaultFormatter" = "svelte.svelte-vscode";
|
|
|
|
|
};
|
|
|
|
|
"svelte.enable-ts-plugin" = true;
|
|
|
|
|
"svelte.plugin.svelte.defaultScriptLanguage" = "ts";
|
|
|
|
|
"svelte.plugin.svelte.format.config.svelteStrictMode" = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
git = {
|
|
|
|
|
enable = true;
|
|
|
|
|
userName = "thiloho";
|
|
|
|
|
userEmail = "123883702+thiloho@users.noreply.github.com";
|
|
|
|
|
signing = {
|
|
|
|
|
signByDefault = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
direnv = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableBashIntegration = true;
|
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
|
};
|
|
|
|
|
obs-studio.enable = true;
|
2023-07-17 21:13:13 +02:00
|
|
|
};
|
2024-08-07 11:31:13 +02:00
|
|
|
home = {
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
tldr
|
|
|
|
|
ventoy-full
|
|
|
|
|
qbittorrent
|
|
|
|
|
neofetch
|
|
|
|
|
backblaze-b2
|
|
|
|
|
localsend
|
|
|
|
|
postman
|
|
|
|
|
gnome-tweaks
|
|
|
|
|
gnome-themes-extra
|
|
|
|
|
melonDS
|
2024-08-11 01:11:29 +02:00
|
|
|
prismlauncher
|
2024-09-15 13:19:33 +02:00
|
|
|
papers
|
|
|
|
|
endeavour
|
|
|
|
|
gapless
|
2024-08-07 11:31:13 +02:00
|
|
|
];
|
2024-03-27 17:02:32 +01:00
|
|
|
};
|
2023-07-02 00:18:17 +02:00
|
|
|
};
|
|
|
|
|
}
|