This commit is contained in:
albert 2024-03-20 11:44:14 +09:00
parent 716b729cbe
commit 19b4ca7c2d
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
4 changed files with 61 additions and 4 deletions

View file

@ -21,10 +21,11 @@ in
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings = {
format = lib.concatStrings [ format = lib.concatStrings [
"[](${usernameBG})" # "[](${usernameBG})"
"$username" # "$username"
"$hostname" # "$hostname"
"[](bg:${directoryBG} fg:${usernameBG})" # "[](bg:${directoryBG} fg:${usernameBG})"
"[](${directoryBG})"
"$directory" "$directory"
"[](fg:${directoryBG} bg:${statusBG})" "[](fg:${directoryBG} bg:${statusBG})"
"$git_branch" "$git_branch"

View 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
];
}

View 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";
};
};
};
}

View file

@ -8,6 +8,7 @@
../../common/modules/ssh-luks.nix ../../common/modules/ssh-luks.nix
../../common/services/docker.nix ../../common/services/docker.nix
../../common/services/tailscale-autoconnect.nix ../../common/services/tailscale-autoconnect.nix
../../containers/rdesktop.nix
./disks.nix ./disks.nix
./builder.nix ./builder.nix
./wireguard.nix ./wireguard.nix