From 1f447a4b56643a59693c365d9b822c4dc84be87c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 24 Sep 2023 21:56:38 +0200 Subject: [PATCH 01/66] feat: switch apache to sway --- configuration.nix | 40 ++---- flake.nix | 1 + greetd.nix | 19 +++ home-manager/i3/default.nix | 136 ------------------ .../i3/wallpapers/nix-wallpaper-dracula.png | Bin 26003 -> 0 bytes home-manager/i3/workspaces/workspace-1.json | 10 -- home-manager/i3/workspaces/workspace-2.json | 10 -- home-manager/i3/workspaces/workspace-4.json | 10 -- home-manager/i3/workspaces/workspace-5.json | 10 -- home-manager/kitty.nix | 2 +- home-manager/rofi.nix | 13 -- home-manager/sway/default.nix | 71 +++++++++ home-manager/{i3 => sway}/i3status-rust.nix | 0 home-mandlm.nix | 3 +- machines/apache/configuration.nix | 2 +- 15 files changed, 105 insertions(+), 222 deletions(-) create mode 100644 greetd.nix delete mode 100644 home-manager/i3/default.nix delete mode 100644 home-manager/i3/wallpapers/nix-wallpaper-dracula.png delete mode 100644 home-manager/i3/workspaces/workspace-1.json delete mode 100644 home-manager/i3/workspaces/workspace-2.json delete mode 100644 home-manager/i3/workspaces/workspace-4.json delete mode 100644 home-manager/i3/workspaces/workspace-5.json delete mode 100644 home-manager/rofi.nix create mode 100644 home-manager/sway/default.nix rename home-manager/{i3 => sway}/i3status-rust.nix (100%) diff --git a/configuration.nix b/configuration.nix index 531c6e9..690358d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -43,31 +43,6 @@ zsh.enable = true; }; - services.xserver = { - enable = true; - windowManager.i3.enable = true; - - layout = "de"; - xkbVariant = "nodeadkeys"; - xkbModel = "pc105"; - - libinput = { - enable = true; - touchpad = { - horizontalScrolling = false; - naturalScrolling = true; - }; - }; - - displayManager = { - defaultSession = "none+i3"; - autoLogin = { - enable = true; - user = "mandlm"; - }; - }; - }; - virtualisation.docker.enable = true; time.timeZone = "Europe/Berlin"; @@ -82,15 +57,22 @@ fonts.fonts = with pkgs; [ (nerdfonts.override { fonts = [ "DejaVuSansMono" "FiraCode" ]; }) font-awesome + dejavu_fonts ]; - hardware.pulseaudio.enable = true; + hardware = { + pulseaudio.enable = true; - hardware.sane = { - enable = true; - extraBackends = [ pkgs.sane-airscan ]; + opengl.enable = true; + + sane = { + enable = true; + extraBackends = [ pkgs.sane-airscan ]; + }; }; + security.polkit.enable = true; + environment.systemPackages = with pkgs; [ neovim git diff --git a/flake.nix b/flake.nix index 903ce6d..e63201e 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,7 @@ system = "x86_64-linux"; modules = [ ./configuration.nix + ./greetd.nix ./users.nix ./machines/apache/configuration.nix ./machines/apache/hardware-configuration.nix diff --git a/greetd.nix b/greetd.nix new file mode 100644 index 0000000..564d9e6 --- /dev/null +++ b/greetd.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: +{ + services.greetd = { + enable = true; + settings = { + default_session.command = '' + ${pkgs.greetd.tuigreet}/bin/tuigreet \ + --time \ + --asterisks \ + --user-menu \ + --cmd sway + ''; + }; + }; + + environment.etc."greetd/environments".text = '' + sway + ''; +} diff --git a/home-manager/i3/default.nix b/home-manager/i3/default.nix deleted file mode 100644 index 9a93754..0000000 --- a/home-manager/i3/default.nix +++ /dev/null @@ -1,136 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -let - cfg = config.xsession.windowManager.i3; - font.name = "DejaVu Sans Mono"; - font.size = 12.0; -in -{ - imports = [ - ./i3status-rust.nix - ]; - - home.file = { - workspaces = { - source = ./workspaces; - target = ".config/i3/workspaces"; - recursive = true; - }; - wallpapers = { - source = ./wallpapers; - target = ".config/i3/wallpapers"; - recursive = true; - }; - }; - - xsession.windowManager.i3 = { - enable = true; - - config = { - modifier = "Mod4"; - terminal = "${pkgs.kitty}/bin/kitty"; - - fonts = { - names = [ font.name ]; - size = font.size; - }; - - window = { - titlebar = false; - border = 0; - }; - - floating = { - titlebar = false; - border = 0; - }; - - menu = "${pkgs.rofi}/bin/rofi -show drun"; - - bars = [{ - mode = "hide"; - position = "top"; - statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml"; - - fonts = { - names = [ font.name ]; - size = font.size * 1.1; - }; - }]; - - defaultWorkspace = "workspace number 1"; - - keybindings = lib.mkOptionDefault { - "${cfg.config.modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; - "${cfg.config.modifier}+Shift+s" = "exec flameshot gui"; - }; - - startup = [ - { command = "i3-msg 'workspace 1; append_layout ~/.config/i3/workspaces/workspace-1.json'"; } - { command = "i3-msg 'workspace 2; append_layout ~/.config/i3/workspaces/workspace-2.json'"; } - { command = "i3-msg 'workspace 4; append_layout ~/.config/i3/workspaces/workspace-4.json'"; } - { command = "i3-msg 'workspace 5; append_layout ~/.config/i3/workspaces/workspace-5.json'"; } - { command = "kitty"; notification = false; } - { command = "firefox"; notification = false; } - { command = "element-desktop"; notification = false; } - { command = "keepassxc"; notification = false; } - { command = "nextcloud"; notification = false; } - { command = "thunderbird"; notification = false; } - ]; - - assigns = { - "6" = [{ class = "^\.zoom $"; }]; - }; - }; - }; - - services = { - betterlockscreen = { - enable = true; - arguments = [ "--update /home/mandlm/.config/i3/wallpapers/nix-wallpaper-dracula.png" ]; - }; - - flameshot = { - enable = true; - settings = { - General = { - showStartupLaunchMessage = false; - }; - }; - }; - - unclutter.enable = true; - - dunst = { - enable = true; - settings = { - global = { - follow = "keyboard"; - font = "DejaVu Sans Mono 11"; - frame_width = 1; - }; - - urgency_low = { - frame_color = "#268bd2"; - foreground = "#eee8d5"; - background = "#002b36"; - timeout = 4; - }; - - urgency_normal = { - frame_color = "#859900"; - foreground = "#eee8d5"; - background = "#002b36"; - timeout = 6; - }; - - urgency_critical = { - frame_color = "#dc322f"; - foreground = "#eee8d5"; - background = "#002b36"; - timeout = 8; - }; - }; - }; - }; -} diff --git a/home-manager/i3/wallpapers/nix-wallpaper-dracula.png b/home-manager/i3/wallpapers/nix-wallpaper-dracula.png deleted file mode 100644 index 8e439ac59f7e94b222780c3a25eb30932a6a369f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 26003 zcmeFZ`9GBH|2{tLN};=j5^{T$5K{sF03;xBi%;Y5aOF-a5QyjD#A-wqXchn~~!cxOT#C|RuO&lc5hIDYfx`I()O(N*QTR-wAIzJ}jM z?DH)57qy#Y4``LYTRUgi5PMmwwe1eK=De z=}559TmQ=*CR^Bk_4h?z+xYm0PF5!|6;2;>ClmHT%C6 zJo+wH$jA38(&UkwGi6AriQ7<}rc(dqsET7suW)72O4GS;yUX&&-tU8}+yz zTPiy~xp|_u|G|#{iOrusPW1f!v;L{d^mkqP`M7My_AMA1)%Q(Im+1QJe7WE0;TumP z0^7RZyHDz#{+Vjkbj-O45yf~Z{Pj~#NKyQU&xwM!5#|0*_l!#~s#I4Y&Ay)?o;E%F zgPd_ysK!)Hzg1D$RQlF6xZB(b{KW?Gucxxt64^V62QKBz`99n_%AWqB&Ny4?^MLr) zIFeE%w|c4QZL;R>U7aK6O%yu3uKs-PPBF7Zy2xnMnOWUWI8f|`S#-@1X$^boa#dL8 z626~L1ht-maMf2|^&O3N?LW@bHfOI?6txhY&;uQlLEND z6*IkW)T}MV7tshOr8o_DYLCD_=5L($ifA|;pIGgXxUxI{*gNv z()dY1@Tm2%($7PVN4DEv?!PQqXmy&OheP(Ai5&mmZS+x=weFj#(Ngpt-|&AX`EB;W zA&@;`PP)4H@966Oe?%KqCLefC=@kDi z2>pe%`Ta@!j+fU-OJ2T^%O)b08NR-rr}ls67m(DGyeTNPioWyVX7r&JmOpaYi@_&w z_EfH!)%5e+VF$HTfpYvKg^fso{r?Cwer~^PXBZD#5wT(LtkC5;%Xhn2s((9=*vf*reV}3F#`Ln^m+tRH zPn{c$8x?+nD@XQI#Xe%1+H-1*L#K;lfEc>gdsBKdqtuw`55pbp`B`I5?bOKgwE zo|j$U62~^-!r$5@7w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workspace-1.json deleted file mode 100644 index d6ce6b0..0000000 --- a/home-manager/i3/workspaces/workspace-1.json +++ /dev/null @@ -1,10 +0,0 @@ -// vim:ts=4:sw=4:et -{ - "name": "Terminal", - "swallows": [ - { - "class": "^kitty$" - } - ], - "type": "con" -} diff --git a/home-manager/i3/workspaces/workspace-2.json b/home-manager/i3/workspaces/workspace-2.json deleted file mode 100644 index a6d29f3..0000000 --- a/home-manager/i3/workspaces/workspace-2.json +++ /dev/null @@ -1,10 +0,0 @@ -// vim:ts=4:sw=4:et -{ - "name": "Element", - "swallows": [ - { - "class": "^Element$" - } - ], - "type": "con" -} diff --git a/home-manager/i3/workspaces/workspace-4.json b/home-manager/i3/workspaces/workspace-4.json deleted file mode 100644 index 108f590..0000000 --- a/home-manager/i3/workspaces/workspace-4.json +++ /dev/null @@ -1,10 +0,0 @@ -// vim:ts=4:sw=4:et -{ - "name": "Email", - "swallows": [ - { - "class": "^thunderbird$" - } - ], - "type": "con" -} diff --git a/home-manager/i3/workspaces/workspace-5.json b/home-manager/i3/workspaces/workspace-5.json deleted file mode 100644 index 7c74fa7..0000000 --- a/home-manager/i3/workspaces/workspace-5.json +++ /dev/null @@ -1,10 +0,0 @@ -// vim:ts=4:sw=4:et -{ - "name": "Browser", - "swallows": [ - { - "class": "^firefox$" - } - ], - "type": "con" -} diff --git a/home-manager/kitty.nix b/home-manager/kitty.nix index dc585bf..9a204d6 100644 --- a/home-manager/kitty.nix +++ b/home-manager/kitty.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, user, theme, ... }: +{ theme, ... }: let theme_name = if theme == "light" then "Solarized Light" else "Solarized Dark"; diff --git a/home-manager/rofi.nix b/home-manager/rofi.nix deleted file mode 100644 index 0c75bfd..0000000 --- a/home-manager/rofi.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ config, lib, pkgs, user, ... }: - -{ - programs.rofi = { - enable = true; - font = "DejaVu Sans Mono 12"; - terminal = "${pkgs.kitty}/bin/kitty"; - extraConfig = { - show-icons = true; - matching = "fuzzy"; - }; - }; -} diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix new file mode 100644 index 0000000..a11f835 --- /dev/null +++ b/home-manager/sway/default.nix @@ -0,0 +1,71 @@ +{ config, lib, pkgs, user, ... }: +let + font.name = "DejaVu Sans Mono"; + font.size = 12.0; +in +{ + imports = [ + ./i3status-rust.nix + ]; + + programs.fuzzel = { + enable = true; + settings = { + main = { + terminal = "${pkgs.kitty}/bin/kitty"; + layer = "overlay"; + font = "DejaVu Sans Mono:size=10"; + }; + colors.background = "55000000"; + }; + }; + + wayland.windowManager.sway = { + enable = true; + + config = rec { + modifier = "Mod4"; + terminal = "${pkgs.kitty}/bin/kitty"; + + input = { + "type:keyboard" = { + xkb_layout = "de"; + }; + "type:touchpad" = { + natural_scroll = "enabled"; + tap = "enabled"; + accel_profile = "flat"; + dwt = "enabled"; + }; + }; + + seat = { + "*" = { + hide_cursor = "1000"; + }; + }; + + fonts = { + names = [ font.name ]; + size = font.size; + }; + + bars = [{ + mode = "hide"; + position = "top"; + statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ~/.config/i3status-rust/config-default.toml"; + + fonts = { + names = [ font.name ]; + size = font.size; + }; + }]; + + menu = "${pkgs.fuzzel}/bin/fuzzel"; + }; + + extraConfig = '' + ''; + }; + +} diff --git a/home-manager/i3/i3status-rust.nix b/home-manager/sway/i3status-rust.nix similarity index 100% rename from home-manager/i3/i3status-rust.nix rename to home-manager/sway/i3status-rust.nix diff --git a/home-mandlm.nix b/home-mandlm.nix index 287dbc0..d3aaad0 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -44,8 +44,7 @@ ./home-manager/gpg ./home-manager/zsh.nix ./home-manager/starship.nix - ./home-manager/i3 - ./home-manager/rofi.nix + ./home-manager/sway ./home-manager/direnv.nix ./home-manager/bat.nix ]; diff --git a/machines/apache/configuration.nix b/machines/apache/configuration.nix index d3d2b13..1303e3c 100644 --- a/machines/apache/configuration.nix +++ b/machines/apache/configuration.nix @@ -3,6 +3,6 @@ { networking.hostName = "apache"; boot.loader.grub.enableCryptodisk = true; - services.xserver.videoDrivers = [ "intel" "nvidia" ]; + # services.xserver.videoDrivers = [ "intel" "nvidia" ]; } From 1c66c5662e3d7a2eb69339305016a167d7444455 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:16:31 +0200 Subject: [PATCH 02/66] feat: configure fuzzle --- home-manager/sway/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index a11f835..2cb59a7 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -14,9 +14,14 @@ in main = { terminal = "${pkgs.kitty}/bin/kitty"; layer = "overlay"; - font = "DejaVu Sans Mono:size=10"; + font = "DejaVu Sans Mono:size=12"; }; - colors.background = "55000000"; + colors = { + background = "002b36ff"; + border = "ffffffaa"; + }; + }; + }; }; }; From f7902362cc0cc075a0594455505a35c667c5b386 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:16:42 +0200 Subject: [PATCH 03/66] feat: add xdg-open etc. --- home-manager/sway/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 2cb59a7..ad1a6d9 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -8,6 +8,10 @@ in ./i3status-rust.nix ]; + home.packages = with pkgs; [ + xdg-utils + ]; + programs.fuzzel = { enable = true; settings = { From 6913cc47d0bf59d36339fea1b99d1eb22c976cf0 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:16:57 +0200 Subject: [PATCH 04/66] feat: add mouse cursor --- home-manager/sway/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index ad1a6d9..223f0f2 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -26,6 +26,14 @@ in }; }; }; + + home.pointerCursor = { + name = "Adwaita"; + package = pkgs.gnome.adwaita-icon-theme; + size = 24; + x11 = { + enable = true; + defaultCursor = "Adwaita"; }; }; From 3a451c7d9c68f1ab1fb4958927cf848f93850738 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:17:12 +0200 Subject: [PATCH 05/66] feat: add autostart and key bindings --- home-manager/sway/default.nix | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 223f0f2..b86c8fd 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -79,10 +79,32 @@ in }]; menu = "${pkgs.fuzzel}/bin/fuzzel"; - }; - extraConfig = '' - ''; + keybindings = + let + modifier = config.wayland.windowManager.sway.config.modifier; + in + lib.mkOptionDefault { + "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; + }; + + assigns = { + "6" = [{ class = "^\.zoom $"; }]; + }; + + startup = [ + { command = "keepassxc"; } + { command = "nextcloud"; } + { command = "swaymsg 'workspace 1"; } + { command = "kitty"; } + { command = "swaymsg 'workspace 2"; } + { command = "element-desktop"; } + { command = "swaymsg 'workspace 4"; } + { command = "thunderbird"; } + { command = "swaymsg 'workspace 5"; } + { command = "firefox"; } + ]; + }; }; } From 051550f773a05a1c42270736518ab4a03c51a5fe Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:17:30 +0200 Subject: [PATCH 06/66] feat: set default workspace --- home-manager/sway/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index b86c8fd..a6a3f78 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -62,6 +62,8 @@ in }; }; + defaultWorkspace = "1"; + fonts = { names = [ font.name ]; size = font.size; From c4a82dfb80cb335467d82e5a91c48a0c0293122e Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:17:55 +0200 Subject: [PATCH 07/66] feat: configure p330 specialization --- machines/apache/configuration.nix | 1 - machines/p330/configuration.nix | 27 -------------------- machines/p330/home-mandlm.nix | 42 +++++++++++++++++++------------ 3 files changed, 26 insertions(+), 44 deletions(-) diff --git a/machines/apache/configuration.nix b/machines/apache/configuration.nix index 1303e3c..7f30ab2 100644 --- a/machines/apache/configuration.nix +++ b/machines/apache/configuration.nix @@ -3,6 +3,5 @@ { networking.hostName = "apache"; boot.loader.grub.enableCryptodisk = true; - # services.xserver.videoDrivers = [ "intel" "nvidia" ]; } diff --git a/machines/p330/configuration.nix b/machines/p330/configuration.nix index fc06f1c..3313dd3 100644 --- a/machines/p330/configuration.nix +++ b/machines/p330/configuration.nix @@ -6,31 +6,4 @@ boot.loader.grub.enableCryptodisk = true; boot.supportedFilesystems = [ "zfs" ]; - - services.xserver = { - videoDrivers = [ "intel" ]; - dpi = 144; - xrandrHeads = [ - { - output = "DP2"; - primary = true; - monitorConfig = '' - Option "Position" "0 790" - ''; - } - { - output = "DP3"; - monitorConfig = '' - Option "Position" "3840 0" - Option "Rotate" "right" - ''; - } - ]; - serverFlagsSection = '' - Option "BlankTime" "19" - Option "StandbyTime" "0" - Option "SuspendTime" "0" - Option "OffTime" "20" - ''; - }; } diff --git a/machines/p330/home-mandlm.nix b/machines/p330/home-mandlm.nix index 810d749..a5986ee 100644 --- a/machines/p330/home-mandlm.nix +++ b/machines/p330/home-mandlm.nix @@ -1,23 +1,33 @@ { config, lib, pkgs, user, ... }: { - xsession.windowManager.i3.config = { + wayland.windowManager.sway.config = { + output = { + DP-2 = { + scale = "1.5"; + position = "0 526"; + # position = "0 790"; + }; + DP-3 = { + scale = "1.5"; + position = "2560 0"; + # position = "3840 0"; + transform = "90"; + }; + }; + workspaceOutputAssign = [ - { workspace = "1"; output = "DP3"; } - { workspace = "2"; output = "DP2"; } - { workspace = "3"; output = "DP3"; } - { workspace = "4"; output = "DP2"; } - { workspace = "5"; output = "DP3"; } - { workspace = "6"; output = "DP2"; } - { workspace = "7"; output = "DP3"; } - { workspace = "8"; output = "DP2"; } - { workspace = "9"; output = "DP3"; } - { workspace = "10"; output = "DP2"; } + { workspace = "0"; output = "DP-2"; } + { workspace = "1"; output = "DP-3"; } + { workspace = "2"; output = "DP-2"; } + { workspace = "3"; output = "DP-3"; } + { workspace = "4"; output = "DP-2"; } + { workspace = "5"; output = "DP-3"; } + { workspace = "6"; output = "DP-2"; } + { workspace = "7"; output = "DP-3"; } + { workspace = "8"; output = "DP-2"; } + { workspace = "9"; output = "DP-3"; } ]; + }; - - programs.kitty.font.size = 16; - programs.rofi.font = lib.mkForce "DejaVu Sans Mono 16"; - - services.betterlockscreen.inactiveInterval = 20; } From a3832ac5eb93a10e9715c31ddce2e5458bed2fee Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 25 Sep 2023 14:18:11 +0200 Subject: [PATCH 08/66] chore: nix flake update --- flake.lock | 18 +++++++++--------- flake.nix | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 3a5b822..1c77ec1 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1693208669, - "narHash": "sha256-hHFaaUsZ860wvppPeiu7nJn/nXZjJfnqAQEu9SPFE9I=", + "lastModified": 1695108154, + "narHash": "sha256-gSg7UTVtls2yO9lKtP0yb66XBHT1Fx5qZSZbGMpSn2c=", "owner": "nix-community", "repo": "home-manager", - "rev": "5bac4a1c06cd77cf8fc35a658ccb035a6c50cd2c", + "rev": "07682fff75d41f18327a871088d20af2710d4744", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1694304580, - "narHash": "sha256-5tIpNodDpEKT8mM/F5zCzWEAnidOg8eb1/x3SRaaBLs=", + "lastModified": 1695416179, + "narHash": "sha256-610o1+pwbSu+QuF3GE0NU5xQdTHM3t9wyYhB9l94Cd8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4c8cf44c5b9481a4f093f1df3b8b7ba997a7c760", + "rev": "715d72e967ec1dd5ecc71290ee072bcaf5181ed6", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1694183432, - "narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=", + "lastModified": 1695360818, + "narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "db9208ab987cdeeedf78ad9b4cf3c55f5ebd269b", + "rev": "e35dcc04a3853da485a396bdd332217d0ac9054f", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index e63201e..3281a74 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,7 @@ system = "x86_64-linux"; modules = [ ./configuration.nix + ./greetd.nix ./users.nix ./machines/nixos-vm/configuration.nix ./machines/nixos-vm/hardware-configuration.nix @@ -78,6 +79,7 @@ system = "x86_64-linux"; modules = [ ./configuration.nix + ./greetd.nix ./users.nix ./machines/p330/configuration.nix ./machines/p330/hardware-configuration.nix @@ -102,6 +104,7 @@ system = "x86_64-linux"; modules = [ ./configuration.nix + ./greetd.nix ./users.nix ./machines/yoga/configuration.nix ./machines/yoga/hardware-configuration.nix From 0ee3a84f4a8832402eb11998f6d6ee6ec6111d84 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 26 Sep 2023 08:48:56 +0200 Subject: [PATCH 09/66] feat: add swaylock-fancy --- configuration.nix | 5 ++++- home-manager/sway/default.nix | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 690358d..80a9390 100644 --- a/configuration.nix +++ b/configuration.nix @@ -71,7 +71,10 @@ }; }; - security.polkit.enable = true; + security = { + polkit.enable = true; + pam.services.swaylock = { }; + }; environment.systemPackages = with pkgs; [ neovim diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index a6a3f78..d2c21e8 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -10,6 +10,7 @@ in home.packages = with pkgs; [ xdg-utils + swaylock-fancy ]; programs.fuzzel = { @@ -88,6 +89,7 @@ in in lib.mkOptionDefault { "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; + "${modifier}+l" = "exec swaylock-fancy"; }; assigns = { @@ -108,5 +110,4 @@ in ]; }; }; - } From 6672763d1d32682a5a67ae3f675865e5a09d33cc Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 26 Sep 2023 08:49:07 +0200 Subject: [PATCH 10/66] chore: clean comments --- machines/p330/home-mandlm.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/machines/p330/home-mandlm.nix b/machines/p330/home-mandlm.nix index a5986ee..e4d1c2d 100644 --- a/machines/p330/home-mandlm.nix +++ b/machines/p330/home-mandlm.nix @@ -6,12 +6,10 @@ DP-2 = { scale = "1.5"; position = "0 526"; - # position = "0 790"; }; DP-3 = { scale = "1.5"; position = "2560 0"; - # position = "3840 0"; transform = "90"; }; }; @@ -28,6 +26,5 @@ { workspace = "8"; output = "DP-2"; } { workspace = "9"; output = "DP-3"; } ]; - }; } From edf8967c1055da4b5c9077e06aeea43d5aafab73 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 27 Sep 2023 10:29:39 +0200 Subject: [PATCH 11/66] feat: increase hide_cursor timout to 5 secs --- home-manager/sway/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index d2c21e8..5082fb9 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -59,7 +59,7 @@ in seat = { "*" = { - hide_cursor = "1000"; + hide_cursor = "5000"; }; }; From ea81d831371f31fe1f6ceee66771f9fa54ce2049 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 29 Sep 2023 07:51:31 +0200 Subject: [PATCH 12/66] feat: add dunst --- home-manager/sway/default.nix | 1 + home-manager/sway/dunst.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 home-manager/sway/dunst.nix diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 5082fb9..af0bcf2 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -6,6 +6,7 @@ in { imports = [ ./i3status-rust.nix + ./dunst.nix ]; home.packages = with pkgs; [ diff --git a/home-manager/sway/dunst.nix b/home-manager/sway/dunst.nix new file mode 100644 index 0000000..f7078d5 --- /dev/null +++ b/home-manager/sway/dunst.nix @@ -0,0 +1,34 @@ +{ config, lib, pkgs, user, ... }: +{ + services.dunst = { + enable = true; + settings = { + global = { + follow = "keyboard"; + font = "DejaVu Sans Mono 11"; + frame_width = 1; + }; + + urgency_low = { + frame_color = "#268bd2"; + foreground = "#eee8d5"; + background = "#002b36"; + timeout = 4; + }; + + urgency_normal = { + frame_color = "#859900"; + foreground = "#eee8d5"; + background = "#002b36"; + timeout = 6; + }; + + urgency_critical = { + frame_color = "#dc322f"; + foreground = "#eee8d5"; + background = "#002b36"; + timeout = 8; + }; + }; + }; +} From c7db575f3bbc6b62429ae4631a6b00863d89f733 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 29 Sep 2023 09:22:10 +0200 Subject: [PATCH 13/66] fix: use nerdfont only for symbols in kitty --- configuration.nix | 4 ++-- home-manager/kitty.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 80a9390..70a675b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -55,9 +55,9 @@ }; fonts.fonts = with pkgs; [ - (nerdfonts.override { fonts = [ "DejaVuSansMono" "FiraCode" ]; }) - font-awesome + (nerdfonts.override { fonts = [ "DejaVuSansMono" "NerdFontsSymbolsOnly" ]; }) dejavu_fonts + fira-code ]; hardware = { diff --git a/home-manager/kitty.nix b/home-manager/kitty.nix index 9a204d6..372d237 100644 --- a/home-manager/kitty.nix +++ b/home-manager/kitty.nix @@ -9,7 +9,7 @@ in enable = true; theme = theme_name; font = { - name = "FiraCode Nerd Font Mono"; + name = "FiraCode"; }; settings = { tab_bar_style = "powerline"; From 8d33d629c77392960f31a403980461fd7584b418 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 29 Sep 2023 09:22:30 +0200 Subject: [PATCH 14/66] fix: use nerdfont compatible lsp-status icon --- home-manager/neovim/lspconfig.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 700c1cf..8030910 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -49,6 +49,7 @@ lsp_status.config({ current_function = false, show_filename = false, diagnostics = true, + status_symbol = "", }) lsp_status.register_progress() From fd7095bbe78771102271bce7d24768783b7389a5 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 26 Sep 2023 13:06:56 +0200 Subject: [PATCH 15/66] feat(wip): add swayidle --- home-manager/sway/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index af0bcf2..a5526f9 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -2,6 +2,8 @@ let font.name = "DejaVu Sans Mono"; font.size = 12.0; + lock_command = "${pkgs.swaylock-fancy}/bin/swaylock-fancy --daemonize --show-failed-attempts --ignore-empty-password"; + swaymsg = "${pkgs.sway}/bin/swaymsg"; in { imports = [ @@ -39,6 +41,17 @@ in }; }; + services.swayidle = { + enable = true; + events = [ + { event = "before-sleep"; command = lock_command; } + ]; + timeouts = [ + { timeout = 300; command = "${swaymsg} output '*' power off"; resumeCommand = "${swaymsg} output '*' power on"; } + { timeout = 900; command = lock_command; } + ]; + }; + wayland.windowManager.sway = { enable = true; @@ -90,7 +103,7 @@ in in lib.mkOptionDefault { "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; - "${modifier}+l" = "exec swaylock-fancy"; + "${modifier}+l" = "exec ${lock_command}"; }; assigns = { From 60c315423cf89cacafa0962d8f5809f4850a826c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 1 Oct 2023 10:53:24 +0200 Subject: [PATCH 16/66] feat: use shotman as screenshot tool --- home-manager/sway/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index a5526f9..73a8e4d 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -14,6 +14,7 @@ in home.packages = with pkgs; [ xdg-utils swaylock-fancy + shotman ]; programs.fuzzel = { @@ -103,6 +104,7 @@ in in lib.mkOptionDefault { "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; + "${modifier}+Shift+s" = "exec shotman --capture region --copy"; "${modifier}+l" = "exec ${lock_command}"; }; From c06d7054ed2f9a0e3230580207ab97a2e5c6428f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 1 Oct 2023 11:01:55 +0200 Subject: [PATCH 17/66] feat: enable wayland clipboard in neovim --- home-manager/sway/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 73a8e4d..c6c0561 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -15,6 +15,7 @@ in xdg-utils swaylock-fancy shotman + wl-clipboard ]; programs.fuzzel = { From 4bdc608068caefaec7961de9ba16e71936b8051c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 3 Oct 2023 18:42:11 +0200 Subject: [PATCH 18/66] feat: don't focus new windows --- home-manager/sway/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index c6c0561..90cdda8 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -81,6 +81,8 @@ in defaultWorkspace = "1"; + focus.newWindow = "urgent"; + fonts = { names = [ font.name ]; size = font.size; From d86f00a7bf57956ba4d1228a6ad42754f82ec3c7 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 5 Oct 2023 08:07:15 +0200 Subject: [PATCH 19/66] chore: nix flake update --- flake.lock | 12 ++++++------ home-manager/neovim/indent-blankline.lua | 9 ++++----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 1c77ec1..92c98dd 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1695416179, - "narHash": "sha256-610o1+pwbSu+QuF3GE0NU5xQdTHM3t9wyYhB9l94Cd8=", + "lastModified": 1696374741, + "narHash": "sha256-gt8B3G0ryizT9HSB4cCO8QoxdbsHnrQH+/BdKxOwqF0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "715d72e967ec1dd5ecc71290ee072bcaf5181ed6", + "rev": "8a4c17493e5c39769f79117937c79e1c88de6729", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1695360818, - "narHash": "sha256-JlkN3R/SSoMTa+CasbxS1gq+GpGxXQlNZRUh9+LIy/0=", + "lastModified": 1696193975, + "narHash": "sha256-mnQjUcYgp9Guu3RNVAB2Srr1TqKcPpRXmJf4LJk6KRY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e35dcc04a3853da485a396bdd332217d0ac9054f", + "rev": "fdd898f8f79e8d2f99ed2ab6b3751811ef683242", "type": "github" }, "original": { diff --git a/home-manager/neovim/indent-blankline.lua b/home-manager/neovim/indent-blankline.lua index 921a59b..d7e7b6c 100644 --- a/home-manager/neovim/indent-blankline.lua +++ b/home-manager/neovim/indent-blankline.lua @@ -1,6 +1,5 @@ -require("indent_blankline").setup { - char = "┊", - buftype_exclude = { "terminal", "help", "nofile" }, - filetype_exclude = { 'help', 'packer' }, - show_trailing_blankline_indent = false +require("ibl").setup { + indent = { + char = "┊", + }, } From c7e5fd760c339e1da423e8bb27c62b3c58093f1a Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 10 Oct 2023 08:59:32 +0200 Subject: [PATCH 20/66] feat: raise screen blanking timeouts --- home-manager/sway/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 90cdda8..e94f023 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -49,8 +49,8 @@ in { event = "before-sleep"; command = lock_command; } ]; timeouts = [ - { timeout = 300; command = "${swaymsg} output '*' power off"; resumeCommand = "${swaymsg} output '*' power on"; } - { timeout = 900; command = lock_command; } + { timeout = 900; command = "${swaymsg} output '*' power off"; resumeCommand = "${swaymsg} output '*' power on"; } + { timeout = 1000; command = lock_command; } ]; }; From 6e6411eddf6bf76ac0a52d673344ceaf396a0dbf Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 12 Oct 2023 08:33:48 +0200 Subject: [PATCH 21/66] feat: add clangd and cmake lsp config --- home-manager/neovim/lspconfig.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 8030910..70dc01e 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -67,6 +67,8 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities(lsp_status.cap local servers = { ["bashls"] = {}, + ["clangd"] = {}, + ["cmake"] = {}, ["dockerls"] = {}, ["jsonls"] = {}, ["lua_ls"] = { From 24b86f821bc69deebf71f454383729833561b3a8 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 12 Oct 2023 08:34:03 +0200 Subject: [PATCH 22/66] fix: remove custom vue-language-server path to enable volar package --- home-manager/neovim/lspconfig.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 70dc01e..b02fe9e 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -190,7 +190,6 @@ lspconfig["html"].setup({ -- setup volar lspconfig["volar"].setup({ - cmd = { "./node_modules/.bin/vue-language-server", "--stdio" }, filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' }, on_attach = on_attach, capabilities = capabilities, From 0b5ba97b32e5ccee644838a9c780350769737811 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 12 Oct 2023 08:34:44 +0200 Subject: [PATCH 23/66] feat(sway): add mod-shift-m keybinding to reset display --- home-manager/sway/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index e94f023..c610773 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -109,6 +109,7 @@ in "${modifier}+Shift+o" = "exec xdg-open \"zoommtg://zoom.us/join?action=join&confno=4861587170&pwd=ZVk3aHphcWppY21ONjZOMVh6STN6dz09\""; "${modifier}+Shift+s" = "exec shotman --capture region --copy"; "${modifier}+l" = "exec ${lock_command}"; + "${modifier}+Shift+m" = "output DP-2 power off, output DP-3 power off, output DP-2 power on, output DP-3 power on"; }; assigns = { From 6fca68679d50ebc224048a039c58a9e66be9c414 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 16 Oct 2023 08:03:19 +0200 Subject: [PATCH 24/66] chore: nix flake update --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 92c98dd..0655d48 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1696374741, - "narHash": "sha256-gt8B3G0ryizT9HSB4cCO8QoxdbsHnrQH+/BdKxOwqF0=", + "lastModified": 1697226376, + "narHash": "sha256-cumLLb1QOUtWieUnLGqo+ylNt3+fU8Lcv5Zl+tYbRUE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "8a4c17493e5c39769f79117937c79e1c88de6729", + "rev": "898cb2064b6e98b8c5499f37e81adbdf2925f7c5", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1696193975, - "narHash": "sha256-mnQjUcYgp9Guu3RNVAB2Srr1TqKcPpRXmJf4LJk6KRY=", + "lastModified": 1697059129, + "narHash": "sha256-9NJcFF9CEYPvHJ5ckE8kvINvI84SZZ87PvqMbH6pro0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "fdd898f8f79e8d2f99ed2ab6b3751811ef683242", + "rev": "5e4c2ada4fcd54b99d56d7bd62f384511a7e2593", "type": "github" }, "original": { From bb6968c86ee4e69f154b61f7f380f491f990b021 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 16 Oct 2023 20:28:18 +0200 Subject: [PATCH 25/66] feat: add marksman language server --- home-manager/neovim/default.nix | 1 + home-manager/neovim/lspconfig.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index 6e4969d..e37da8b 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -64,6 +64,7 @@ in nodePackages.vscode-langservers-extracted lldb vscode-extensions.vadimcn.vscode-lldb + marksman ]; # symlink for a stable path diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index b02fe9e..78b5877 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -87,6 +87,7 @@ local servers = { }, }, }, + ["marksman"] = {}, ["pylsp"] = { pylsp = { plugins = { From 7349a8848ddbab8329987d923de46c8cd15f5b9a Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 16 Oct 2023 20:43:08 +0200 Subject: [PATCH 26/66] feat: use eslint language server instead of null-ls --- home-manager/neovim/lspconfig.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 78b5877..37c4ecc 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -70,6 +70,7 @@ local servers = { ["clangd"] = {}, ["cmake"] = {}, ["dockerls"] = {}, + ["eslint"] = {}, ["jsonls"] = {}, ["lua_ls"] = { Lua = { @@ -150,8 +151,6 @@ local null_ls = require("null-ls") null_ls.setup({ sources = { null_ls.builtins.formatting.prettier, - null_ls.builtins.code_actions.eslint_d, - null_ls.builtins.diagnostics.eslint_d, null_ls.builtins.diagnostics.tsc, }, on_attach = on_attach, From f7e66f11d58de0c744b8ad0dfb1b3aae07f07005 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 16 Oct 2023 20:47:49 +0200 Subject: [PATCH 27/66] feat: install vue-language-server --- home-manager/neovim/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index e37da8b..5c531c6 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -62,6 +62,7 @@ in nodePackages.typescript nodePackages.dockerfile-language-server-nodejs nodePackages.vscode-langservers-extracted + nodePackages.volar lldb vscode-extensions.vadimcn.vscode-lldb marksman From 52dacfda31c3b5cf4f9101654aab178aa147147c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 16 Oct 2023 20:54:16 +0200 Subject: [PATCH 28/66] feat: use installed html language server --- home-manager/neovim/lspconfig.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 37c4ecc..878a4aa 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -71,6 +71,7 @@ local servers = { ["cmake"] = {}, ["dockerls"] = {}, ["eslint"] = {}, + ["html"] = {}, ["jsonls"] = {}, ["lua_ls"] = { Lua = { @@ -181,13 +182,6 @@ for type, icon in pairs(diagnostics_signs) do vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) end --- setup html languageserver -lspconfig["html"].setup({ - cmd = { "html-languageserver", "--stdio" }, - on_attach = on_attach, - capabilities = capabilities, -}) - -- setup volar lspconfig["volar"].setup({ filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue', 'json' }, From e0203937210045e41dbc539338abcdc451b3c7a5 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 18 Oct 2023 09:20:55 +0200 Subject: [PATCH 29/66] feat: add calibre --- configuration.nix | 2 ++ home-mandlm.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/configuration.nix b/configuration.nix index 70a675b..00b6e9d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -88,6 +88,8 @@ settings.X11Forwarding = true; }; + services.udisks2.enable = true; + services.printing = { enable = true; }; diff --git a/home-mandlm.nix b/home-mandlm.nix index d3aaad0..6c5fec7 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -29,6 +29,7 @@ kubectx gnome.simple-scan nix-output-monitor + calibre ]; stateVersion = "22.05"; From 6e018f83967c7a48f2921a51c3c6b04084e4766b Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 18 Oct 2023 09:21:07 +0200 Subject: [PATCH 30/66] feat: add c++ language servers --- home-manager/neovim/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index 5c531c6..c40f9fc 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -66,6 +66,8 @@ in lldb vscode-extensions.vadimcn.vscode-lldb marksman + clang-tools + cmake-language-server ]; # symlink for a stable path From d63f547a177dd5ec5e06146961f392c6544e0666 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 23 Oct 2023 08:38:46 +0200 Subject: [PATCH 31/66] feat: enable wlr desktop sharing --- configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configuration.nix b/configuration.nix index 00b6e9d..da63e84 100644 --- a/configuration.nix +++ b/configuration.nix @@ -83,6 +83,11 @@ environment.pathsToLink = [ "/share/zsh" ]; + xdg.portal = { + enable = true; + wlr.enable = true; + }; + services.openssh = { enable = true; settings.X11Forwarding = true; From 5fd57a74edaf46f31a72bc226d7a07f622cf5e15 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 23 Oct 2023 08:39:47 +0200 Subject: [PATCH 32/66] feat: remove nix-output-monitor --- home-mandlm.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/home-mandlm.nix b/home-mandlm.nix index 6c5fec7..068bafe 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -28,7 +28,6 @@ kubectl kubectx gnome.simple-scan - nix-output-monitor calibre ]; From 73838a8411f49a2c7bb7695e65dbcc674e9e338f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 23 Oct 2023 08:46:07 +0200 Subject: [PATCH 33/66] feat: use update nixos packages for nvim plugins flog, lsp_lines and signature-help --- home-manager/neovim/default.nix | 45 --------------------------------- 1 file changed, 45 deletions(-) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index c40f9fc..e82efaf 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -1,49 +1,5 @@ { config, lib, pkgs, user, theme, ... }: -let - cmp-nvim-lsp-signature-help = pkgs.vimUtils.buildVimPlugin { - name = "cmp-nvim-lsp-signature-help"; - version = "2023-02-27"; - src = pkgs.fetchFromGitHub { - owner = "hrsh7th"; - repo = "cmp-nvim-lsp-signature-help"; - rev = "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1"; - sha256 = "sha256-yDxYvjTIeXIKYR3tg+bf+okXKr5JYc/I9obP+6uKey4="; - }; - meta.homepage = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"; - }; - - lsp_lines-nvim = pkgs.vimUtils.buildVimPlugin { - name = "lsp_lines.nvim"; - version = "2023-02-27"; - src = pkgs.fetchgit { - url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim"; - rev = "ec98b45c8280e5ef8c84028d4f38aa447276c002"; - sha256 = "sha256-HjLCfuvZZ7vTJT0Te5VBRLNWvWIBFBou1Mvoxe2Hi3c="; - }; - meta.homepage = "https://git.sr.ht/~whynothugo/lsp_lines.nvim"; - }; - pre-commit-nvim = pkgs.vimUtils.buildVimPlugin { - name = "pre-commit.nvim"; - version = "2022-08-05"; - src = pkgs.fetchgit { - url = "https://github.com/Ttibsi/pre-commit.nvim"; - rev = "4a608cef0f0a196fa39cdc60579eb9cf601d21c4"; - sha256 = "Y0biF/yrOX1YYztj8/u0n8zPN4YLGLSQL3vb9I3+3dE="; - }; - meta.homepage = "https://github.com/Ttibsi/pre-commit.nvim"; - }; - vim-flog = pkgs.vimUtils.buildVimPlugin { - name = "vim-flog"; - version = "2023-01-24"; - src = pkgs.fetchgit { - url = "https://github.com/rbong/vim-flog"; - rev = "2ba8af2c9682e3560db5b813d10acf3ba3415bc1"; - sha256 = "sha256-xnzHAc30DD9W9/5s8PvpuBaEUJbB4BJ7WqbNb/CY3mY="; - }; - meta.homepage = "https://github.com/rbong/vim-flog/"; - }; -in { home.packages = with pkgs.unstable; [ xclip @@ -107,7 +63,6 @@ in plenary-nvim vim-illuminate registers-nvim - pre-commit-nvim vim-surround editorconfig-nvim From 8f7ab8dda192914ad0b3c4dee1a8d0bc2f3d3445 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 23 Oct 2023 08:47:00 +0200 Subject: [PATCH 34/66] chore: nix flake update --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 0655d48..6208c29 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1697226376, - "narHash": "sha256-cumLLb1QOUtWieUnLGqo+ylNt3+fU8Lcv5Zl+tYbRUE=", + "lastModified": 1697851979, + "narHash": "sha256-lJ8k4qkkwdvi+t/Xc6Fn74kUuobpu9ynPGxNZR6OwoA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "898cb2064b6e98b8c5499f37e81adbdf2925f7c5", + "rev": "5550a85a087c04ddcace7f892b0bdc9d8bb080c8", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1697059129, - "narHash": "sha256-9NJcFF9CEYPvHJ5ckE8kvINvI84SZZ87PvqMbH6pro0=", + "lastModified": 1697723726, + "narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5e4c2ada4fcd54b99d56d7bd62f384511a7e2593", + "rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", "type": "github" }, "original": { From bdd09aa73eb1a199a405c0b809ac285f41589a4d Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:33:06 +0200 Subject: [PATCH 35/66] feat(sway): disable dead keys on keyboard --- home-manager/sway/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index c610773..739d897 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -64,6 +64,7 @@ in input = { "type:keyboard" = { xkb_layout = "de"; + xkb_variant = "nodeadkeys"; }; "type:touchpad" = { natural_scroll = "enabled"; From 56bf157a60c55c58262b533865fc504df48528cd Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:33:42 +0200 Subject: [PATCH 36/66] feat: use pipewire instead of pulseaudio to support zoom screensharing --- configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index da63e84..283960e 100644 --- a/configuration.nix +++ b/configuration.nix @@ -61,8 +61,6 @@ ]; hardware = { - pulseaudio.enable = true; - opengl.enable = true; sane = { @@ -73,6 +71,7 @@ security = { polkit.enable = true; + rtkit.enable = true; pam.services.swaylock = { }; }; @@ -88,6 +87,12 @@ wlr.enable = true; }; + services.pipewire = { + enable = true; + wireplumber.enable = true; + pulse.enable = true; + }; + services.openssh = { enable = true; settings.X11Forwarding = true; From 06405a5d477928e80157e05bf055550ed95de2dd Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:37:53 +0200 Subject: [PATCH 37/66] feat: remove obsolete nvim-illuminate lsp config --- home-manager/neovim/lspconfig.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 878a4aa..682e65a 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -39,9 +39,6 @@ local on_attach = function(client, bufnr) callback = format_buffer, }) end - - local illuminate = require("illuminate") - illuminate.on_attach(client) end local lsp_status = require("lsp-status") From a43a04aeaba5b0e1093bda60d4d9175061ade28a Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:38:15 +0200 Subject: [PATCH 38/66] feat: remove conflicting g-t key mapping --- home-manager/neovim/lspconfig.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 682e65a..92123c2 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -19,7 +19,6 @@ local on_attach = function(client, bufnr) nnoremap("gD", vim.lsp.buf.declaration) nnoremap("gd", telescope.lsp_definitions) - nnoremap("gt", telescope.lsp_type_definitions) nnoremap("gi", telescope.lsp_implementations) nnoremap("gr", telescope.lsp_references) nnoremap("K", vim.lsp.buf.hover) From 02635a71b1474c250c4600af0043defcc8877fc7 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:38:33 +0200 Subject: [PATCH 39/66] feat: configure illuminate highlighting as bold --- home-manager/neovim/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index e82efaf..9fa62e2 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -142,6 +142,10 @@ vim.g.gitblame_date_format = "%r" + -- setup illuminate highlight groups + vim.api.nvim_set_hl(0, "IlluminatedWordText", { bold = true }) + vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "IlluminatedWordText" }) + vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "IlluminatedWordText" }) EOF ''; }; From e91d1e1ce6ede494d54e440a694ed2536d527787 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 25 Oct 2023 10:49:16 +0200 Subject: [PATCH 40/66] feat: configure treesitter incremental selection, remove obsolte settings --- home-manager/neovim/treesitter.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/home-manager/neovim/treesitter.lua b/home-manager/neovim/treesitter.lua index 931c77d..eca7e14 100644 --- a/home-manager/neovim/treesitter.lua +++ b/home-manager/neovim/treesitter.lua @@ -1,14 +1,14 @@ require('nvim-treesitter.configs').setup({ highlight = { enable = true, - additional_vim_regex_highlighting = false }, - indent = { - enable = false, - }, - rainbow = { + incremental_selection = { enable = true, - extended_mode = true, - max_file_lines = nil, + keymaps = { + init_selection = "v", + node_decremental = "<", + node_incremental = ">", + scope_incremental = false, + }, }, }) From b67b8b70e4703ca0d45bae0aa477a7fcbc4731f4 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 31 Oct 2023 09:13:03 +0100 Subject: [PATCH 41/66] feat: replace exa with eza --- home-manager/zsh.nix | 2 +- home-mandlm.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index 4ee0682..9b8a205 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -23,7 +23,7 @@ in }; shellAliases = { - ls = "exa --group-directories-first --git"; + ls = "eza --group-directories-first --git"; neovide = "neovide --multigrid"; xclip = "xclip -selection clipboard"; }; diff --git a/home-mandlm.nix b/home-mandlm.nix index 068bafe..91e5e2b 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -6,7 +6,7 @@ homeDirectory = "/home/${user}"; packages = with pkgs; [ - exa + unstable.eza firefox jq htop From 16a7d1db2d817cfe31fe55db9f180b645506f5b5 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 31 Oct 2023 09:13:17 +0100 Subject: [PATCH 42/66] feat: install zoom from unstable --- home-mandlm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-mandlm.nix b/home-mandlm.nix index 91e5e2b..ef656ec 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -23,7 +23,7 @@ light element-desktop difftastic - zoom-us + unstable.zoom-us darktable kubectl kubectx From 97e641e20555402d0a9513ad9bb583a791c63e60 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 31 Oct 2023 09:15:44 +0100 Subject: [PATCH 43/66] chore: nix flake update --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 6208c29..28725f4 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1697851979, - "narHash": "sha256-lJ8k4qkkwdvi+t/Xc6Fn74kUuobpu9ynPGxNZR6OwoA=", + "lastModified": 1698562188, + "narHash": "sha256-9nkxGnA/T+jLhHAMFRW157Qi/zfbf5dF1q7HfKROl3o=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5550a85a087c04ddcace7f892b0bdc9d8bb080c8", + "rev": "3e10c80821dedb93592682379f476745f370a58e", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1697723726, - "narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=", + "lastModified": 1698318101, + "narHash": "sha256-gUihHt3yPD7bVqg+k/UVHgngyaJ3DMEBchbymBMvK1E=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0", + "rev": "63678e9f3d3afecfeafa0acead6239cdb447574c", "type": "github" }, "original": { From f9ebd12607e1697826dd08f57a7e0e77d46e015b Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 3 Nov 2023 16:19:30 +0100 Subject: [PATCH 44/66] chore: nix flake update --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 28725f4..7315763 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1698562188, - "narHash": "sha256-9nkxGnA/T+jLhHAMFRW157Qi/zfbf5dF1q7HfKROl3o=", + "lastModified": 1698846319, + "narHash": "sha256-4jyW/dqFBVpWFnhl0nvP6EN4lP7/ZqPxYRjl6var0Oc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3e10c80821dedb93592682379f476745f370a58e", + "rev": "34bdaaf1f0b7fb6d9091472edc968ff10a8c2857", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1698318101, - "narHash": "sha256-gUihHt3yPD7bVqg+k/UVHgngyaJ3DMEBchbymBMvK1E=", + "lastModified": 1698924604, + "narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "63678e9f3d3afecfeafa0acead6239cdb447574c", + "rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40", "type": "github" }, "original": { From 4304b2730b3857d81a9b18ca6c8462c92784e1c2 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 5 Nov 2023 15:04:42 +0100 Subject: [PATCH 45/66] fix: revert to stable zoom --- home-mandlm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home-mandlm.nix b/home-mandlm.nix index ef656ec..91e5e2b 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -23,7 +23,7 @@ light element-desktop difftastic - unstable.zoom-us + zoom-us darktable kubectl kubectx From 98ca23db7ee5516afc7f1ffb65cc412d1fd04421 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 5 Nov 2023 15:04:55 +0100 Subject: [PATCH 46/66] feat: add libreoffice --- home-mandlm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home-mandlm.nix b/home-mandlm.nix index 91e5e2b..b945d80 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -29,6 +29,7 @@ kubectx gnome.simple-scan calibre + libreoffice ]; stateVersion = "22.05"; From ae5a3ffc15a2c0ff21e72344f0c610e5dd6b490b Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 5 Nov 2023 18:25:07 +0100 Subject: [PATCH 47/66] feat: allow yubikey otp authentication --- configuration.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configuration.nix b/configuration.nix index 283960e..5c80b80 100644 --- a/configuration.nix +++ b/configuration.nix @@ -73,6 +73,13 @@ polkit.enable = true; rtkit.enable = true; pam.services.swaylock = { }; + + pam.yubico = { + enable = true; + mode = "challenge-response"; + id = [ "23664350" ]; + control = "sufficient"; + }; }; environment.systemPackages = with pkgs; [ @@ -87,6 +94,8 @@ wlr.enable = true; }; + services.udev.packages = [ pkgs.yubikey-personalization ]; + services.pipewire = { enable = true; wireplumber.enable = true; From 3ada2600f8ef95a589425d765e5c9adabd5abe80 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 14 Nov 2023 08:19:32 +0100 Subject: [PATCH 48/66] chore: nix flake update --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 7315763..8d03f5c 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1695108154, - "narHash": "sha256-gSg7UTVtls2yO9lKtP0yb66XBHT1Fx5qZSZbGMpSn2c=", + "lastModified": 1699748081, + "narHash": "sha256-MOmMapBydd7MTjhX4eeQZzKlCABWw8W6iSHSG4OeFKE=", "owner": "nix-community", "repo": "home-manager", - "rev": "07682fff75d41f18327a871088d20af2710d4744", + "rev": "04bac349d585c9df38d78e0285b780a140dc74a4", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1698846319, - "narHash": "sha256-4jyW/dqFBVpWFnhl0nvP6EN4lP7/ZqPxYRjl6var0Oc=", + "lastModified": 1699596684, + "narHash": "sha256-XSXP8zjBZJBVvpNb2WmY0eW8O2ce+sVyj1T0/iBRIvg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "34bdaaf1f0b7fb6d9091472edc968ff10a8c2857", + "rev": "da4024d0ead5d7820f6bd15147d3fe2a0c0cec73", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1698924604, - "narHash": "sha256-GCFbkl2tj8fEZBZCw3Tc0AkGo0v+YrQlohhEGJ/X4s0=", + "lastModified": 1699099776, + "narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "fa804edfb7869c9fb230e174182a8a1a7e512c40", + "rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", "type": "github" }, "original": { From ddeb0b7024f5852d51e396b26ed4c98d3697441a Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 20 Nov 2023 07:55:19 +0100 Subject: [PATCH 49/66] chore: nix flake update --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 8d03f5c..ee09ab0 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1699748081, - "narHash": "sha256-MOmMapBydd7MTjhX4eeQZzKlCABWw8W6iSHSG4OeFKE=", + "lastModified": 1700392168, + "narHash": "sha256-v5LprEFx3u4+1vmds9K0/i7sHjT0IYGs7u9v54iz/OA=", "owner": "nix-community", "repo": "home-manager", - "rev": "04bac349d585c9df38d78e0285b780a140dc74a4", + "rev": "28535c3a34d79071f2ccb68671971ce0c0984d7e", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1699596684, - "narHash": "sha256-XSXP8zjBZJBVvpNb2WmY0eW8O2ce+sVyj1T0/iBRIvg=", + "lastModified": 1700403855, + "narHash": "sha256-Q0Uzjik9kUTN9pd/kp52XJi5kletBhy29ctBlAG+III=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "da4024d0ead5d7820f6bd15147d3fe2a0c0cec73", + "rev": "0c5678df521e1407884205fe3ce3cf1d7df297db", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1699099776, - "narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", + "lastModified": 1700204040, + "narHash": "sha256-xSVcS5HBYnD3LTer7Y2K8ZQCDCXMa3QUD1MzRjHzuhI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", + "rev": "c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad", "type": "github" }, "original": { From 4ca2bb7fa3dcb783ab79b73971ccbd29fd6c4c30 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 27 Nov 2023 10:37:45 +0100 Subject: [PATCH 50/66] chore: nix flake update --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index ee09ab0..0421bc0 100644 --- a/flake.lock +++ b/flake.lock @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1700403855, - "narHash": "sha256-Q0Uzjik9kUTN9pd/kp52XJi5kletBhy29ctBlAG+III=", + "lastModified": 1700989516, + "narHash": "sha256-oKbmPa2wpTHh9XB3+zIx97uMZGNnp97GPliKKG2/plo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0c5678df521e1407884205fe3ce3cf1d7df297db", + "rev": "d2e4de209881b38392933fabf303cde3454b0b4c", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1700204040, - "narHash": "sha256-xSVcS5HBYnD3LTer7Y2K8ZQCDCXMa3QUD1MzRjHzuhI=", + "lastModified": 1700794826, + "narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad", + "rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", "type": "github" }, "original": { From bc480b218ab0b0d6c62070e397e9590b039ec896 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 30 Nov 2023 15:11:22 +0100 Subject: [PATCH 51/66] chore: update to nixos 23.11 --- configuration.nix | 2 +- flake.lock | 22 +++++++++++----------- flake.nix | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5c80b80..957b205 100644 --- a/configuration.nix +++ b/configuration.nix @@ -54,7 +54,7 @@ keyMap = "de-latin1-nodeadkeys"; }; - fonts.fonts = with pkgs; [ + fonts.packages = with pkgs; [ (nerdfonts.override { fonts = [ "DejaVuSansMono" "NerdFontsSymbolsOnly" ]; }) dejavu_fonts fira-code diff --git a/flake.lock b/flake.lock index 0421bc0..6488e82 100644 --- a/flake.lock +++ b/flake.lock @@ -7,43 +7,43 @@ ] }, "locked": { - "lastModified": 1700392168, - "narHash": "sha256-v5LprEFx3u4+1vmds9K0/i7sHjT0IYGs7u9v54iz/OA=", + "lastModified": 1700814205, + "narHash": "sha256-lWqDPKHRbQfi+zNIivf031BUeyciVOtwCwTjyrhDB5g=", "owner": "nix-community", "repo": "home-manager", - "rev": "28535c3a34d79071f2ccb68671971ce0c0984d7e", + "rev": "aeb2232d7a32530d3448318790534d196bf9427a", "type": "github" }, "original": { "owner": "nix-community", - "ref": "release-23.05", + "ref": "release-23.11", "repo": "home-manager", "type": "github" } }, "nixpkgs": { "locked": { - "lastModified": 1700989516, - "narHash": "sha256-oKbmPa2wpTHh9XB3+zIx97uMZGNnp97GPliKKG2/plo=", + "lastModified": 1701263465, + "narHash": "sha256-lNXUIlkfyDyp9Ox21hr+wsEf/IBklLvb6bYcyeXbdRc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d2e4de209881b38392933fabf303cde3454b0b4c", + "rev": "50aa30a13c4ab5e7ba282da460a3e3d44e9d0eb3", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-23.05", + "ref": "nixos-23.11", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-unstable": { "locked": { - "lastModified": 1700794826, - "narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=", + "lastModified": 1701068326, + "narHash": "sha256-vmMceA+q6hG1yrjb+MP8T0YFDQIrW3bl45e7z24IEts=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8", + "rev": "8cfef6986adfb599ba379ae53c9f5631ecd2fd9c", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 3281a74..c9c58b6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,10 +1,10 @@ { inputs = { - nixpkgs.url = github:NixOS/nixpkgs/nixos-23.05; + nixpkgs.url = github:NixOS/nixpkgs/nixos-23.11; nixpkgs-unstable.url = github:NixOS/nixpkgs/nixos-unstable; home-manager = { - url = github:nix-community/home-manager/release-23.05; + url = github:nix-community/home-manager/release-23.11; inputs.nixpkgs.follows = "nixpkgs"; }; }; From bbd480f5118e900560518aa8a63a8cc6e1d47f53 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 07:38:39 +0100 Subject: [PATCH 52/66] feat: make zoom windows floating --- configuration.nix | 9 +++++++++ home-manager/sway/default.nix | 3 +++ 2 files changed, 12 insertions(+) diff --git a/configuration.nix b/configuration.nix index 957b205..dbeb026 100644 --- a/configuration.nix +++ b/configuration.nix @@ -92,6 +92,15 @@ xdg.portal = { enable = true; wlr.enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal-wlr + pkgs.xdg-desktop-portal-gtk + ]; + config = { + common = { + default = [ "wlr" "gtk" ]; + }; + }; }; services.udev.packages = [ pkgs.yubikey-personalization ]; diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index 739d897..a903807 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -78,12 +78,15 @@ in "*" = { hide_cursor = "5000"; }; + }; defaultWorkspace = "1"; focus.newWindow = "urgent"; + floating.criteria = [{ app_id = "zoom"; floating = true; }]; + fonts = { names = [ font.name ]; size = font.size; From ad6f261bcade730497e3c8f503d4f6ad58858775 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 07:39:05 +0100 Subject: [PATCH 53/66] feat: configure swaylock-fancy --- home-manager/sway/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home-manager/sway/default.nix b/home-manager/sway/default.nix index a903807..badef4d 100644 --- a/home-manager/sway/default.nix +++ b/home-manager/sway/default.nix @@ -13,7 +13,6 @@ in home.packages = with pkgs; [ xdg-utils - swaylock-fancy shotman wl-clipboard ]; @@ -33,6 +32,11 @@ in }; }; + programs.swaylock = { + enable = true; + package = pkgs.swaylock-fancy; + }; + home.pointerCursor = { name = "Adwaita"; package = pkgs.gnome.adwaita-icon-theme; From 5bf65163a681801fdfe95ffe023fdc92787fd851 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 07:39:18 +0100 Subject: [PATCH 54/66] feat: add cargo-bin to path --- home-mandlm.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home-mandlm.nix b/home-mandlm.nix index b945d80..35c8d01 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -4,6 +4,9 @@ home = { username = "${user}"; homeDirectory = "/home/${user}"; + sessionPath = [ + "$HOME/.cargo/bin/" + ]; packages = with pkgs; [ unstable.eza From 78eed1036930d62f9091cf52ff64bd8bb674e386 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 07:39:28 +0100 Subject: [PATCH 55/66] feat: install gthumb --- home-mandlm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home-mandlm.nix b/home-mandlm.nix index 35c8d01..0755a2b 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -33,6 +33,7 @@ gnome.simple-scan calibre libreoffice + gthumb ]; stateVersion = "22.05"; From deaeb9d3b340bdd0d5850e03a55732f85559854c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 07:40:55 +0100 Subject: [PATCH 56/66] chore: nix flake update --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 6488e82..1be6d37 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1700814205, - "narHash": "sha256-lWqDPKHRbQfi+zNIivf031BUeyciVOtwCwTjyrhDB5g=", + "lastModified": 1702195709, + "narHash": "sha256-+zRjWkm5rKqQ57PuLZ3JF3xi3vPMiOJzItb1m/43Cq4=", "owner": "nix-community", "repo": "home-manager", - "rev": "aeb2232d7a32530d3448318790534d196bf9427a", + "rev": "6761b8188b860f374b457eddfdb05c82eef9752f", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1701263465, - "narHash": "sha256-lNXUIlkfyDyp9Ox21hr+wsEf/IBklLvb6bYcyeXbdRc=", + "lastModified": 1701952659, + "narHash": "sha256-TJv2srXt6fYPUjxgLAL0cy4nuf1OZD4KuA1TrCiQqg0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "50aa30a13c4ab5e7ba282da460a3e3d44e9d0eb3", + "rev": "b4372c4924d9182034066c823df76d6eaf1f4ec4", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1701068326, - "narHash": "sha256-vmMceA+q6hG1yrjb+MP8T0YFDQIrW3bl45e7z24IEts=", + "lastModified": 1702151865, + "narHash": "sha256-9VAt19t6yQa7pHZLDbil/QctAgVsA66DLnzdRGqDisg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "8cfef6986adfb599ba379ae53c9f5631ecd2fd9c", + "rev": "666fc80e7b2afb570462423cb0e1cf1a3a34fedd", "type": "github" }, "original": { From 36d1bb4252ba53785709ea18d16455000bc1c2e8 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 08:14:36 +0100 Subject: [PATCH 57/66] feat: use carapace for completion --- home-manager/carapace.nix | 9 +++++++++ home-manager/zsh.nix | 4 ++-- home-mandlm.nix | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 home-manager/carapace.nix diff --git a/home-manager/carapace.nix b/home-manager/carapace.nix new file mode 100644 index 0000000..92f2b3d --- /dev/null +++ b/home-manager/carapace.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, user, theme, ... }: +{ + programs.carapace = { + enable = true; + enableZshIntegration = true; + enableNushellIntegration = true; + }; +} + diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index 9b8a205..a33a598 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -5,8 +5,8 @@ in { programs.zsh = { enable = true; - enableAutosuggestions = true; - enableCompletion = true; + # enableAutosuggestions = true; + # enableCompletion = true; history.size = 10000; initExtra = '' diff --git a/home-mandlm.nix b/home-mandlm.nix index 0755a2b..4505896 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -47,6 +47,7 @@ ./home-manager/kitty.nix ./home-manager/neovim ./home-manager/gpg + ./home-manager/carapace.nix ./home-manager/zsh.nix ./home-manager/starship.nix ./home-manager/sway From cdcebfde46ad872f6b6a4521666e95568469f0fc Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 20:04:42 +0100 Subject: [PATCH 58/66] feat: add nushell --- home-manager/direnv.nix | 1 + home-manager/neovim/lspconfig.lua | 1 + home-manager/nushell.nix | 36 +++++++++++++++++++++++++++++++ home-mandlm.nix | 1 + users.nix | 2 +- 5 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 home-manager/nushell.nix diff --git a/home-manager/direnv.nix b/home-manager/direnv.nix index 1061719..1dd2ed5 100644 --- a/home-manager/direnv.nix +++ b/home-manager/direnv.nix @@ -5,6 +5,7 @@ direnv = { enable = true; enableZshIntegration = true; + enableNushellIntegration = true; nix-direnv.enable = true; }; }; diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 92123c2..20b41c5 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -86,6 +86,7 @@ local servers = { }, }, ["marksman"] = {}, + ["nushell"] = {}, ["pylsp"] = { pylsp = { plugins = { diff --git a/home-manager/nushell.nix b/home-manager/nushell.nix new file mode 100644 index 0000000..88abfc1 --- /dev/null +++ b/home-manager/nushell.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, user, theme, ... }: +{ + programs.nushell = { + enable = true; + extraConfig = '' + let carapace_completer = {|spans| + carapace $spans.0 nushell $spans | from json + } + $env.config = { + show_banner: false, + edit_mode: vi + shell_integration: true + use_kitty_protocol: true + completions: { + case_sensitive: false # case-sensitive completions + quick: true # set to false to prevent auto-selecting completions + partial: true # set to false to prevent partial filling of the prompt + algorithm: "fuzzy" # prefix or fuzzy + external: { + # set to false to prevent nushell looking into $env.PATH to find more suggestions + enable: true + # set to lower can improve completion performance at the cost of omitting some options + max_results: 100 + completer: $carapace_completer # check 'carapace_completer' + } + } + } + $env.PATH = ($env.PATH | + split row (char esep) | + prepend /home/myuser/.apps | + append /usr/bin/env + ) + ''; + }; +} + diff --git a/home-mandlm.nix b/home-mandlm.nix index 4505896..740b487 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -49,6 +49,7 @@ ./home-manager/gpg ./home-manager/carapace.nix ./home-manager/zsh.nix + ./home-manager/nushell.nix ./home-manager/starship.nix ./home-manager/sway ./home-manager/direnv.nix diff --git a/users.nix b/users.nix index 7843422..668190c 100644 --- a/users.nix +++ b/users.nix @@ -8,7 +8,7 @@ isNormalUser = true; uid = 1000; home = "/home/mandlm"; - shell = pkgs.zsh; + shell = pkgs.nushell; extraGroups = [ "wheel" "networkmanager" "audio" "video" "input" "docker" "scanner" "lp" ]; hashedPassword = "$6$wV6dzYlgke5tN01q$rCMP/Hquss/1BgKarnZUkmejpBtjEcwmlUhbhAAmjc2Pwdbztp3yr/bD/LJ63XoZ0oD7yhTMqbECDdMqNKKDe/"; openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDI6NmrDRvDtUkeJM8cE7DvZKtiNBKUQ+30MhOX4BwWPzN2b+kM+TjZ5Dtiln+Zbk/QToCDFir+CIKHshpgtCPAvVkjmldeqqflKKUkShTjWfF2zRwEql58DGaTuJqPgMhS9ZVDI5OL6VoecSxWOLSKCqGu4R+yJJnTRBSaoHNzBsq81psYk/yty+QofbWsJktjJc2r3JSuM8UUVkCVqcYS9wd/3vW3NbkqOL7KJhktsJa6sBZfTs1Yr1lpKqJou24CE1TGwTxiZ7SASjiRzbtK7J9jJBCjZ80hgEp/Cop0caaVw7aedo6xRC26X2TSm7ljAdvcPew9m6ayxuLaV9Nz mandlm@apache" ]; From 4265578b803e55992f411328276c0501d59c2c20 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 11 Dec 2023 20:05:05 +0100 Subject: [PATCH 59/66] feat: add zoxide --- home-manager/zoxide.nix | 10 ++++++++++ home-mandlm.nix | 1 + 2 files changed, 11 insertions(+) create mode 100644 home-manager/zoxide.nix diff --git a/home-manager/zoxide.nix b/home-manager/zoxide.nix new file mode 100644 index 0000000..47c1207 --- /dev/null +++ b/home-manager/zoxide.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, user, theme, ... }: + +{ + programs.zoxide = { + enable = true; + enableNushellIntegration = true; + enableZshIntegration = true; + }; +} + diff --git a/home-mandlm.nix b/home-mandlm.nix index 740b487..39b4450 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -54,5 +54,6 @@ ./home-manager/sway ./home-manager/direnv.nix ./home-manager/bat.nix + ./home-manager/zoxide.nix ]; } From ecaa5095cf136ded5f1e920d4850f604655e7536 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 14 Dec 2023 17:07:25 +0100 Subject: [PATCH 60/66] feat: manage firefox with home-manager --- home-manager/firefox.nix | 9 +++++++++ home-mandlm.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 home-manager/firefox.nix diff --git a/home-manager/firefox.nix b/home-manager/firefox.nix new file mode 100644 index 0000000..327b21a --- /dev/null +++ b/home-manager/firefox.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, user, ... }: + +{ + programs = { + firefox = { + enable = true; + }; + }; +} diff --git a/home-mandlm.nix b/home-mandlm.nix index 39b4450..d57ee53 100644 --- a/home-mandlm.nix +++ b/home-mandlm.nix @@ -10,7 +10,6 @@ packages = with pkgs; [ unstable.eza - firefox jq htop ripgrep @@ -42,6 +41,7 @@ programs.home-manager.enable = true; imports = [ + ./home-manager/firefox.nix ./home-manager/fzf.nix ./home-manager/git.nix ./home-manager/kitty.nix From dd280068e264d0b9ae697a5d41e18c77a48bd78f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 19 Dec 2023 10:04:07 +0100 Subject: [PATCH 61/66] chore: nix flake update --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 1be6d37..b2d602e 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1702195709, - "narHash": "sha256-+zRjWkm5rKqQ57PuLZ3JF3xi3vPMiOJzItb1m/43Cq4=", + "lastModified": 1702814678, + "narHash": "sha256-zDtO0jV2QLoddUJinLlTQrQqCUW3dPiIWOSYgg98T7E=", "owner": "nix-community", "repo": "home-manager", - "rev": "6761b8188b860f374b457eddfdb05c82eef9752f", + "rev": "1488651d02c1a7a15e284210f0d380a62d8d8cef", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1701952659, - "narHash": "sha256-TJv2srXt6fYPUjxgLAL0cy4nuf1OZD4KuA1TrCiQqg0=", + "lastModified": 1702780907, + "narHash": "sha256-blbrBBXjjZt6OKTcYX1jpe9SRof2P9ZYWPzq22tzXAA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b4372c4924d9182034066c823df76d6eaf1f4ec4", + "rev": "1e2e384c5b7c50dbf8e9c441a9e58d85f408b01f", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1702151865, - "narHash": "sha256-9VAt19t6yQa7pHZLDbil/QctAgVsA66DLnzdRGqDisg=", + "lastModified": 1702830618, + "narHash": "sha256-lvhwIvRwhOLgzbRuYkqHy4M5cQHYs4ktL6/hyuBS6II=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "666fc80e7b2afb570462423cb0e1cf1a3a34fedd", + "rev": "91a00709aebb3602f172a0bf47ba1ef013e34835", "type": "github" }, "original": { From 258e5a6b0e792d983627101cbd9ba558f8252641 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 19 Dec 2023 10:04:45 +0100 Subject: [PATCH 62/66] refactor: remove obsolete zfs settings --- machines/p330/configuration.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/machines/p330/configuration.nix b/machines/p330/configuration.nix index 3313dd3..14add4f 100644 --- a/machines/p330/configuration.nix +++ b/machines/p330/configuration.nix @@ -2,8 +2,5 @@ { networking.hostName = "p330"; - networking.hostId = "05130071"; - boot.loader.grub.enableCryptodisk = true; - boot.supportedFilesystems = [ "zfs" ]; } From 44dbc88d8eb35d0ec7a104fb116cd7485b39c3bc Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Fri, 29 Dec 2023 16:06:38 +0100 Subject: [PATCH 63/66] feat: add fwupd --- configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configuration.nix b/configuration.nix index dbeb026..3fd93fa 100644 --- a/configuration.nix +++ b/configuration.nix @@ -32,6 +32,8 @@ ''; }; + services.fwupd.enable = true; + services.gnome.gnome-keyring.enable = true; services.resolved.enable = true; From b35f0aa0da4eba3191fba810414e9f1415742250 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 9 Jan 2024 08:28:01 +0100 Subject: [PATCH 64/66] chore: nix flake update --- flake.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index b2d602e..4472ee2 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1702814678, - "narHash": "sha256-zDtO0jV2QLoddUJinLlTQrQqCUW3dPiIWOSYgg98T7E=", + "lastModified": 1704099619, + "narHash": "sha256-QRVMkdxLmv+aKGjcgeEg31xtJEIsYq4i1Kbyw5EPS6g=", "owner": "nix-community", "repo": "home-manager", - "rev": "1488651d02c1a7a15e284210f0d380a62d8d8cef", + "rev": "7e398b3d76bc1503171b1364c9d4a07ac06f3851", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1702780907, - "narHash": "sha256-blbrBBXjjZt6OKTcYX1jpe9SRof2P9ZYWPzq22tzXAA=", + "lastModified": 1704420045, + "narHash": "sha256-C36QmoJd5tdQ5R9MC1jM7fBkZW9zBUqbUCsgwS6j4QU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1e2e384c5b7c50dbf8e9c441a9e58d85f408b01f", + "rev": "c1be43e8e837b8dbee2b3665a007e761680f0c3d", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1702830618, - "narHash": "sha256-lvhwIvRwhOLgzbRuYkqHy4M5cQHYs4ktL6/hyuBS6II=", + "lastModified": 1704538339, + "narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "91a00709aebb3602f172a0bf47ba1ef013e34835", + "rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701", "type": "github" }, "original": { From 76062fc63f1446a1857177cd09c3616b81eda5ad Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 9 Jan 2024 08:28:34 +0100 Subject: [PATCH 65/66] feat: enable digital camera user-support --- configuration.nix | 1 + users.nix | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 3fd93fa..d4293c7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -43,6 +43,7 @@ programs = { appgate-sdp.enable = true; zsh.enable = true; + gphoto2.enable = true; }; virtualisation.docker.enable = true; diff --git a/users.nix b/users.nix index 668190c..fbc8c2f 100644 --- a/users.nix +++ b/users.nix @@ -9,7 +9,17 @@ uid = 1000; home = "/home/mandlm"; shell = pkgs.nushell; - extraGroups = [ "wheel" "networkmanager" "audio" "video" "input" "docker" "scanner" "lp" ]; + extraGroups = [ + "wheel" + "networkmanager" + "audio" + "video" + "input" + "docker" + "scanner" + "lp" + "camera" + ]; hashedPassword = "$6$wV6dzYlgke5tN01q$rCMP/Hquss/1BgKarnZUkmejpBtjEcwmlUhbhAAmjc2Pwdbztp3yr/bD/LJ63XoZ0oD7yhTMqbECDdMqNKKDe/"; openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDI6NmrDRvDtUkeJM8cE7DvZKtiNBKUQ+30MhOX4BwWPzN2b+kM+TjZ5Dtiln+Zbk/QToCDFir+CIKHshpgtCPAvVkjmldeqqflKKUkShTjWfF2zRwEql58DGaTuJqPgMhS9ZVDI5OL6VoecSxWOLSKCqGu4R+yJJnTRBSaoHNzBsq81psYk/yty+QofbWsJktjJc2r3JSuM8UUVkCVqcYS9wd/3vW3NbkqOL7KJhktsJa6sBZfTs1Yr1lpKqJou24CE1TGwTxiZ7SASjiRzbtK7J9jJBCjZ80hgEp/Cop0caaVw7aedo6xRC26X2TSm7ljAdvcPew9m6ayxuLaV9Nz mandlm@apache" ]; }; From af9a0ec6d0496bc942350193c0159b70fad1569c Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 9 Jan 2024 09:11:19 +0100 Subject: [PATCH 66/66] feat(nvim): replace discontinued rust-tools.nvim with rustaceanvim --- home-manager/neovim/default.nix | 3 ++- home-manager/neovim/lspconfig.lua | 18 +++++++----------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/home-manager/neovim/default.nix b/home-manager/neovim/default.nix index 9fa62e2..390e874 100644 --- a/home-manager/neovim/default.nix +++ b/home-manager/neovim/default.nix @@ -97,10 +97,11 @@ # LSP nvim-lspconfig lsp-status-nvim - rust-tools-nvim + rustaceanvim neodev-nvim null-ls-nvim lsp_lines-nvim + lsp-inlayhints-nvim # debugging nvim-dap diff --git a/home-manager/neovim/lspconfig.lua b/home-manager/neovim/lspconfig.lua index 20b41c5..e767caf 100644 --- a/home-manager/neovim/lspconfig.lua +++ b/home-manager/neovim/lspconfig.lua @@ -15,6 +15,8 @@ local on_attach = function(client, bufnr) }) end + require("lsp-inlayhints").on_attach(client, bufnr) + local telescope = require("telescope.builtin") nnoremap("gD", vim.lsp.buf.declaration) @@ -40,6 +42,8 @@ local on_attach = function(client, bufnr) end end +require("lsp-inlayhints").setup({}) + local lsp_status = require("lsp-status") lsp_status.config({ current_function = false, @@ -118,12 +122,8 @@ for lsp, settings in pairs(servers) do }) end --- setup rust tools -local codelldb_base_path = vim.env.HOME .. "/.vscode-extensions/vscode-lldb/share/vscode/extensions/vadimcn.vscode-lldb/" -local codelldb_bin_path = codelldb_base_path .. 'adapter/codelldb' -local codelldb_lib_path = codelldb_base_path .. 'lldb/lib/liblldb.so' - -require("rust-tools").setup({ +-- setup rustaceanvim +vim.g.rustaceanvim = { server = { on_attach = on_attach, settings = { @@ -137,12 +137,8 @@ require("rust-tools").setup({ }, }, }, - capabilities = capabilities, }, - dap = { - adapter = require("rust-tools.dap").get_codelldb_adapter(codelldb_bin_path, codelldb_lib_path) - }, -}) +} -- setup null-ls for markdown formatting local null_ls = require("null-ls")