2024-03-02 03:13:17 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2020-04-11 21:47:33 +00:00
|
|
|
|
|
|
|
{
|
2024-02-15 23:45:15 +00:00
|
|
|
imports = [
|
2024-03-28 19:55:28 +00:00
|
|
|
inputs.lix-module.nixosModules.default
|
2024-02-15 23:45:15 +00:00
|
|
|
inputs.private.nixosModules.base
|
|
|
|
inputs.private.nixosModules.substituter
|
|
|
|
];
|
2023-11-26 07:30:29 +00:00
|
|
|
|
2020-11-17 01:51:13 +00:00
|
|
|
nix = {
|
2024-02-09 22:12:06 +00:00
|
|
|
settings = {
|
|
|
|
auto-optimise-store = true;
|
2024-03-02 03:13:17 +00:00
|
|
|
experimental-features = [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
"ca-derivations"
|
|
|
|
];
|
2024-02-09 22:12:06 +00:00
|
|
|
use-xdg-base-directories = true;
|
|
|
|
};
|
|
|
|
|
2020-11-17 01:51:13 +00:00
|
|
|
gc = {
|
|
|
|
automatic = true;
|
2023-11-26 07:30:29 +00:00
|
|
|
dates = "8:00";
|
2020-11-17 01:51:13 +00:00
|
|
|
options = "--delete-older-than 14d";
|
|
|
|
};
|
|
|
|
};
|
2020-04-11 21:47:33 +00:00
|
|
|
|
2023-12-02 01:21:16 +00:00
|
|
|
nixpkgs = {
|
2024-03-02 03:13:17 +00:00
|
|
|
overlays = [
|
|
|
|
inputs.artemist.overlays.default
|
|
|
|
inputs.fonts.overlays.default
|
2024-05-14 02:39:14 +00:00
|
|
|
(final: prev: {
|
|
|
|
nheko = prev.nheko.overrideAttrs (attrs: {
|
|
|
|
patches =
|
|
|
|
attrs.patches
|
|
|
|
++ (with final; [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "custom-reactions-display.patch";
|
|
|
|
url = "https://github.com/Nheko-Reborn/nheko/commit/2f1b3519d38c99ded45c1a9d9e86f5d4dd961238.patch";
|
|
|
|
hash = "sha256-1/7jisXw+VfC65SeDC15yVuHqx01OJlJkOVGeIiLeN4=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "custom-reactions-history.patch";
|
|
|
|
url = "https://github.com/Nheko-Reborn/nheko/commit/1994ea634eab69478cfdf1da37cbb9de62dbe595.patch";
|
|
|
|
hash = "sha256-P3nG9s4TWBwcEmEJlTpFsM4QQbRYNGmcRC4zZW8Zj4Y=";
|
|
|
|
})
|
|
|
|
]);
|
|
|
|
});
|
|
|
|
})
|
2024-03-02 03:13:17 +00:00
|
|
|
];
|
|
|
|
config.allowUnfreePredicate =
|
|
|
|
pkg:
|
2023-12-20 19:06:40 +00:00
|
|
|
(pkg ? passthru && pkg.passthru ? font && pkg.passthru.font)
|
|
|
|
|| (builtins.elem (lib.getName pkg) [
|
2023-12-02 01:21:16 +00:00
|
|
|
"1password"
|
|
|
|
"brscan5"
|
|
|
|
"brscan5-etc-files"
|
2024-01-31 00:26:31 +00:00
|
|
|
"celeste64"
|
2023-12-02 01:21:16 +00:00
|
|
|
"corefonts"
|
|
|
|
"google-chrome"
|
|
|
|
"jlink"
|
|
|
|
"makemkv"
|
|
|
|
"steam"
|
|
|
|
"steam-jupiter-original"
|
|
|
|
"steam-original"
|
|
|
|
"steam-run"
|
2024-01-31 00:26:31 +00:00
|
|
|
"steamdeck-hw-theme"
|
2024-04-22 19:29:39 +00:00
|
|
|
"uhk-agent"
|
|
|
|
"uhk-udev-rules"
|
2023-12-02 01:21:16 +00:00
|
|
|
"unrar"
|
2023-12-20 19:06:40 +00:00
|
|
|
]);
|
2023-12-02 01:21:16 +00:00
|
|
|
};
|
|
|
|
|
2020-11-17 01:51:13 +00:00
|
|
|
console = {
|
|
|
|
keyMap = "us";
|
|
|
|
earlySetup = true;
|
|
|
|
};
|
2020-04-11 21:47:33 +00:00
|
|
|
|
2020-11-17 01:51:13 +00:00
|
|
|
time.timeZone = "Etc/UTC";
|
2021-01-10 06:27:22 +00:00
|
|
|
environment.shellAliases.cp = "cp --reflink=auto --sparse=always";
|
2020-11-17 01:51:13 +00:00
|
|
|
networking.firewall.enable = false;
|
2021-01-10 06:27:22 +00:00
|
|
|
programs.fish.enable = true;
|
2020-04-11 21:47:33 +00:00
|
|
|
|
|
|
|
users = {
|
|
|
|
users.artemis = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Artemis Tosini";
|
|
|
|
uid = 1000;
|
2024-03-02 03:13:17 +00:00
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"artemis"
|
|
|
|
];
|
2021-11-20 00:34:44 +00:00
|
|
|
shell = pkgs.fish;
|
2020-04-11 21:47:33 +00:00
|
|
|
# hashedPassword set in private
|
|
|
|
};
|
2020-12-02 19:35:35 +00:00
|
|
|
groups.artemis.gid = config.users.users.artemis.uid;
|
2020-04-11 21:47:33 +00:00
|
|
|
mutableUsers = false;
|
|
|
|
};
|
2022-01-27 16:19:56 +00:00
|
|
|
|
2024-05-04 00:25:30 +00:00
|
|
|
security.sudo.execWheelOnly = true;
|
2022-01-27 16:19:56 +00:00
|
|
|
|
2020-04-11 21:47:33 +00:00
|
|
|
systemd.extraConfig = "DefaultLimitCORE=infinity";
|
2024-03-02 03:13:17 +00:00
|
|
|
security.pam.loginLimits = [
|
|
|
|
{
|
|
|
|
domain = "*";
|
|
|
|
item = "core";
|
|
|
|
type = "hard";
|
|
|
|
value = "infinity";
|
|
|
|
}
|
|
|
|
];
|
2020-04-11 21:47:33 +00:00
|
|
|
}
|