Mon Jun 3 02:00:07 AM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-03 02:00:07 +02:00
parent c72b114ee2
commit 699b39f4a7
4 changed files with 67 additions and 3 deletions

View File

@ -37,7 +37,12 @@
{ nixpkgs.overlays = [ nur.overlay ]; } { nixpkgs.overlays = [ nur.overlay ]; }
{ {
networking.hostName = host; networking.hostName = host;
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot = {
enable = true;
memtest86.enable = true;
netbootxyz.enable = true;
};
boot.loader.timeout = 1;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "Europe/Brussels"; time.timeZone = "Europe/Brussels";
@ -45,6 +50,13 @@
substituters = [ "https://hyprland.cachix.org" ]; substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ]; trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 2d";
}; };
programs.zsh.enable = true; programs.zsh.enable = true;

View File

@ -10,7 +10,6 @@
./firefox ./firefox
./ssh ./ssh
]; ];
services.hyprpaper = { services.hyprpaper = {
settings = { settings = {
wallpaper = [ wallpaper = [
@ -21,6 +20,10 @@
}; };
}; };
gtk.iconTheme = {
name = "Papirus";
gtk.iconTheme.package = pkgs.papirus-icon-theme;
};
programs.waybar = { programs.waybar = {
settings = { settings = {
mainBar = { mainBar = {

View File

@ -8,6 +8,7 @@ let
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste"; wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
hyprpaper = "${pkgs.hyprpaper}/bin/hyprpaper"; hyprpaper = "${pkgs.hyprpaper}/bin/hyprpaper";
firefox = "${pkgs.firefox}/bin/firefox"; firefox = "${pkgs.firefox}/bin/firefox";
nautilus = "${pkgs.gnome.nautilus}/bin/nautilus";
waybar = "${inputs.waybar.packages.${pkgs.system}.waybar}/bin/waybar"; waybar = "${inputs.waybar.packages.${pkgs.system}.waybar}/bin/waybar";
wpctl = "${pkgs.wireplumber}/bin/wpctl"; wpctl = "${pkgs.wireplumber}/bin/wpctl";
alacritty = "${pkgs.alacritty}/bin/alacritty"; alacritty = "${pkgs.alacritty}/bin/alacritty";
@ -206,7 +207,7 @@ in
"$mainMod, return, exec, ${launch_alacritty}/bin/launch_alacritty $(hyprctl activewindow -j | ${jq} .pid)" "$mainMod, return, exec, ${launch_alacritty}/bin/launch_alacritty $(hyprctl activewindow -j | ${jq} .pid)"
"$mainMod SHIFT, return, exec, ${alacritty}" "$mainMod SHIFT, return, exec, ${alacritty}"
"$mainMod, Q, killactive," "$mainMod, Q, killactive,"
"$mainMod, A, exec, nautilus" "$mainMod, A, exec, ${nautilus}"
"$mainMod, S, exec, gnome-calendar" "$mainMod, S, exec, gnome-calendar"
"$mainMod, B, exec, MOZ_ENABLE_WAYLAND=1 ${firefox}" "$mainMod, B, exec, MOZ_ENABLE_WAYLAND=1 ${firefox}"
"$mainMod, M, fullscreen, 1" "$mainMod, M, fullscreen, 1"

View File

@ -3,4 +3,52 @@
{ {
services.pcscd.enable = true; services.pcscd.enable = true;
services.udev.packages = [ pkgs.yubikey-personalization ]; services.udev.packages = [ pkgs.yubikey-personalization ];
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=suspend
'';
environment.systemPackages = with pkgs; [
wireguard-tools
];
networking.wg-quick.interfaces = {
wg0 = {
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
privateKeyFile = "/home/user/.secrets/Wireguard/wg0.key";
listenPort = 51820;
peers = [
{
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
allowedIPs = [ "10.0.0.1/8" ];
endpoint = "192.168.1.1:13231";
}
];
};
};
fileSystems."/home/server" = {
device = "192.168.1.2:/home/server";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
};
fileSystems."/home/user/Workspace" = {
device = "192.168.1.2:/home/server/Workspace";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
};
fileSystems."/home/user/Documents" = {
device = "192.168.1.2:/home/server/Storage/Thomas/Documents";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
};
fileSystems."/home/user/Pictures" = {
device = "192.168.1.2:/home/server/Storage/Thomas/Pictures";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
};
fileSystems."/home/user/Videos" = {
device = "192.168.1.2:/home/server/Storage/Thomas/Videos";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
};
} }