push
This commit is contained in:
@@ -1 +1 @@
|
||||
{ device = "server"; }
|
||||
{ device = "desktop"; }
|
||||
2
home.nix
2
home.nix
@@ -7,7 +7,7 @@
|
||||
|
||||
] else [
|
||||
./modules/stylix.nix
|
||||
./modules/firefox.nix
|
||||
#./modules/firefox.nix
|
||||
]);
|
||||
|
||||
home = {
|
||||
|
||||
4
main.nix
4
main.nix
@@ -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 []);
|
||||
|
||||
@@ -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 = [
|
||||
{
|
||||
|
||||
@@ -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
18
modules/sshfs.nix
Normal 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;
|
||||
}
|
||||
@@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user