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