[Init]
This commit is contained in:
112
hosts/_/home.nix
Normal file
112
hosts/_/home.nix
Normal file
@@ -0,0 +1,112 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:{
|
||||
|
||||
imports = [
|
||||
../../colors
|
||||
../../home/cli
|
||||
../../home/gui
|
||||
../../home/wayland/hyprland
|
||||
];
|
||||
|
||||
systemd.user.startServices = "sd-switch";
|
||||
programs.home-manager.enable = true;
|
||||
services.nextcloud-client.enable = true;
|
||||
|
||||
xdg.userDirs.enable = true;
|
||||
xdg.userDirs.desktop = "${config.home.homeDirectory}/desktop";
|
||||
xdg.userDirs.documents = "${config.home.homeDirectory}/desktop";
|
||||
xdg.userDirs.download = "${config.home.homeDirectory}/downloads";
|
||||
xdg.userDirs.extraConfig = {
|
||||
XDG_MISC_DIR = "${config.home.homeDirectory}/misc";
|
||||
};
|
||||
xdg.userDirs.music = "${config.home.homeDirectory}/media/music";
|
||||
xdg.userDirs.pictures = "${config.home.homeDirectory}/media/photo";
|
||||
xdg.userDirs.publicShare = "${config.home.homeDirectory}/media/photo";
|
||||
xdg.userDirs.templates = "${config.home.homeDirectory}/media/template";
|
||||
xdg.userDirs.videos = "${config.home.homeDirectory}/media/video";
|
||||
xdg.userDirs.createDirectories = true;
|
||||
|
||||
xdg.configFile."pipewire/pipewire-pulse.conf".text = ''
|
||||
context.modules = [
|
||||
{ name = libpipewire-module-rt
|
||||
args = {
|
||||
nice.level = -11
|
||||
#rt.prio = 88
|
||||
#rt.time.soft = -1
|
||||
#rt.time.hard = -1
|
||||
}
|
||||
flags = [ ifexists nofail ]
|
||||
}
|
||||
{ name = libpipewire-module-protocol-native }
|
||||
{ name = libpipewire-module-client-node }
|
||||
{ name = libpipewire-module-adapter }
|
||||
{ name = libpipewire-module-metadata }
|
||||
{ name = libpipewire-module-protocol-pulse }
|
||||
{ name = libpipewire-module-loopback
|
||||
args = {
|
||||
node.description = "Desktop"
|
||||
node.name = "Desktop"
|
||||
audio.position = [ FL FR ]
|
||||
capture.props = {
|
||||
media.class = Audio/Sink
|
||||
node.name = "Desktop"
|
||||
}
|
||||
}
|
||||
}
|
||||
{ name = libpipewire-module-loopback
|
||||
args = {
|
||||
node.description = "Music"
|
||||
node.name = "Music"
|
||||
audio.position = [ FL FR ]
|
||||
capture.props = {
|
||||
media.class = Audio/Sink
|
||||
node.name = "Music"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
'';
|
||||
|
||||
home = {
|
||||
username = "sora";
|
||||
homeDirectory = "/home/sora";
|
||||
packages = with pkgs; [
|
||||
#ui
|
||||
firefox
|
||||
vscodium
|
||||
xfce.thunar
|
||||
xfce.thunar-volman
|
||||
xfce.thunar-archive-plugin
|
||||
discord
|
||||
telegram-desktop
|
||||
obs-studio
|
||||
pavucontrol
|
||||
unzip
|
||||
appimage-run
|
||||
yt-dlp
|
||||
keepassxc
|
||||
nextcloud-client
|
||||
jellyfin-mpv-shim
|
||||
|
||||
#games
|
||||
wineWowPackages.wayland
|
||||
gamemode
|
||||
gamescope
|
||||
mangohud
|
||||
prismlauncher
|
||||
openttd-jgrpp
|
||||
bottles
|
||||
|
||||
#sexyterm
|
||||
cbonsai
|
||||
pipes-rs
|
||||
cmatrix
|
||||
cava
|
||||
];
|
||||
|
||||
stateVersion = "23.05";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user