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 [ ] else [
./modules/stylix.nix ./modules/stylix.nix
./modules/firefox.nix #./modules/firefox.nix
]); ]);
home = { home = {

View File

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

View File

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

View File

@@ -71,11 +71,11 @@ in
libGLU libGLU
gcc gcc
zlib zlib
xorg.libX11 libX11
fontconfig fontconfig
pcre2 pcre2
xorg.libXext libXext
xorg.libxcb libxcb
glib glib
])) ]))
@@ -231,6 +231,7 @@ in
"org.gnome.Decibels" "org.gnome.Decibels"
"org.pipewire.Helvum" "org.pipewire.Helvum"
"community.pathofbuilding.PathOfBuilding" "community.pathofbuilding.PathOfBuilding"
"io.github.gaheldev.Millisecond"
{ {
appId = "com.hytale.Launcher"; appId = "com.hytale.Launcher";
@@ -302,11 +303,11 @@ in
binfmt = true; binfmt = true;
}; };
#firefox = { firefox = {
# enable = true; enable = true;
# package = pkgs.firefox-bin; package = pkgs.firefox-bin;
#}; };
steam = { steam = {
enable = true; enable = true;
@@ -349,10 +350,10 @@ in
mesa mesa
libglvnd libglvnd
wayland wayland
xorg.libX11 libX11
xorg.libXcursor libXcursor
xorg.libXrandr libXrandr
xorg.libXi 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"; path = "/home/bug/.cloudflared";
devices = ["desktop" "laptop" "server"]; devices = ["desktop" "laptop" "server"];
}; };
"Music" = {
path = (if (device == "desktop") then "/home/bug/Music" else "/run/media/bug/Music/");
devices = ["desktop" "laptop"];
};
}; };
}; };
}; };