Mon Jun 3 02:00:07 AM CEST 2024
This commit is contained in:
parent
c72b114ee2
commit
699b39f4a7
14
flake.nix
14
flake.nix
|
@ -37,7 +37,12 @@
|
|||
{ nixpkgs.overlays = [ nur.overlay ]; }
|
||||
{
|
||||
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;
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
|
@ -45,6 +50,13 @@
|
|||
substituters = [ "https://hyprland.cachix.org" ];
|
||||
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 2d";
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
./firefox
|
||||
./ssh
|
||||
];
|
||||
|
||||
services.hyprpaper = {
|
||||
settings = {
|
||||
wallpaper = [
|
||||
|
@ -21,6 +20,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
gtk.iconTheme = {
|
||||
name = "Papirus";
|
||||
gtk.iconTheme.package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
programs.waybar = {
|
||||
settings = {
|
||||
mainBar = {
|
||||
|
|
|
@ -8,6 +8,7 @@ let
|
|||
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
||||
hyprpaper = "${pkgs.hyprpaper}/bin/hyprpaper";
|
||||
firefox = "${pkgs.firefox}/bin/firefox";
|
||||
nautilus = "${pkgs.gnome.nautilus}/bin/nautilus";
|
||||
waybar = "${inputs.waybar.packages.${pkgs.system}.waybar}/bin/waybar";
|
||||
wpctl = "${pkgs.wireplumber}/bin/wpctl";
|
||||
alacritty = "${pkgs.alacritty}/bin/alacritty";
|
||||
|
@ -206,7 +207,7 @@ in
|
|||
"$mainMod, return, exec, ${launch_alacritty}/bin/launch_alacritty $(hyprctl activewindow -j | ${jq} .pid)"
|
||||
"$mainMod SHIFT, return, exec, ${alacritty}"
|
||||
"$mainMod, Q, killactive,"
|
||||
"$mainMod, A, exec, nautilus"
|
||||
"$mainMod, A, exec, ${nautilus}"
|
||||
"$mainMod, S, exec, gnome-calendar"
|
||||
"$mainMod, B, exec, MOZ_ENABLE_WAYLAND=1 ${firefox}"
|
||||
"$mainMod, M, fullscreen, 1"
|
||||
|
|
|
@ -3,4 +3,52 @@
|
|||
{
|
||||
services.pcscd.enable = true;
|
||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||
services.logind.extraConfig = ''
|
||||
# don’t 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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue