52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
|
{nixpkgs, ...}: {
|
||
|
imports = [
|
||
|
./hardware-configuration.nix
|
||
|
];
|
||
|
|
||
|
# Don't change!
|
||
|
system.stateVersion = "22.05";
|
||
|
home-manager.users.buffet.home.stateVersion = "22.05";
|
||
|
|
||
|
time.timeZone = "UTC";
|
||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||
|
|
||
|
boot.tmpOnTmpfs = true;
|
||
|
boot.loader = {
|
||
|
systemd-boot.enable = true;
|
||
|
efi.canTouchEfiVariables = true;
|
||
|
};
|
||
|
|
||
|
fileSystems = {
|
||
|
"/".options = ["compress=zstd"];
|
||
|
"/nix".options = ["compress=zstd" "noatime"];
|
||
|
"/persist".options = ["compress=zstd"];
|
||
|
};
|
||
|
|
||
|
networking = {
|
||
|
useDHCP = false;
|
||
|
interfaces = {
|
||
|
enp0s25.useDHCP = true;
|
||
|
wlp3s0.useDHCP = true;
|
||
|
};
|
||
|
hostName = "fanya";
|
||
|
networkmanager.enable = true;
|
||
|
nameservers = ["1.1.1.1"];
|
||
|
};
|
||
|
|
||
|
nix = {
|
||
|
autoOptimiseStore = true;
|
||
|
trustedUsers = ["root" "buffet"];
|
||
|
registry.nixpkgs.flake = nixpkgs;
|
||
|
|
||
|
gc = {
|
||
|
automatic = true;
|
||
|
dates = "weekly";
|
||
|
options = "--delete-older-than 14d";
|
||
|
};
|
||
|
|
||
|
extraOptions = ''
|
||
|
experimental-features = nix-command flakes
|
||
|
'';
|
||
|
};
|
||
|
}
|