other random changes
This commit is contained in:
@@ -20,15 +20,22 @@
|
|||||||
../users/root/default.nix
|
../users/root/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.podman.enable = true;
|
||||||
|
hardware.bluetooth.settings = {
|
||||||
|
General = {
|
||||||
|
MultiProfile = "multiple";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"sebastian@c2vi.dev:0tIXGRJMLaI9H1ZPdU4gh+BikUuBVHtk+e1B5HggdZo="
|
"sebastian@c2vi.dev:0tIXGRJMLaI9H1ZPdU4gh+BikUuBVHtk+e1B5HggdZo="
|
||||||
];
|
];
|
||||||
builders = "@/etc/nix/machines";
|
#builders = "@/etc/nix/machines";
|
||||||
trusted-users = [ "me" ];
|
trusted-users = [ "me" ];
|
||||||
};
|
};
|
||||||
nix = {
|
nix = {
|
||||||
distributedBuilds = true;
|
distributedBuilds = false; # false, because i can't build on hpm currently ... not signed by trusted user error
|
||||||
buildMachines = [
|
buildMachines = [
|
||||||
{
|
{
|
||||||
hostName = "hpm";
|
hostName = "hpm";
|
||||||
@@ -158,7 +165,9 @@
|
|||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
system.activationScripts.setupLibvirt = lib.stringAfter [ "var" ] ''
|
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
|
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/
|
ln -nsf ${workDir}/vm/qemu/* /var/lib/libvirt/qemu/
|
||||||
|
|
||||||
# there is no /bin/bash
|
# there is no /bin/bash
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, meson
|
, meson
|
||||||
, pkgconfig
|
, pkg-config
|
||||||
, inih
|
, inih
|
||||||
, systemd
|
, systemd
|
||||||
, scdoc
|
, scdoc
|
||||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
meson
|
meson
|
||||||
pkgconfig
|
pkg-config
|
||||||
inih
|
inih
|
||||||
systemd
|
systemd
|
||||||
scdoc
|
scdoc
|
||||||
|
|||||||
6
mybin/log
Executable file
6
mybin/log
Executable 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 $@
|
||||||
@@ -15,7 +15,7 @@ build_from_github(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
build_from_local(){
|
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=$?
|
build_exit_code=$?
|
||||||
|
|
||||||
echo out_path: $out_path
|
echo out_path: $out_path
|
||||||
|
|||||||
2
mybin/ru
2
mybin/ru
@@ -7,7 +7,7 @@ then
|
|||||||
|
|
||||||
elif [ "$1" == "mnt-wechner" ]
|
elif [ "$1" == "mnt-wechner" ]
|
||||||
then
|
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" ]
|
elif [ "$1" == "wstunnel" ]
|
||||||
|
|||||||
@@ -8,6 +8,17 @@
|
|||||||
hostname = "github.com";
|
hostname = "github.com";
|
||||||
identityFile = "${secretsDir}/private-key-main";
|
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 = {
|
hpm = {
|
||||||
#hostname = "192.168.1.6";
|
#hostname = "192.168.1.6";
|
||||||
user = "me";
|
user = "me";
|
||||||
@@ -40,6 +51,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file.".ssh/known_hosts".force = true;
|
||||||
home.file.".ssh/known_hosts".text = ''
|
home.file.".ssh/known_hosts".text = ''
|
||||||
hpm ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+FpaNOf+ao6RCa6e43vAHFcQZTGu45rIqAG3Vx0/M8
|
hpm ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ+FpaNOf+ao6RCa6e43vAHFcQZTGu45rIqAG3Vx0/M8
|
||||||
hpm ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDbIgfPvt3NUWLxAv0jvWv7IUXHaR7k5M7Z1Kz24K+ZYuPRboHWNbcqGjik0kWDGwXejtTLkyiThK641Q0ffYp3bumKL3b3fBNLoRwHfVMHT9ZuM7e9nALJRa+0keBPTcO9kHliYJlEBiF4jHSZhVDPnZ0Qskg2m94AipKrhUC4KIbLFAER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sdRfLf6ARrDLtsfvTzvoWWQFiO7AgrcOdSQtMUM0/egLUj0lg/A5fxV1pfXvxAF7TquNJCXhDYczCbej4PQM2WBe2eGY+BjY3gDHtUdzWEqhH+b6/Cz78yAa4aSWDB8D+Ejv0N0BZLaImYQhma5PQ==
|
||||||
|
|||||||
@@ -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
|
# The home.stateVersion option does not have a default and must be set
|
||||||
@@ -44,13 +44,17 @@
|
|||||||
home.sessionPath = [ "${self}/mybin" ];
|
home.sessionPath = [ "${self}/mybin" ];
|
||||||
|
|
||||||
home.file = {
|
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 = ''
|
".subversion/config".text = ''
|
||||||
[miscellany]
|
[miscellany]
|
||||||
global-ignores = node_modules target
|
global-ignores = node_modules target
|
||||||
''; # documentation for this config file: https://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html
|
''; # documentation for this config file: https://svnbook.red-bean.com/en/1.7/svn.advanced.confarea.html
|
||||||
".mysecrets/root-pwd".text = "changeme";
|
".mysecrets/root-pwd".text = "changeme";
|
||||||
".mysecrets/me-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; [
|
home.packages = with pkgs; [
|
||||||
@@ -106,6 +110,7 @@
|
|||||||
xorg.xkill
|
xorg.xkill
|
||||||
wget
|
wget
|
||||||
xorg.xmodmap
|
xorg.xmodmap
|
||||||
|
android-studio
|
||||||
|
|
||||||
inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin
|
inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user