2023-11-26 20:26:49 +00:00
|
|
|
{pkgs, ...}: {
|
2022-12-13 17:57:27 +00:00
|
|
|
nix.settings = {
|
|
|
|
trusted-substituters = [
|
|
|
|
"https://t2linux.cachix.org"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"t2linux.cachix.org-1:P733c5Gt1qTcxsm+Bae0renWnT8OLs0u9+yfaK2Bejw="
|
|
|
|
];
|
|
|
|
};
|
2022-08-31 20:49:48 +00:00
|
|
|
imports = [
|
2023-11-26 20:26:49 +00:00
|
|
|
./hardware-configuration.nix
|
|
|
|
../../common.nix
|
|
|
|
../../modules
|
|
|
|
#inputs.mms.module
|
2022-08-31 20:49:48 +00:00
|
|
|
];
|
|
|
|
|
2023-05-12 14:21:05 +00:00
|
|
|
#nixpkgs = {
|
2023-11-26 20:26:49 +00:00
|
|
|
#overlays = [
|
|
|
|
#(self: super: {
|
|
|
|
#linux_zen_xeniafied = pkgs.linuxPackagesFor (pkgs.linuxKernel.kernels.linux_zen.override {
|
|
|
|
#structuredExtraConfig = with lib.kernel; {
|
|
|
|
##"FB" = yes;
|
|
|
|
##"FRAMEBUFFER_CONSOLE" = yes;
|
|
|
|
##"VGA_CONSOLE" = yes;
|
|
|
|
##"VIDEO_SELECT" = yes;
|
|
|
|
#LOGO = lib.mkForce yes;
|
|
|
|
#LOGO_LINUX_CLUT224 = yes;
|
2023-05-12 14:21:05 +00:00
|
|
|
#};
|
2023-11-26 20:26:49 +00:00
|
|
|
#ignoreConfigErrors = true;
|
|
|
|
#});
|
|
|
|
#})
|
|
|
|
#];
|
|
|
|
#};
|
|
|
|
#boot.kernelPatches = [
|
|
|
|
#{
|
|
|
|
#name = "fomx";
|
|
|
|
#patch = ../other/0001-fomx.patch;
|
|
|
|
#}
|
2023-05-12 14:21:05 +00:00
|
|
|
#];
|
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
2023-04-12 12:14:47 +00:00
|
|
|
|
2022-08-31 20:49:48 +00:00
|
|
|
jade = {
|
2023-02-03 16:43:17 +00:00
|
|
|
flatpak.enable = true;
|
2023-02-13 11:54:21 +00:00
|
|
|
desktop = {
|
|
|
|
compositing.enable = true;
|
|
|
|
syncthing.enable = true;
|
|
|
|
kdeconnect.enable = true;
|
|
|
|
cloud.enable = true;
|
|
|
|
social.enable = true;
|
2023-02-26 20:50:52 +00:00
|
|
|
mail.enable = true;
|
2024-01-30 18:47:11 +00:00
|
|
|
gaming.enable = true;
|
|
|
|
evremap.enable = true;
|
2023-02-13 11:54:21 +00:00
|
|
|
};
|
2022-09-01 17:48:22 +00:00
|
|
|
terminal.enable = true;
|
2022-08-31 20:49:48 +00:00
|
|
|
};
|
|
|
|
|
2022-09-02 08:33:55 +00:00
|
|
|
fileSystems = {
|
2023-11-26 20:26:49 +00:00
|
|
|
"/".options = ["compress=zstd:3"];
|
|
|
|
"/home".options = ["compress=zstd:3"];
|
|
|
|
"/nix".options = ["compress=zstd:3" "noatime"];
|
2022-09-02 08:33:55 +00:00
|
|
|
#"/swap".options = [ "noatime" ];
|
|
|
|
};
|
|
|
|
|
2022-09-01 07:03:08 +00:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2022-08-31 23:35:08 +00:00
|
|
|
|
2024-02-02 21:25:27 +00:00
|
|
|
services.xserver.libinput.touchpad.disableWhileTyping = true;
|
2024-02-06 18:33:09 +00:00
|
|
|
services.xserver.libinput.touchpad.tapping = false;
|
2024-02-02 21:25:27 +00:00
|
|
|
|
2022-09-01 07:03:08 +00:00
|
|
|
networking.networkmanager.enable = true;
|
2022-08-31 20:49:48 +00:00
|
|
|
|
|
|
|
networking.hostName = "potatobook-g";
|
|
|
|
|
2022-09-01 17:48:22 +00:00
|
|
|
services.xserver = {
|
2023-11-26 20:26:49 +00:00
|
|
|
resolutions = [
|
|
|
|
{
|
|
|
|
x = 1920;
|
|
|
|
y = 1200;
|
|
|
|
}
|
|
|
|
];
|
2022-09-01 17:48:22 +00:00
|
|
|
# dpi = 180;
|
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "altgr-intl";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.autorandr = {
|
|
|
|
enable = true;
|
|
|
|
profiles = {
|
|
|
|
"default" = {
|
|
|
|
config = {
|
2022-09-26 10:57:45 +00:00
|
|
|
"eDP-1" = {
|
|
|
|
enable = true;
|
|
|
|
mode = "1920x1200";
|
|
|
|
};
|
|
|
|
};
|
2022-09-01 17:48:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-13 20:22:25 +00:00
|
|
|
# hardware.keyboard.uhk.enable = true;
|
2023-04-10 15:54:39 +00:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
2022-08-31 20:49:48 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-11-26 20:26:49 +00:00
|
|
|
android-tools
|
2022-08-31 20:49:48 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
environment.pathsToLink = [
|
|
|
|
"/share/nix-direnv"
|
|
|
|
];
|
|
|
|
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
2023-04-10 15:54:39 +00:00
|
|
|
programs.adb.enable = true;
|
|
|
|
|
2022-08-31 20:49:48 +00:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
programs.seahorse.enable = true;
|
|
|
|
security.pam.services.jade.enableGnomeKeyring = true;
|
2024-02-06 18:33:09 +00:00
|
|
|
security.pam.services.jade.u2fAuth = true;
|
2022-08-31 20:49:48 +00:00
|
|
|
|
|
|
|
systemd.services."NetworkManager-wait-online".enable = false;
|
2024-02-06 18:33:09 +00:00
|
|
|
programs.i3lock.u2fSupport = true;
|
|
|
|
|
|
|
|
security.pam.u2f = {
|
|
|
|
enable = true;
|
|
|
|
cue = true;
|
|
|
|
control = "sufficient";
|
|
|
|
authFile = "/home/jade/.ssh/u2f_keys";
|
|
|
|
};
|
2022-08-31 20:49:48 +00:00
|
|
|
|
2023-11-26 20:26:49 +00:00
|
|
|
# services.pixiecore =
|
2023-07-29 15:19:17 +00:00
|
|
|
# let
|
|
|
|
# nixpkgs = builtins.getFlake "nixpkgs/nixos-unstable";
|
|
|
|
# sys = nixpkgs.lib.nixosSystem {
|
|
|
|
# system = "x86_64-linux";
|
|
|
|
# modules = [
|
|
|
|
# ({config, pkgs, lib, modulesPath, ...}: {
|
|
|
|
# imports = [
|
|
|
|
# (modulesPath + "/installer/netboot/netboot-base.nix")
|
|
|
|
# ];
|
|
|
|
|
|
|
|
# services.getty.autologinUser = lib.mkForce "root";
|
|
|
|
# console.keyMap = "de";
|
|
|
|
|
|
|
|
# system.stateVersion = config.system.nixos.release;
|
|
|
|
# environment.systemPackages = with pkgs; [
|
|
|
|
# helix nil git neofetch
|
|
|
|
# ];
|
|
|
|
|
|
|
|
# programs = {
|
|
|
|
# zsh = {
|
|
|
|
# enable = true;
|
|
|
|
# enableCompletion = true;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# })
|
|
|
|
# ];
|
|
|
|
# };
|
|
|
|
# build = sys.config.system.build;
|
|
|
|
# in {
|
|
|
|
# enable = true;
|
|
|
|
# openFirewall = true;
|
|
|
|
# kernel = "${build.kernel}/bzImage";
|
|
|
|
# initrd = "${build.netbootRamdisk}/initrd";
|
|
|
|
# cmdLine = "init=${build.toplevel}/init loglevel=4";
|
|
|
|
# };
|
2022-09-26 17:30:27 +00:00
|
|
|
|
|
|
|
systemd.services = {
|
|
|
|
create-swapfile = {
|
|
|
|
serviceConfig.Type = "oneshot";
|
2023-11-26 20:26:49 +00:00
|
|
|
wantedBy = ["swap-swapfile.swap"];
|
2022-09-26 17:30:27 +00: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 17:57:27 +00:00
|
|
|
services.logind.extraConfig = ''
|
|
|
|
RuntimeDirectorySize=12G
|
|
|
|
'';
|
|
|
|
|
2023-05-22 17:01:27 +00:00
|
|
|
# i rly should put that important big comment back here
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
2022-08-31 20:49:48 +00:00
|
|
|
}
|