update
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
# Optimization
|
||||
nix = {
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
@@ -29,7 +30,17 @@
|
||||
automatic = true;
|
||||
dates = [ "weekly" ];
|
||||
};
|
||||
settings.experimental-features = [ "nix-command" "flakes"];
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes"];
|
||||
substituters = [
|
||||
"https://cache.nixos.org"
|
||||
"https://attic.xuyh0120.win/lantian" # xddxdd's cache
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Bootloader.
|
||||
@@ -45,7 +56,7 @@
|
||||
"udev.log_level=3"
|
||||
"systemd.show_status=auto"
|
||||
];
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest; #pkgs.linuxPackages_zen;
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "lone";
|
||||
@@ -56,6 +67,10 @@
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
# Binary cache
|
||||
|
||||
|
||||
# Enable "Silent boot"
|
||||
#consoleLogLevel = 3;
|
||||
@@ -72,7 +87,7 @@
|
||||
hostName = "peceli";
|
||||
firewall.enable = true;
|
||||
networkmanager.enable = true;
|
||||
firewall.allowedTCPPorts = [ 9943 9944 22000 53317 ];
|
||||
firewall.allowedTCPPorts = [ 9943 9944 22000 53317 25565 ];
|
||||
firewall.allowedUDPPorts = [ 9943 9944 53317 ];
|
||||
};
|
||||
|
||||
@@ -94,12 +109,11 @@
|
||||
#User config
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
groups.wireshark.gid = 500;
|
||||
users = {
|
||||
robin = {
|
||||
isNormalUser = true;
|
||||
description = "robin";
|
||||
extraGroups = [ "audio" "wireshark" "libvirtd" "networkmanager" "wheel" "docker"];
|
||||
extraGroups = [ "audio" "libvirtd" "networkmanager" "wheel" "docker" "gamemode"];
|
||||
packages = with pkgs; [
|
||||
flatpak
|
||||
];
|
||||
@@ -134,7 +148,6 @@
|
||||
|
||||
#Programs
|
||||
programs = {
|
||||
wireshark.enable = true;
|
||||
virt-manager.enable = true;
|
||||
kdeconnect.enable = true;
|
||||
noisetorch.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user