Testing
This commit is contained in:
parent
716b729cbe
commit
19b4ca7c2d
4 changed files with 61 additions and 4 deletions
|
@ -21,10 +21,11 @@ in
|
|||
enableBashIntegration = true;
|
||||
settings = {
|
||||
format = lib.concatStrings [
|
||||
"[](${usernameBG})"
|
||||
"$username"
|
||||
"$hostname"
|
||||
"[](bg:${directoryBG} fg:${usernameBG})"
|
||||
# "[](${usernameBG})"
|
||||
# "$username"
|
||||
# "$hostname"
|
||||
# "[](bg:${directoryBG} fg:${usernameBG})"
|
||||
"[](${directoryBG})"
|
||||
"$directory"
|
||||
"[](fg:${directoryBG} bg:${statusBG})"
|
||||
"$git_branch"
|
||||
|
|
29
nixos/common/desktops/xfce/default.nix
Normal file
29
nixos/common/desktops/xfce/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib, inputs, config, pkgs, username, hostname, gpu, ... }: {
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
autorun = true;
|
||||
desktopManager.xfce.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
arc-kde-theme
|
||||
arc-theme
|
||||
papirus-icon-theme
|
||||
plasma-theme-switcher
|
||||
tailscale-systray
|
||||
];
|
||||
}
|
26
nixos/containers/rdesktop.nix
Normal file
26
nixos/containers/rdesktop.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stateversion, username, ... }: {
|
||||
containers.desktop = {
|
||||
autoStart = true;
|
||||
privateNetwork = false;
|
||||
config = { config, pkgs, lib, ... }: {
|
||||
networking.hostName = "nixos-rdesktop";
|
||||
system.stateVersion = stateversion;
|
||||
|
||||
imports = [
|
||||
../common/desktops/xfce
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 3390 ];
|
||||
};
|
||||
|
||||
services.xrdp = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
port = 3390;
|
||||
defaultWindowManager = "xfce4-session";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -8,6 +8,7 @@
|
|||
../../common/modules/ssh-luks.nix
|
||||
../../common/services/docker.nix
|
||||
../../common/services/tailscale-autoconnect.nix
|
||||
../../containers/rdesktop.nix
|
||||
./disks.nix
|
||||
./builder.nix
|
||||
./wireguard.nix
|
||||
|
|
Loading…
Reference in a new issue