nix-configs/hosts/potatobook-g/configuration.nix

106 lines
2.4 KiB
Nix
Raw Normal View History

{pkgs, ...}: {
2022-12-13 18:57:27 +01:00
nix.settings = {
trusted-substituters = [
"https://t2linux.cachix.org"
];
trusted-public-keys = [
"t2linux.cachix.org-1:P733c5Gt1qTcxsm+Bae0renWnT8OLs0u9+yfaK2Bejw="
];
};
2022-08-31 22:49:48 +02:00
imports = [
./hardware-configuration.nix
../../common.nix
../../modules
2022-08-31 22:49:48 +02:00
];
boot.binfmt.emulatedSystems = ["aarch64-linux"];
2022-08-31 22:49:48 +02:00
jade = {
flatpak.enable = true;
2023-02-13 12:54:21 +01:00
desktop = {
compositing.enable = true;
syncthing.enable = true;
kdeconnect.enable = true;
cloud.enable = true;
social.enable = true;
2023-02-26 21:50:52 +01:00
mail.enable = true;
2024-01-30 19:47:11 +01:00
gaming.enable = true;
evremap.enable = true;
2023-02-13 12:54:21 +01:00
};
2022-09-01 19:48:22 +02:00
terminal.enable = true;
2022-08-31 22:49:48 +02:00
};
2022-09-02 10:33:55 +02:00
fileSystems = {
"/".options = ["compress=zstd:3"];
"/home".options = ["compress=zstd:3"];
"/nix".options = ["compress=zstd:3" "noatime"];
2022-09-02 10:33:55 +02:00
};
2022-09-01 09:03:08 +02:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2022-09-01 01:35:08 +02:00
2024-05-06 21:32:14 +02:00
services.libinput.touchpad = {
disableWhileTyping = true;
};
2022-08-31 22:49:48 +02:00
networking.hostName = "potatobook-g";
2022-09-01 19:48:22 +02:00
services.autorandr = {
enable = true;
profiles = {
"default" = {
config = {
2022-09-26 12:57:45 +02:00
"eDP-1" = {
enable = true;
mode = "1920x1200";
};
};
2022-09-01 19:48:22 +02:00
};
};
};
2023-04-10 17:54:39 +02:00
hardware.enableRedistributableFirmware = true;
2022-08-31 22:49:48 +02:00
environment.systemPackages = with pkgs; [
android-tools
2022-08-31 22:49:48 +02:00
];
environment.pathsToLink = [
"/share/nix-direnv"
];
services.blueman.enable = true;
2023-04-10 17:54:39 +02:00
programs.adb.enable = true;
2022-08-31 22:49:48 +02:00
services.gnome.gnome-keyring.enable = true;
programs.seahorse.enable = true;
security.pam.services.jade.enableGnomeKeyring = true;
systemd.services."NetworkManager-wait-online".enable = false;
2022-09-26 19:30:27 +02:00
systemd.services = {
create-swapfile = {
serviceConfig.Type = "oneshot";
wantedBy = ["swap-swapfile.swap"];
2022-09-26 19:30:27 +02:00
script = ''
swapfile="/swap/swapfile"
if [[ -f "$swapfile" ]]; then
echo "Swap file $swapfile already exists, taking no action"
else
echo "Setting up swap file $swapfile"
${pkgs.coreutils}/bin/truncate -s 0 "$swapfile"
${pkgs.e2fsprogs}/bin/chattr +C "$swapfile"
fi
'';
};
};
2022-12-13 18:57:27 +01:00
services.logind.extraConfig = ''
RuntimeDirectorySize=12G
'';
2023-05-22 19:01:27 +02:00
# i rly should put that important big comment back here
system.stateVersion = "22.11"; # Did you read the comment?
2022-08-31 22:49:48 +02:00
}