From 99432a7244b0f9b09cf57e231d7e9fb923f1d8a4 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Mon, 19 Jun 2023 23:58:04 +0200 Subject: [PATCH] enable zram for the vps --- README.md | 1 + flake.lock | 6 +++--- hosts/falkenstein-1/default.nix | 1 + users/rouven/modules/accounts/default.nix | 13 +++++++++++++ users/rouven/modules/foot/default.nix | 4 ++++ users/rouven/modules/helix/default.nix | 7 +------ 6 files changed, 23 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ce84c39..17280ca 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ sda ├─sda1 / ├─sda14 # BIOS boot └─sda15 /boot/efi # EFI stuff +zram0 [SWAP] ``` ### vm diff --git a/flake.lock b/flake.lock index 0b48064..e3ba096 100644 --- a/flake.lock +++ b/flake.lock @@ -170,11 +170,11 @@ ] }, "locked": { - "lastModified": 1687167448, - "narHash": "sha256-p4/h9h6Inj34uwf0ncww8Ufub6Vpk+5vHGVTwUT4z1E=", + "lastModified": 1687204608, + "narHash": "sha256-rZ0e0iAIQM7vlsMd2/pcGfymZzNBRawObFgqIpxE94c=", "owner": "nix-community", "repo": "home-manager", - "rev": "a10aa82e8aaee11d8e8b8c5e7e19f758a7553bf0", + "rev": "f06a43dca05fb7f1aa44742bf861d9c827b45122", "type": "github" }, "original": { diff --git a/hosts/falkenstein-1/default.nix b/hosts/falkenstein-1/default.nix index b79dbdc..e4fabc8 100644 --- a/hosts/falkenstein-1/default.nix +++ b/hosts/falkenstein-1/default.nix @@ -26,6 +26,7 @@ kernelPackages = pkgs.linuxPackages_latest; initrd.systemd.enable = true; }; + zramSwap.enable = true; time.timeZone = "Europe/Berlin"; diff --git a/users/rouven/modules/accounts/default.nix b/users/rouven/modules/accounts/default.nix index 2496b2d..96bd23e 100644 --- a/users/rouven/modules/accounts/default.nix +++ b/users/rouven/modules/accounts/default.nix @@ -165,6 +165,16 @@ in }; "iFSR" = rec { address = "rouven.seifert@ifsr.de"; + signature = { + showSignature = "append"; + text = '' + Rouven Seifert + + Fachschaftsrat Informatik TU Dresden + Fakultät Informatik + Nöthnitzer Str. 46, 01187 Dresden + ''; + }; primary = true; gpg.key = gpg-default-key; realName = "Rouven Seifert"; @@ -286,6 +296,9 @@ in enable = true; mailboxName = " 󰊫 gmail"; extraMailboxes = lib.lists.forEach [ c.sent c.trash c.junk c.drafts ] (x: x.nearPattern); + extraConfig = '' + set copy = no + ''; }; }; }; diff --git a/users/rouven/modules/foot/default.nix b/users/rouven/modules/foot/default.nix index f1fd7c8..bf0a9d5 100644 --- a/users/rouven/modules/foot/default.nix +++ b/users/rouven/modules/foot/default.nix @@ -11,8 +11,12 @@ shell = lib.getExe pkgs.zsh; dpi-aware = "yes"; font = "monospace:family=Iosevka Nerd Font, size=8"; + notify = "${lib.getExe pkgs.libnotify} -a \${app-id} -i \${app-id} \${title} \${body}"; }; cursor.color = "${colors.background} ${colors.foreground}"; + url = { + launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}"; + }; bell = { urgent = true; notify = true; diff --git a/users/rouven/modules/helix/default.nix b/users/rouven/modules/helix/default.nix index 6989d22..aeec05b 100644 --- a/users/rouven/modules/helix/default.nix +++ b/users/rouven/modules/helix/default.nix @@ -24,11 +24,6 @@ ]; programs.helix = { enable = true; - themes.dracula-transparent = { - inherits = "dracula"; - "ui.background" = "{}"; - "ui.virtual.inlay-hint" = { fg = "#666666"; }; - }; languages = { language = [ { @@ -39,7 +34,7 @@ ]; }; settings = { - theme = "dracula-transparent"; + theme = "dracula"; editor = { line-number = "relative"; cursor-shape.insert = "bar";