44 lines
805 B
Nix
44 lines
805 B
Nix
{
|
|
pkgs,
|
|
secrets,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
|
|
../modules/services/anubis.nix
|
|
../modules/services/ddns-go.nix
|
|
../modules/services/gitea.nix
|
|
../modules/services/napcat.nix
|
|
../modules/services/nignx.nix
|
|
|
|
../modules/system/boot.nix
|
|
../modules/system/networking.nix
|
|
../modules/system/nix.nix
|
|
|
|
../modules/programs/bash
|
|
../modules/programs/tools.nix
|
|
];
|
|
|
|
time.timeZone = "Aisa/Shanghai";
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
users.users.sky = {
|
|
openssh.authorizedKeys.keys = [
|
|
(lib.readFile secrets.files.keys.nixos-wsl-pub)
|
|
];
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
packages = with pkgs; [
|
|
tree
|
|
];
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
system.stateVersion = "25.11";
|
|
}
|