Skip to content

Commit

Permalink
pi
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Oct 26, 2024
1 parent 9283b19 commit e5e8a6a
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 142 deletions.
6 changes: 6 additions & 0 deletions .helix/languages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[[language]]
name = "nix"
language-servers = [ "nixd" ]

[language-server.nixd]
command = "nixd"
8 changes: 0 additions & 8 deletions configurations/home-manager/deck/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ in {
configDir = configDir;
machine = machine;
};
jiten.enable = false;
joshuto.enable = true;
kakoune.enable = true;
ssh = {
enable = true;
identityPath = "${secretDir}/deck/ssh/id_ed25519";
Expand Down Expand Up @@ -54,11 +51,6 @@ in {

programs.bash = {
enable = true;
profileExtra = ''
# Fix programs not showing up
export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"
'';

initExtra = "exec zsh";
};

Expand Down
3 changes: 1 addition & 2 deletions configurations/home-manager/pi/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ in {
};
userDirs = {
enable = true;
autoSortDownloads = true;
autoSortDownloads = false;
};
yazi = {
enable = true;
configDir = configDir;
};
kakoune.enable = true;
ssh = {
enable = true;
identityPath = "${secretDir}/${machine}/ssh/id_ed25519";
Expand Down
Binary file modified configurations/nixos/pi/age/airvpn-wg.conf.age
Binary file not shown.
Binary file modified configurations/nixos/pi/age/wifi.age
Binary file not shown.
31 changes: 10 additions & 21 deletions configurations/nixos/pi/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ in {

vpn = {
enable = true;
vpnTestService.enable = true;
wgConf = config.age.secrets."airvpn-wg.conf".path;
vpnTestService.enable = true;
};

ddns.njalla = {
Expand All @@ -66,11 +66,6 @@ in {
package = inputs.nixpkgs-2405.legacyPackages.${pkgs.system}.transmission_4;
vpn.enable = true;
peerPort = transmissionPort;
flood.enable = true;
extraSettings = {
download-queue-enabled = true;
download-queue-size = 3;
};
};

sonarr.enable = true;
Expand All @@ -94,13 +89,10 @@ in {
# This should force systemd to restart, no matter what.
systemd.services.systemd-journald.unitConfig.StartLimitIntervalSec = 0;

# Setup swap ram for stability
swapDevices = [
{
device = "/var/lib/swapfile";
size = 6 * 1024;
}
];
services.earlyoom = {
enable = true;
freeMemThreshold = 3; # In percent
};

services = {
syncthing = {
Expand All @@ -113,14 +105,7 @@ in {
};
};

networking = {
hostName = machine;
wireless = {
enable = true;
environmentFile = config.age.secrets.wifi.path;
networks."dd-wrt" = {psk = "@HOME@";};
};
};
networking.hostName = machine;

users = {
mutableUsers = false;
Expand Down Expand Up @@ -189,6 +174,10 @@ in {
"panic_on_oops=1" # Reboot on any kernel oops (optional)
];

# https://github.com/NixOS/nixos-hardware/issues/858
boot.initrd.systemd.enableTpm2 = false;


environment.systemPackages = with pkgs; [
# Compression
zip
Expand Down
140 changes: 29 additions & 111 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
#agenix.inputs.home-manager.follows = "home-manager";

nixos-hardware.url = "github:NixOS/nixos-hardware/master";

Expand Down

0 comments on commit e5e8a6a

Please sign in to comment.