small changes

This commit is contained in:
jacekpoz 2023-07-20 13:15:20 +02:00
parent cced77b014
commit c55e8210e8
5 changed files with 21 additions and 5 deletions

View file

@ -16,10 +16,7 @@
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
hyprland-plugins.url = "github:hyprwm/hyprland-plugins"; hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
split-monitor-workspaces = { split-monitor-workspaces.url = "github:jacekpoz/split-monitor-workspaces";
url = "github:jacekpoz/split-monitor-workspaces";
inputs.nixpkgs.follows = "hyprland";
};
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";

View file

@ -43,6 +43,7 @@
workspace = special:btop, allpseudo workspace = special:btop, allpseudo
workspace = special:amdgpu_top, allpseudo workspace = special:amdgpu_top, allpseudo
workspace = special:helvum, allpseudo workspace = special:helvum, allpseudo
workspace = special:nixos, allpseudo
input { input {
kb_layout=pl kb_layout=pl
@ -211,6 +212,7 @@
bind = SUPER, B, togglespecialworkspace, btop bind = SUPER, B, togglespecialworkspace, btop
bind = SUPER, A, togglespecialworkspace, amdgpu_top bind = SUPER, A, togglespecialworkspace, amdgpu_top
bind = SUPER, V, togglespecialworkspace, helvum bind = SUPER, V, togglespecialworkspace, helvum
bind = SUPER, N, togglespecialworkspace, nixos
bindm = SUPER, mouse:272, movewindow bindm = SUPER, mouse:272, movewindow
@ -230,6 +232,7 @@
exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 0 exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 0
exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 1 exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 1
exec=[workspace special:helvum silent] helvum exec=[workspace special:helvum silent] helvum
exec-once=[workspace special:nixos silent;tile] cd niksos; foot nvim
exec-once=foot --server exec-once=foot --server
exec-once=hyprctl setcursor Bibata-Modern-Classic 24 exec-once=hyprctl setcursor Bibata-Modern-Classic 24

View file

@ -128,7 +128,6 @@ in
}; };
}; };
blueman.enable = true; blueman.enable = true;
mullvad-vpn.enable = true;
}; };
hardware = { hardware = {

View file

@ -2,5 +2,6 @@ _: {
imports = [ imports = [
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
./mullvad.nix
]; ];
} }

16
hosts/niks/mullvad.nix Normal file
View file

@ -0,0 +1,16 @@
{
config,
pkgs,
...
}: {
services.mullvad-vpn.enable = true;
systemd.services."mullvad-daemon".postStart = let
mullvad = config.services.mullvad-vpn.package;
in ''
while ! ${mullvad}/bin/mullvad status > /dev/null; do sleep 1; done
${mullvad}/bin/mullvad auto-connect set on
${mullvad}/bin/mullvad tunnel ipv6 set on
${mullvad}/bin/mullvad set default --block-ads --block-trackers --block-malware
'';
}