Compare commits
2 commits
29fd0330e8
...
7a72e488b5
Author | SHA1 | Date | |
---|---|---|---|
7a72e488b5 | |||
dad62eeaa0 |
2 changed files with 37 additions and 0 deletions
16
modules/mount-rock5b/default.nix
Normal file
16
modules/mount-rock5b/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
fileSystems."/home/${config.ccr.username}/torrent" = {
|
||||||
|
device = "//sisko.fleet/torrent";
|
||||||
|
fsType = "cifs";
|
||||||
|
options = let
|
||||||
|
credentials = pkgs.writeText "credentials" ''
|
||||||
|
username=guest
|
||||||
|
password=
|
||||||
|
'';
|
||||||
|
in ["credentials=${credentials},x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"];
|
||||||
|
};
|
||||||
|
}
|
21
modules/sunshine/default.nix
Normal file
21
modules/sunshine/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
videoDrivers = ["amdgpu"];
|
||||||
|
|
||||||
|
# displayManager.gdm.enable = true;
|
||||||
|
# displayManager.defaultSession = "gnome";
|
||||||
|
|
||||||
|
# displayManager.autoLogin.enable = true;
|
||||||
|
# displayManager.autoLogin.user = "sunshine"; # user must exists
|
||||||
|
|
||||||
|
# desktopManager.gnome.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.sunshine = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "sunshine";
|
||||||
|
};
|
||||||
|
|
||||||
|
users.groups.sunshine = {};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue