From 25078ab6d4c9ded173f6a192d89576d9fbfd66c7 Mon Sep 17 00:00:00 2001 From: stitchy Date: Thu, 14 Mar 2024 01:46:44 +0000 Subject: [PATCH] more config updates --- configuration.nix | 5 +++++ hosts/gemini/default.nix | 2 +- hosts/lappy/default.nix | 4 +++- packages/default.nix | 3 ++- users/stitchynyan/default.nix | 2 +- users/stitchynyan/home.nix | 14 ++++++++++++-- 6 files changed, 24 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0ac1e89..6d4b754 100644 --- a/configuration.nix +++ b/configuration.nix @@ -19,6 +19,10 @@ security.rtkit.enable = true; programs.zsh.enable = true; + # Virtualization because I need mah vr back + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + programs.neovim = { enable = true; @@ -36,6 +40,7 @@ cmp_luasnip tokyonight-nvim vim-lsp-cxx-highlight + typst-vim ]; }; }; diff --git a/hosts/gemini/default.nix b/hosts/gemini/default.nix index 778c1b7..4f72861 100644 --- a/hosts/gemini/default.nix +++ b/hosts/gemini/default.nix @@ -38,7 +38,7 @@ peers = [{ publicKey = "atXy3zi3FLoxP8hgzJIIeLGks4Te9HrKkQGoaobholM="; - presharedKeyFile = "/etc/nixos/hosts/gemini/wg.psk"; + presharedKeyFile = "/etc/nixos/hosts/gemini/wg.psk"; allowedIPs = [ "10.100.0.0/24" ]; endpoint = "moms.wireguard.stitchy.moe:47111"; persistentKeepalive = 25; diff --git a/hosts/lappy/default.nix b/hosts/lappy/default.nix index 9637b02..09513e0 100644 --- a/hosts/lappy/default.nix +++ b/hosts/lappy/default.nix @@ -10,6 +10,8 @@ system.nixos.tags = [ "Nya_Beginnings" ]; + services.logind.powerKey = "ignore"; + services.logind.powerKeyLongPress = "poweroff"; services.resolved = { enable = true; dnsovertls = "opportunistic"; @@ -67,7 +69,7 @@ CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 30; + CPU_MAX_PERF_ON_BAT = 50; #Optional helps save long term battery health START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge diff --git a/packages/default.nix b/packages/default.nix index 9088230..49b4758 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -34,7 +34,7 @@ vimPlugins.tokyonight-nvim # temporary home manager things inotify-tools - eww-wayland + eww jq socat libimobiledevice @@ -46,6 +46,7 @@ noto-fonts-emoji liberation_ttf nerdfonts + ipafont ]; } diff --git a/users/stitchynyan/default.nix b/users/stitchynyan/default.nix index 3ba4b90..629f597 100644 --- a/users/stitchynyan/default.nix +++ b/users/stitchynyan/default.nix @@ -50,7 +50,7 @@ shell = pkgs.zsh; home = "/home/stitchynyan"; description = "Personal user"; - extraGroups = [ "wheel" "networkmanager" "kvm" "libvirt" "audio" ]; + extraGroups = [ "wheel" "networkmanager" "kvm" "libvirtd" "audio" ]; initialHashedPassword = "$y$j9T$rvySCWHYE4AO4A9J0Vf20.$x5hpBNsOWovQFtNfFUIt17OAH5MJFwFBGjxbaEIagJ3"; }; } diff --git a/users/stitchynyan/home.nix b/users/stitchynyan/home.nix index 06efc17..fdb8447 100644 --- a/users/stitchynyan/home.nix +++ b/users/stitchynyan/home.nix @@ -3,6 +3,7 @@ { config, nixosConfig, pkgs, + lib, inputs, home-manager, ... }: @@ -54,13 +55,22 @@ qt5ct qt6ct mpv - python311Packages.sympy - python311Packages.matplotlib #steamvr? procps usbutils + (python311.withPackages (lib.attrVals ["sympy" "matplotlib"])) + (octaveFull.withPackages (lib.attrVals ["symbolic"])) ]; + + dconf.settings = { + "org/virt-manager/virt-manager/connections" = { + autoconnect = ["qemu:///system"]; + uris = ["qemu:///system"]; + }; + }; + + home.sessionVariables = { FOO = "BAR";