other random changes

This commit is contained in:
Sebastian Moser
2023-11-10 18:13:22 +01:00
parent 03a55289ec
commit 3ef7f87cfb
7 changed files with 43 additions and 11 deletions

View File

@@ -20,15 +20,22 @@
../users/root/default.nix
];
virtualisation.podman.enable = true;
hardware.bluetooth.settings = {
General = {
MultiProfile = "multiple";
};
};
nix.settings = {
trusted-public-keys = [
"sebastian@c2vi.dev:0tIXGRJMLaI9H1ZPdU4gh+BikUuBVHtk+e1B5HggdZo="
];
builders = "@/etc/nix/machines";
#builders = "@/etc/nix/machines";
trusted-users = [ "me" ];
};
nix = {
distributedBuilds = true;
distributedBuilds = false; # false, because i can't build on hpm currently ... not signed by trusted user error
buildMachines = [
{
hostName = "hpm";
@@ -158,7 +165,9 @@
virtualisation.libvirtd.enable = true;
system.activationScripts.setupLibvirt = lib.stringAfter [ "var" ] ''
mkdir -p /var/lib/libvirt/storage
ln -nsf ${workDir}/vm/libvirt/my-image-pool.xml /var/lib/libvirt/storage/my-image-pool.xml
rm -rf /var/lib/libvirt/qemu/networks
ln -nsf ${workDir}/vm/qemu/* /var/lib/libvirt/qemu/
# there is no /bin/bash

View File

@@ -3,7 +3,7 @@
, stdenv
, fetchFromGitHub
, meson
, pkgconfig
, pkg-config
, inih
, systemd
, scdoc
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
meson
pkgconfig
pkg-config
inih
systemd
scdoc

6
mybin/log Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
export SUPABASE_KEY=$(cat ~/.mysecrets/log-supabase-key)
export SUPABASE_URL=$(cat ~/.mysecrets/log-supabase-url)
python3 ~/work/log/new/client.py $@

View File

@@ -15,7 +15,7 @@ build_from_github(){
}
build_from_local(){
export out_path=$(nix build "$HOME/work/config#nixosConfigurations.$host.config.system.build.toplevel" --impure --no-link --print-out-paths $args_to_pass)
export out_path=$(sudo nix build "$HOME/work/config#nixosConfigurations.$host.config.system.build.toplevel" --impure --no-link --print-out-paths $args_to_pass)
build_exit_code=$?
echo out_path: $out_path

View File

@@ -7,7 +7,7 @@ then
elif [ "$1" == "mnt-wechner" ]
then
rclone mount --vfs-cache-mode full -vvvv onedrive-school:projekt-autobatterie ~/wechner-mount/
rclone mount --vfs-cache-mode full -vvvv onedrive-school:projekt-autobatterie ~/work/htl/projekt/wechner/mnt
elif [ "$1" == "wstunnel" ]

View File

@@ -8,6 +8,17 @@
hostname = "github.com";
identityFile = "${secretsDir}/private-key-main";
};
phone = {
user = "u0_a345";
hostname = "192.168.44.1";
port = 8022;
identityFile = "${secretsDir}/private-key-main";
};
uwu = {
user = "sebastian";
identityFile = "${secretsDir}/private-key-main";
hostname = "192.168.122.56";
};
hpm = {
#hostname = "192.168.1.6";
user = "me";
@@ -40,6 +51,7 @@
};
};
home.file.".ssh/known_hosts".force = true;
home.file.".ssh/known_hosts".text = ''
hpm ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+FpaNOf+ao6RCa6e43vAHFcQZTGu45rIqAG3Vx0/M8
hpm ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDbIgfPvt3NUWLxAv0jvWv7IUXHaR7k5M7Z1Kz24K+ZYuPRboHWNbcqGjik0kWDGwXejtTLkyiThK641Q0ffYp3bumKL3b3fBNLoRwHfVMHT9ZuM7e9nALJRa+0keBPTcO9kHliYJlEBiF4jHSZhVDPnZ0Qskg2m94AipKrhUC4KIbLFAERlDnFTxw8LTnzdfzs/n/80zH5tKq1TSlYd2XBIMlzYwxTGEgItifierQhncleVVUJ8IPLsSulMgCQu3BA8cGmdApbSe41FIieIsYzLEtJVnCRt0PymdYa1NdyngJ8ZWyXo6JjTCEHWv35WW05Oiw/tMyUDQoeebACe+Ve9WsYdb+0uttAQWZauODimGY/kRrwy2jCqDRoKjq+rWmTgLsXzuTr7sZ2nmlCIs0XkTXzwduo6ZJ1uNHYWTIjnC1in5uB5TMBlVQxEOdeLOIB9reHP7dajguCGLsOg/a7W/kx181w5MdXq5e9ch7Hp2eC9wBbwcy4EtmX0GAYSPV4GWGwunU92TFE5kg7haV23sdRfLf6ARrDLtsfvTzvoWWQFiO7AgrcOdSQtMUM0/egLUj0lg/A5fxV1pfXvxAF7TquNJCXhDYczCbej4PQM2WBe2eGY+BjY3gDHtUdzWEqhH+b6/Cz78yAa4aSWDB8D+Ejv0N0BZLaImYQhma5PQ==

View File

@@ -1,5 +1,5 @@
{ config, pkgs, self, secretsDir, inputs, ... }:
{ config, pkgs, self, secretsDir, inputs, persistentDir, ... }:
{
# The home.stateVersion option does not have a default and must be set
@@ -44,13 +44,17 @@
home.sessionPath = [ "${self}/mybin" ];
home.file = {
".config/rclone".source = config.lib.file.mkOutOfStoreSymlink "${secretsDir}/rclone-conf";
".rclone.conf".source = config.lib.file.mkOutOfStoreSymlink "${secretsDir}/rclone-conf";
".subversion/config".text = ''
[miscellany]
global-ignores = node_modules target
''; # documentation for this config file: https://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html
".mysecrets/root-pwd".text = "changeme";
".mysecrets/me-pwd".text = "changeme";
".mozilla/firefox".source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/firefox";
".cache/rofi-3.runcache".source = config.lib.file.mkOutOfStoreSymlink "${persistentDir}/rofi-run-cache";
};
home.packages = with pkgs; [
@@ -102,10 +106,11 @@
moonlight-qt
comma
delta
jq
jq
xorg.xkill
wget
xorg.xmodmap
wget
xorg.xmodmap
android-studio
inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin