This commit is contained in:
4DBug
2026-02-11 20:24:05 -06:00
parent 6b7cbc4dbf
commit 90f94f7888
7 changed files with 41 additions and 15 deletions

View File

@@ -1 +1 @@
{ device = "server"; }
{ device = "desktop"; }

View File

@@ -7,7 +7,7 @@
] else [
./modules/stylix.nix
./modules/firefox.nix
#./modules/firefox.nix
]);
home = {

View File

@@ -31,10 +31,12 @@
./modules/audio.nix
./modules/swap.nix
./modules/virtualisation.nix
./modules/mpd.nix
./modules/sshfs.nix
#./modules/firefox.nix
]) ++ (if device == "laptop" then [
./modules/mpd.nix
] else []) ++ (if device == "desktop" then [
] else []);

View File

@@ -6,7 +6,7 @@
enable = true;
settings = {
music_directory = "/run/media/bug/Music/";
music_directory = (if (device == "desktop") then "/home/bug/Music" else "/run/media/bug/Music/");
decoder = [
{

View File

@@ -71,11 +71,11 @@ in
libGLU
gcc
zlib
xorg.libX11
libX11
fontconfig
pcre2
xorg.libXext
xorg.libxcb
libXext
libxcb
glib
]))
@@ -231,6 +231,7 @@ in
"org.gnome.Decibels"
"org.pipewire.Helvum"
"community.pathofbuilding.PathOfBuilding"
"io.github.gaheldev.Millisecond"
{
appId = "com.hytale.Launcher";
@@ -302,11 +303,11 @@ in
binfmt = true;
};
#firefox = {
# enable = true;
firefox = {
enable = true;
# package = pkgs.firefox-bin;
#};
package = pkgs.firefox-bin;
};
steam = {
enable = true;
@@ -349,10 +350,10 @@ in
mesa
libglvnd
wayland
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
libX11
libXcursor
libXrandr
libXi
]);
};
};

18
modules/sshfs.nix Normal file
View File

@@ -0,0 +1,18 @@
{ config, pkgs, device, ... }:
{
fileSystems."/mnt/box" = {
device = "bug@box.bug.tools:/";
fsType = "fuse.sshfs";
options = [
"identityfile=/home/bug/.ssh/id_ed25519"
"idmap=user"
"x-systemd.automount"
"allow_other"
"user"
"_netdev"
];
};
boot.supportedFilesystems."fuse.sshfs" = true;
}

View File

@@ -62,6 +62,11 @@
path = "/home/bug/.cloudflared";
devices = ["desktop" "laptop" "server"];
};
"Music" = {
path = (if (device == "desktop") then "/home/bug/Music" else "/run/media/bug/Music/");
devices = ["desktop" "laptop"];
};
};
};
};