mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 09:31:38 +01:00
enable zram for the vps
This commit is contained in:
parent
1169e53c76
commit
99432a7244
6 changed files with 23 additions and 9 deletions
|
@ -60,6 +60,7 @@ sda
|
||||||
├─sda1 /
|
├─sda1 /
|
||||||
├─sda14 # BIOS boot
|
├─sda14 # BIOS boot
|
||||||
└─sda15 /boot/efi # EFI stuff
|
└─sda15 /boot/efi # EFI stuff
|
||||||
|
zram0 [SWAP]
|
||||||
```
|
```
|
||||||
|
|
||||||
### vm
|
### vm
|
||||||
|
|
|
@ -170,11 +170,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1687167448,
|
"lastModified": 1687204608,
|
||||||
"narHash": "sha256-p4/h9h6Inj34uwf0ncww8Ufub6Vpk+5vHGVTwUT4z1E=",
|
"narHash": "sha256-rZ0e0iAIQM7vlsMd2/pcGfymZzNBRawObFgqIpxE94c=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "a10aa82e8aaee11d8e8b8c5e7e19f758a7553bf0",
|
"rev": "f06a43dca05fb7f1aa44742bf861d9c827b45122",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
initrd.systemd.enable = true;
|
initrd.systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
zramSwap.enable = true;
|
||||||
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
|
|
|
@ -165,6 +165,16 @@ in
|
||||||
};
|
};
|
||||||
"iFSR" = rec {
|
"iFSR" = rec {
|
||||||
address = "rouven.seifert@ifsr.de";
|
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;
|
primary = true;
|
||||||
gpg.key = gpg-default-key;
|
gpg.key = gpg-default-key;
|
||||||
realName = "Rouven Seifert";
|
realName = "Rouven Seifert";
|
||||||
|
@ -286,6 +296,9 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
mailboxName = " gmail";
|
mailboxName = " gmail";
|
||||||
extraMailboxes = lib.lists.forEach [ c.sent c.trash c.junk c.drafts ] (x: x.nearPattern);
|
extraMailboxes = lib.lists.forEach [ c.sent c.trash c.junk c.drafts ] (x: x.nearPattern);
|
||||||
|
extraConfig = ''
|
||||||
|
set copy = no
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,8 +11,12 @@
|
||||||
shell = lib.getExe pkgs.zsh;
|
shell = lib.getExe pkgs.zsh;
|
||||||
dpi-aware = "yes";
|
dpi-aware = "yes";
|
||||||
font = "monospace:family=Iosevka Nerd Font, size=8";
|
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}";
|
cursor.color = "${colors.background} ${colors.foreground}";
|
||||||
|
url = {
|
||||||
|
launch = "${pkgs.xdg-utils}/bin/xdg-open \${url}";
|
||||||
|
};
|
||||||
bell = {
|
bell = {
|
||||||
urgent = true;
|
urgent = true;
|
||||||
notify = true;
|
notify = true;
|
||||||
|
|
|
@ -24,11 +24,6 @@
|
||||||
];
|
];
|
||||||
programs.helix = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
themes.dracula-transparent = {
|
|
||||||
inherits = "dracula";
|
|
||||||
"ui.background" = "{}";
|
|
||||||
"ui.virtual.inlay-hint" = { fg = "#666666"; };
|
|
||||||
};
|
|
||||||
languages = {
|
languages = {
|
||||||
language = [
|
language = [
|
||||||
{
|
{
|
||||||
|
@ -39,7 +34,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
theme = "dracula-transparent";
|
theme = "dracula";
|
||||||
editor = {
|
editor = {
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
cursor-shape.insert = "bar";
|
cursor-shape.insert = "bar";
|
||||||
|
|
Loading…
Reference in a new issue