*honk*
This commit is contained in:
parent
d7aace3f8d
commit
ac51f8cdb5
18
flake.lock
18
flake.lock
|
@ -61,11 +61,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1644346464,
|
||||
"narHash": "sha256-hS8hwbr/PflMIfTWTmB7Xo5jIrsWhSAqtz5XXxPa0zQ=",
|
||||
"lastModified": 1645796113,
|
||||
"narHash": "sha256-s1WSYeOSIO/I/rII6H9o68naHAWieLzvtqrp8w4ggbI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "e2aa1f598674aa9c06f28f5db60b89f37f1e961b",
|
||||
"rev": "662350bee2090edc82b4c162b1415f76b4eee2f3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -83,11 +83,11 @@
|
|||
"utils": "utils_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1645539646,
|
||||
"narHash": "sha256-NcrTjFLQDyr8gh4yE5nIM9p6c1NO9KZd4gAHS7UJuok=",
|
||||
"lastModified": 1645539860,
|
||||
"narHash": "sha256-C4m74Hsc8dGKz0eU69SmX9KI3PP93dFXWD0ewFVRETI=",
|
||||
"owner": "ChaotiCryptidz",
|
||||
"repo": "musicutil",
|
||||
"rev": "c82b7dea1148989faa9fea82868215caf82b745a",
|
||||
"rev": "a64f25ebde7e79e29e4ac731441206c7e00dccdf",
|
||||
"type": "gitlab"
|
||||
},
|
||||
"original": {
|
||||
|
@ -98,11 +98,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1644420267,
|
||||
"narHash": "sha256-rFJuctggkjM412OC6OGPdXogFp7czGDW05ueWqpJbj8=",
|
||||
"lastModified": 1645433236,
|
||||
"narHash": "sha256-4va4MvJ076XyPp5h8sm5eMQvCrJ6yZAbBmyw95dGyw4=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "98bb5b77c8c6666824a4c13d23befa1e07210ef1",
|
||||
"rev": "7f9b6e2babf232412682c09e57ed666d8f84ac2d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
9
home/apps/aria2.nix
Normal file
9
home/apps/aria2.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.aria2 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enable-dht = true;
|
||||
seed-ratio = 5.0;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -14,6 +14,9 @@
|
|||
bold_italic_font = "auto";
|
||||
background_opacity = "0.9";
|
||||
disable_ligatures = "cursor";
|
||||
enable_audio_bell = false;
|
||||
tab_bar_style = "separator";
|
||||
tab_separator = " | ";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,9 +3,23 @@
|
|||
programs.mpv = {
|
||||
enable = true;
|
||||
config = {
|
||||
"script-opts" = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
|
||||
script-opts = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
|
||||
slang = "en";
|
||||
track-auto-selection = true;
|
||||
embeddedfonts = false;
|
||||
sub-ass-force-style = "FontName=Comic Sans MS";
|
||||
sub-ass-override = "strip";
|
||||
};
|
||||
profiles = {
|
||||
ontop = {
|
||||
ontop = true;
|
||||
on-all-workspaces = true;
|
||||
window-scale = 0.5;
|
||||
cursor-autohide = 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.zsh.shellAliases.mpv-ontop = "mpv --profile=ontop";
|
||||
programs.zsh.shellAliases.listen = ''
|
||||
${pkgs.mpv}/bin/mpv "https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5'';
|
||||
mpv "https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5'';
|
||||
}
|
||||
|
|
3
home/apps/mullvad.nix
Normal file
3
home/apps/mullvad.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [mullvad-vpn];
|
||||
}
|
|
@ -10,6 +10,7 @@ in {
|
|||
profiles.sshd
|
||||
|
||||
hosts.lappy.profiles.usb-automount
|
||||
hosts.lappy.profiles.macos-vm
|
||||
|
||||
# required for dualsense controller
|
||||
profiles.kernels.latest
|
||||
|
@ -24,7 +25,7 @@ in {
|
|||
|
||||
profiles.sound.pipewire
|
||||
|
||||
profiles.gui
|
||||
profiles.gui.base
|
||||
profiles.gui.environments.gnome
|
||||
|
||||
#profiles.gaming.steam
|
||||
|
@ -36,6 +37,8 @@ in {
|
|||
profiles.cross.arm64
|
||||
];
|
||||
|
||||
services.mullvad-vpn.enable = true;
|
||||
|
||||
home-manager.users.root = { imports = with tree; [ home.base ]; };
|
||||
home-manager.users.chaos = {
|
||||
programs.ssh.matchBlocks."*".identityFile = "${usb_data.ssh_priv_path}";
|
||||
|
@ -50,7 +53,7 @@ in {
|
|||
home.dev.all
|
||||
#home.reversing
|
||||
|
||||
home.gui
|
||||
home.gui.base
|
||||
home.gui.environments.gnome
|
||||
|
||||
#home.gaming.emulators.ds
|
||||
|
@ -71,6 +74,8 @@ in {
|
|||
home.apps.nicotine-plus
|
||||
home.apps.musicutil
|
||||
home.apps.pavucontrol
|
||||
home.apps.mullvad
|
||||
home.apps.aria2
|
||||
|
||||
home.programming.editors.vscode
|
||||
home.programming.languages.go
|
||||
|
@ -85,9 +90,22 @@ in {
|
|||
intel-media-driver
|
||||
];
|
||||
|
||||
services.getty.extraArgs = [ "--skip-login" "--login-options" "chaos" ];
|
||||
#services.getty.extraArgs = [ "--skip-login" "--login-options" "chaos" ];
|
||||
|
||||
networking.firewall.enable = true;
|
||||
networking.firewall.allowPing = true;
|
||||
|
||||
# Allow Soulseek
|
||||
networking.firewall.allowedTCPPorts = [ 22 2235 ];
|
||||
networking.firewall.allowedTCPPortRanges = [
|
||||
# Allow aria2 to work
|
||||
{ from = 6881; to = 6999; }
|
||||
];
|
||||
networking.firewall.allowedUDPPortRanges = [
|
||||
# Allow aria2 to work
|
||||
{ from = 6881; to = 6999; }
|
||||
];
|
||||
|
||||
# let vscode, vivaldi, etc work.
|
||||
security.unprivilegedUsernsClone = true;
|
||||
|
||||
|
|
15
hosts/lappy/profiles/macos-vm.nix
Normal file
15
hosts/lappy/profiles/macos-vm.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ pkgs, ... }: {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
p7zip
|
||||
#umlutilities
|
||||
qemu
|
||||
gnumake
|
||||
libguestfs
|
||||
python3
|
||||
];
|
||||
users.users.chaos.extraGroups = [ "libvirtd" "kvm" ];
|
||||
|
||||
}
|
|
@ -9,8 +9,7 @@
|
|||
profiles.tailscale
|
||||
profiles.sshd
|
||||
|
||||
hosts.raspberry.services.music-friend
|
||||
|
||||
profiles.connectivity.network_manager
|
||||
profiles.connectivity.bluetooth
|
||||
profiles.connectivity.ios
|
||||
|
||||
|
@ -31,21 +30,6 @@
|
|||
networking.hostName = "raspberry";
|
||||
time.timeZone = "Europe/London";
|
||||
|
||||
networking.useDHCP = true;
|
||||
networking.wireless = {
|
||||
enable = true;
|
||||
userControlled.enable = true;
|
||||
environmentFile = "/secrets/wifi-env";
|
||||
networks.BT-JGA898 = {
|
||||
priority = 10;
|
||||
psk = "@PSK_HOME@";
|
||||
};
|
||||
networks."Kitteh iPhone" = {
|
||||
priority = 100;
|
||||
psk = "@PSK_HOTSPOT@";
|
||||
};
|
||||
};
|
||||
|
||||
sdImage.compressImage = lib.mkForce false;
|
||||
|
||||
system.stateVersion = "21.11";
|
||||
|
|
4
profiles/base/zsh.nix
Normal file
4
profiles/base/zsh.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
environment.shells = with pkgs; [ zsh ];
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
displayManager.gdm.enable = true;
|
||||
desktopManager.gnome.enable = true;
|
||||
displayManager.gdm.wayland = false;
|
||||
|
||||
};
|
||||
environment.gnome.excludePackages = [
|
||||
pkgs.gnome.cheese
|
||||
|
|
0
profiles/gui/greeter/gdm.nix
Normal file
0
profiles/gui/greeter/gdm.nix
Normal file
0
profiles/gui/greeter/sddm.nix
Normal file
0
profiles/gui/greeter/sddm.nix
Normal file
|
@ -6,6 +6,14 @@ _: {
|
|||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
|
||||
config.pipewire = {
|
||||
"context.properties" = {
|
||||
# So fiio btr3k works,
|
||||
"default.clock.rate" = "48000";
|
||||
};
|
||||
};
|
||||
|
||||
media-session.enable = true;
|
||||
media-session.config.bluez-monitor.rules = [
|
||||
{
|
||||
|
|
|
@ -6,6 +6,6 @@ cd $REPO_ROOT
|
|||
|
||||
git add .
|
||||
|
||||
deploy -s ".#lappy"
|
||||
#deploy -s ".#lappy"
|
||||
deploy -s ".#hetzner-vm"
|
||||
#deploy -s ".#raspberry" -- --no-sandbox
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAeN3T1aZkTm5xS0b66cRDyKUbdEQCFyzVWXeW+eIbsa chaos@chaos"
|
||||
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDlq6+Okg6FYOM0lhwCHTpPfhKPW6uwbyD7NFS+1u1V63vBIlcSFqHEWkM0ksD7QvMn9lOPY4Q1lpiOQbyeyy5H/OAsjmopDsniAH5GVGWCDn+mu2aQwOzm2oeEDIA8p5KTr8/etKMZ1VJoKuKyL9XT3ZMSD8RAuabc0dR0krOevRczN8+GUNnTFbDhc++jK+XqwPVrPqA78cpfyZP3w9it/T15hmIzbbEvfTWYAPBfwdCdVumIA2t76yUMtrwNU7Fy3U+6nuJ197c62p55HepbLqf9zS9gvi7rh9lQd/EkSFKPGDaYOShQwZWjxPHzMiYlHRfRhkINh9ryGLN6uol arsenijs@User-PC"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue