From 322c5337807ca1962a4bbceab5569f918e2adc71 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Thu, 27 Apr 2023 14:06:58 +0300 Subject: [PATCH] Rust things and startup programs --- .spacemacs | 3 ++- i3/config | 3 ++- nixos/desktop/configuration.nix | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.spacemacs b/.spacemacs index 406d3e9..1311fd8 100644 --- a/.spacemacs +++ b/.spacemacs @@ -36,7 +36,8 @@ This function should only modify configuration layer settings." yaml html php - rust + (rust :variables + rust-format-on-save t) python ;; ---------------------------------------------------------------- ;; Example of useful layers you may want to use right away. diff --git a/i3/config b/i3/config index c1ac282..29cc7ce 100644 --- a/i3/config +++ b/i3/config @@ -222,7 +222,8 @@ exec --no-startup-id nextcloud exec --no-startup-id bitwarden exec --no-startup-id steam -silent #exec --no-startup-id obs --startreplaybuffer -exec --no-startup-id discord +exec --no-startup-id discord +exec --no-startup-id nheko bindsym --release Print exec "aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import $filu;xclip -selection clipboard -t image/png -i $filu" bindsym --release Mod4+Print exec "aika=$(date +%s);paiva=$(date +%y-%m-%d);kansio=~/Kuvat/scrot;mkdir -p $kansio;filu=$kansio/kuvakaappaus$aika.png;import -window root $filu;xclip -selection clipboard -t image/png -i $filu" diff --git a/nixos/desktop/configuration.nix b/nixos/desktop/configuration.nix index bb2bae8..b8668e8 100644 --- a/nixos/desktop/configuration.nix +++ b/nixos/desktop/configuration.nix @@ -153,6 +153,10 @@ services.udev.packages = with pkgs; [ logitech-udev-rules ]; networking.firewall.enable = false; + virtualisation.docker = { + enable = true; + }; + #fonts.fontDir.enable = true; #fonts.enableDefaultFonts = true; fonts.fontconfig.defaultFonts.monospace = [ "Fira Code" ]; @@ -211,7 +215,7 @@ users.users.jt = { isNormalUser = true; description = "Jarkko Toivanen"; - extraGroups = [ "networkmanager" "wheel" "dialout" "libvirtd"]; + extraGroups = [ "networkmanager" "wheel" "dialout" "libvirtd" "docker" ]; packages = with pkgs; [ firefox wineWowPackages.stable @@ -237,6 +241,7 @@ git rustup rust-analyzer + cargo-cross gcc obs-studio appimage-run