Compare commits

...

6 Commits

2 changed files with 33 additions and 1 deletions

View File

@ -21,6 +21,7 @@
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmpOnTmpfs = true;
boot.plymouth.enable = true;
hardware.bumblebee.enable = true;
@ -74,10 +75,16 @@
gcc
nix-index
appimage-run
bat
wireguard
nfsUtils
gopass
xclip
electrum
electron-cash
firefox
chromium
torbrowser
@ -100,6 +107,9 @@
gwenview
kcalc
spectacle
kile
texlive.combined.scheme-full
imagemagick
gnome-breeze
arc-theme
@ -158,8 +168,24 @@
# Or disable the firewall altogether.
networking.firewall.enable = false;
networking.wireguard.interfaces = {
wg0 = {
ips = [ "192.168.20.2/24" ];
allowedIPsAsRoutes = false;
peers = [
{
allowedIPs = [ "0.0.0.0/0" ];
endpoint = "nyanlout.re:51820";
publicKey = "NVLJ30kNP+fK+K3oM1LAcQpvZvz1dvBD8mWNjDf5Z2k=";
}
];
privateKeyFile = "/var/lib/wireguard/wg0.privatekey";
};
};
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = [ pkgs.hplip ];
# Enable sound.
sound.enable = true;
@ -191,7 +217,7 @@
programs.zsh.enableCompletion = true;
programs.zsh.syntaxHighlighting.enable = true;
programs.zsh.ohMyZsh.enable = true;
programs.zsh.ohMyZsh.plugins = [ "git" "colored-man-pages" "command-not-found" "extract" "nyan" ];
programs.zsh.ohMyZsh.plugins = [ "git" "colored-man-pages" "command-not-found" "extract" ];
programs.zsh.ohMyZsh.theme = "bureau";
nix.gc.automatic = true;

View File

@ -22,6 +22,12 @@
fsType = "vfat";
};
fileSystems."/mnt/medias_loutreos" = {
device = "192.168.20.1:/mnt/medias";
fsType = "nfs";
options = ["x-systemd.automount" "noauto"];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/156cd5e8-715c-48a5-9df4-14565227a6c9"; }
];