aboutsummaryrefslogtreecommitdiff
path: root/hosts/mercury
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/mercury')
-rw-r--r--hosts/mercury/ai.nix8
-rw-r--r--hosts/mercury/config.nix23
-rw-r--r--hosts/mercury/disks.nix12
-rw-r--r--hosts/mercury/hjem.nix6
-rw-r--r--hosts/mercury/nixos.nix86
-rw-r--r--hosts/mercury/secrets/ts-key.agebin0 -> 274 bytes
-rw-r--r--hosts/mercury/secrets/wireguard-privkey.age6
7 files changed, 55 insertions, 86 deletions
diff --git a/hosts/mercury/ai.nix b/hosts/mercury/ai.nix
deleted file mode 100644
index 4615838..0000000
--- a/hosts/mercury/ai.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{pkgs, ...}: {
- services.ollama.enable = true;
- # environment.systemPackages = [pkgs.mcphost];
-
- hjem.users."collin".files.".config/fish/conf.d/ollama.fish".text = ''
- set -gx OLLAMA_NOHISTORY 1
- '';
-}
diff --git a/hosts/mercury/config.nix b/hosts/mercury/config.nix
index 852c393..b9882f6 100644
--- a/hosts/mercury/config.nix
+++ b/hosts/mercury/config.nix
@@ -1,13 +1,16 @@
-{
+{config, ...}: {
collinux = {
- theme = "catppuccin";
+ theme = "adwaita";
secrets = {};
user.useRun0 = true;
desktop = {
- wallpaper = ./wallpapers/abstract-swirls.jpg;
+ wallpaper =
+ if (config.collinux.theme == "catppuccin")
+ then ./wallpapers/abstract-swirls.jpg
+ else ./wallpapers/hintergrund2.png;
gtk.enable = true;
qt.enable = true;
@@ -23,14 +26,13 @@
components = {
fuzzel.enable = true;
dunst.enable = true;
- # tofi.enable = true;
};
};
programs = {
firefox = {
enable = true;
- extensions.zotero.enable = false;
+ extensions.foxyproxy.enable = true;
};
foot.enable = true;
@@ -44,9 +46,7 @@
secureBoot.enable = true;
};
- network = {
- wireless.dynamic = true;
- };
+ network.wireless.dynamic = true;
audio.enable = true;
bluetooth.enable = true;
@@ -54,8 +54,10 @@
};
terminal = {
- shells.fish.enable = true;
- shells.bash.enable = true; # for nix-shells
+ shells = {
+ fish.enable = true;
+ bash.enable = true; # for nix-shells
+ };
programs = {
starship.enable = true;
@@ -63,6 +65,7 @@
bat.enable = true;
eza.enable = true;
broot.enable = true;
+ tmux.enable = true;
helix = {
enable = true;
hardMode = true;
diff --git a/hosts/mercury/disks.nix b/hosts/mercury/disks.nix
index 60187b1..7ef2d0d 100644
--- a/hosts/mercury/disks.nix
+++ b/hosts/mercury/disks.nix
@@ -3,17 +3,25 @@
device = "/dev/disk/by-uuid/3d80a86b-3268-4209-a833-b531b8bc0ebc";
fsType = "ext4";
};
-
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/45A4-2E5B";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
-
+ swapDevices = [
+ {
+ device = "/dev/disk/by-label/swap";
+ priority = 10;
+ }
+ ];
zramSwap = {
enable = true;
priority = 100;
algorithm = "lz4";
memoryPercent = 50;
};
+
+ boot.kernelParams = [
+ "resume=LABEL=swap"
+ ];
}
diff --git a/hosts/mercury/hjem.nix b/hosts/mercury/hjem.nix
index 6ecbb8e..3625e7b 100644
--- a/hosts/mercury/hjem.nix
+++ b/hosts/mercury/hjem.nix
@@ -1,9 +1,12 @@
{pkgs, ...}: {
packages = with pkgs; [
- # obsidian
anki
libreoffice-qt
musescore
+ (pkgs.callPackage ../../pkgs/obsidian.nix {})
+
+ lmms # (?)
+ eq10q
prismlauncher
mpv
@@ -12,7 +15,6 @@
opencode
(pkgs.callPackage ../../pkgs/yo {})
- (pkgs.callPackage ../../pkgs/yokey {})
captive-browser # https://words.filippo.io/captive-browser
(pkgs.makeDesktopItem {
diff --git a/hosts/mercury/nixos.nix b/hosts/mercury/nixos.nix
index a47375a..9a89fca 100644
--- a/hosts/mercury/nixos.nix
+++ b/hosts/mercury/nixos.nix
@@ -11,20 +11,17 @@
inputs.nixos-facter-modules.nixosModules.facter
inputs.lanzaboote.nixosModules.lanzaboote
];
-
facter.reportPath = ./facter.json;
+
services.dbus.implementation = "broker";
environment.defaultPackages = lib.mkForce []; # im not a noob
- services.syncthing = {
- enable = true;
- user = "collin";
- dataDir = "/home/collin/.local/syncthing";
- };
- programs.kdeconnect.enable = true;
-
- security.soteria.enable = true;
+ programs.ssh.extraConfig = ''
+ Host ganymede
+ HostName williamsfam.us.com
+ Port 22
+ '';
virtualisation.podman = {
enable = true;
@@ -45,66 +42,34 @@
}
];
};
-
- services.jupyter = {
+ virtualisation.waydroid = {
+ package = pkgs.waydroid-nftables;
enable = true;
- ip = "127.0.0.1";
- port = 8888;
-
- user = "collin"; # to access my files
-
- package = pkgs.python313Packages.jupyter;
- command = "jupyter lab --ServerApp.token='' --ServerApp.password=''";
- password = "";
-
- notebookDir = "~/brain/notes/schoolyear2025/physics";
-
- kernels = {
- python3 = let
- python = pkgs.python313.withPackages (ps:
- with ps; [
- numpy
- pandas
- matplotlib
- sympy
- ipywidgets
- ipydatagrid
- ipykernel
- ]);
- in {
- language = "python";
- displayName = "Python (Physics)";
- argv = ["${python}/bin/python" "-m" "ipykernel_launcher" "-f" "{connection_file}"];
- };
- };
};
+ programs.kdeconnect.enable = true;
+
+ services.autossh.sessions = [
+ {
+ name = "ganymede";
+ user = "collin";
+ monitoringPort = 20000;
+ extraArguments = "-N -D 9090 collin@ganymede";
+ }
+ ];
+ boot.supportedFilesystems."fuse.sshfs" = true;
fileSystems."/home/collin/ganymede" = {
device = "collin@ganymede:/media";
fsType = "fuse.sshfs";
options = [
"identityfile=/home/collin/.ssh/id_ed25519"
"idmap=user"
- "x-systemd.automount" #< mount the filesystem automatically on first access
- "allow_other" #< don't restrict access to only the user which `mount`s it (because that's probably systemd who mounts it, not you)
- "user" #< allow manual `mount`ing, as ordinary user.
+ "x-systemd.automount" # mount the filesystem automatically on first access
+ "allow_other" # don't restrict access to only the user which `mount`s it (because that's probably systemd who mounts it, not you)
+ "user" # allow manual `mount`ing, as ordinary user.
];
};
- boot.supportedFilesystems."fuse.sshfs" = true;
- services.autossh.sessions = [
- {
- name = "ganymede";
- user = "collin";
- monitoringPort = 20000;
- extraArguments = "-N -D 9090 collin@williamsfam.us.com";
- }
- ];
- programs.ssh.extraConfig = ''
- Host ganymede
- HostName williamsfam.us.com
- Port 22
- '';
security.pki.certificates = [
''
-----BEGIN CERTIFICATE-----
@@ -120,11 +85,4 @@
-----END CERTIFICATE-----
''
];
-
- programs.firefox.policies.ExtensionSettings = {
- "foxyproxy@eric.h.jung" = {
- installation_mode = "force_installed";
- install_url = "https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/latest.xpi";
- };
- };
}
diff --git a/hosts/mercury/secrets/ts-key.age b/hosts/mercury/secrets/ts-key.age
new file mode 100644
index 0000000..57454fe
--- /dev/null
+++ b/hosts/mercury/secrets/ts-key.age
Binary files differ
diff --git a/hosts/mercury/secrets/wireguard-privkey.age b/hosts/mercury/secrets/wireguard-privkey.age
new file mode 100644
index 0000000..614778d
--- /dev/null
+++ b/hosts/mercury/secrets/wireguard-privkey.age
@@ -0,0 +1,6 @@
+age-encryption.org/v1
+-> ssh-ed25519 azBilg GS1BNOAVj8aZPePeR4teX45zKAyCMVOBvE+GNUGCX3I
+rEzBojvbakMsQCKXROwbynFTxmlcPROD7DBsl/wzfO4
+--- ESZvgbmZ3UrE6CymN/Haej2rE+FrS13SCqZZX+gcsPw
+ 6T݈%]K2
+ J-{;@ؠ`+E2GLF*-a$`gAmp \ No newline at end of file