Compare commits

...

6 Commits

Author SHA1 Message Date
5f3628d1a1 update nixos 2023-03-04 18:20:06 -08:00
d02a0d7a45 gnome: add ibus-engines.rime 2023-02-27 15:51:20 -08:00
36e5d09e8a flammea: switch to gnome 2023-02-24 14:04:10 -08:00
821549f525 fix gnome module 2023-02-24 14:04:10 -08:00
9da7c7c9fc flammea: add mpd 2023-02-24 14:04:10 -08:00
32ec56e6e0 euhadra: update 2023-02-24 14:04:10 -08:00
4 changed files with 70 additions and 16 deletions

@ -6,7 +6,7 @@ let mpdStreamingPort = 8080; in
[ [
/etc/nixos/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
./common-headless.nix ./common-headless.nix
./i3.nix ./sway.nix
./uefi.nix ./uefi.nix
./fstrim.nix ./fstrim.nix
# ./nebula.nix # ./nebula.nix
@ -37,6 +37,7 @@ let mpdStreamingPort = 8080; in
musicDirectory = "/mnt/aplysia/music"; musicDirectory = "/mnt/aplysia/music";
extraConfig = '' extraConfig = ''
bind_to_address "10.59.0.6" bind_to_address "10.59.0.6"
bind_to_address "100.97.134.100"
# audio_output { # audio_output {
# type "alsa" # type "alsa"
@ -67,6 +68,7 @@ let mpdStreamingPort = 8080; in
"pulse.properties"."server.address" = [ "pulse.properties"."server.address" = [
"unix:native" "unix:native"
"tcp:127.0.0.1:4713" "tcp:127.0.0.1:4713"
"tcp:100.97.134.100:4713"
]; ];
}; };
}; };
@ -96,7 +98,7 @@ let mpdStreamingPort = 8080; in
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
config.services.mpd.network.port config.services.mpd.network.port
# 4713 # pulseaudio 4713 # pulseaudio
mpdStreamingPort # mpd streaming mpdStreamingPort # mpd streaming
]; ];
@ -118,5 +120,7 @@ let mpdStreamingPort = 8080; in
# }; # };
# }; # };
system.stateVersion = "19.03"; system.stateVersion = "22.05";
time.timeZone = pkgs.lib.mkOverride 10 "US/Pacific";
} }

@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1677063315, "lastModified": 1677932085,
"narHash": "sha256-qiB4ajTeAOVnVSAwCNEEkoybrAlA+cpeiBxLobHndE8=", "narHash": "sha256-+AB4dYllWig8iO6vAiGGYl0NEgmMgGHpy9gzWJ3322g=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "988cc958c57ce4350ec248d2d53087777f9e1949", "rev": "3c5319ad3aa51551182ac82ea17ab1c6b0f0df89",
"type": "github" "type": "github"
}, },
"original": { "original": {

@ -1,11 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let mpdStreamingPort = 8080; in
{ {
imports = imports =
[ [
./common-headless.nix ./common-headless.nix
./sway.nix # ./sway.nix
# ./i3.nix # ./i3.nix
./gnome3.nix
./large-sw.nix ./large-sw.nix
./uefi.nix ./uefi.nix
./fstrim.nix ./fstrim.nix
@ -79,8 +81,8 @@
services.thermald.enable = true; services.thermald.enable = true;
virtualisation.virtualbox.host = { virtualisation.virtualbox.host = {
# enable = true; enable = true;
# enableExtensionPack = true; enableExtensionPack = true;
}; };
# nixpkgs.config.allowUnfree = true; # nixpkgs.config.allowUnfree = true;
@ -106,6 +108,8 @@
# }; # };
# networking.firewall.allowedTCPPorts = [ config.services.nix-serve.port ]; # networking.firewall.allowedTCPPorts = [ config.services.nix-serve.port ];
networking.firewall.trustedInterfaces = [ "tailscale0" ];
services.openssh.forwardX11 = true; services.openssh.forwardX11 = true;
fileSystems."/mnt/aplysia".device = pkgs.lib.mkOverride 10 "//aplysia.auroch-boa.ts.net/export"; fileSystems."/mnt/aplysia".device = pkgs.lib.mkOverride 10 "//aplysia.auroch-boa.ts.net/export";
@ -147,4 +151,47 @@
system.stateVersion = "22.11"; system.stateVersion = "22.11";
services.mpd = {
enable = true;
# network.listenAddress = "127.0.0.1";
# musicDirectory = "/mnt/aplysia/music";
musicDirectory = "/home/gebner/Music";
user = "gebner";
extraConfig = ''
bind_to_address "100.125.210.32"
# audio_output {
# type "alsa"
# name "dac"
# device "sysdefault:CARD=QAMP"
# }
audio_output {
type "pulse"
name "pulse"
server "127.0.0.1"
}
audio_output {
type "httpd"
name "http"
encoder "flac"
port "${toString mpdStreamingPort}"
}
replaygain "auto"
restore_paused "yes"
'';
};
services.pipewire = {
config.pipewire-pulse = {
"pulse.properties"."server.address" = [
"unix:native"
"tcp:127.0.0.1:4713"
# "tcp:100.97.134.100:4713"
];
};
};
} }

@ -2,21 +2,24 @@
{ {
imports = [ imports = [
./pulseaudio.nix ./pipewire.nix
]; ];
i18n.inputMethod = { i18n.inputMethod = {
enabled = "ibus"; enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ mozc table-others m17n ]; ibus.engines = with pkgs.ibus-engines; [ mozc table-others m17n rime ];
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnome3.libgweather gnome.gnome-tweaks
gnome3.gnome-tweak-tool
pavucontrol pavucontrol
paprefs paprefs
playerctl
xorg.xlsclients
]; ];
hardware.pulseaudio.enable = false;
fonts = { fonts = {
enableDefaultFonts = false; enableDefaultFonts = false;
fontconfig = { fontconfig = {
@ -81,11 +84,11 @@
services.xserver = { services.xserver = {
enable = true; enable = true;
libinput.enable = true; # libinput.enable = true;
displayManager.gdm.enable = true; displayManager.gdm.enable = true;
displayManager.defaultSession = "gnome"; # displayManager.defaultSession = "gnome";
desktopManager.gnome3 = { desktopManager.gnome = {
enable = true; enable = true;
}; };
}; };