60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{ tree, config, pkgs, lib, ... }: {
|
|
imports = with tree; [
|
|
users.root
|
|
users.chaos
|
|
profiles.sshd
|
|
profiles.kernels.latest
|
|
|
|
presets.nixos.desktop
|
|
presets.nixos.laptop
|
|
presets.nixos.encrypted-usb
|
|
|
|
./secrets.nix
|
|
./profiles/wireguard.nix
|
|
./profiles/harry-vpn.nix
|
|
];
|
|
|
|
home-manager.users.root = {
|
|
imports = with tree; [ home.base ];
|
|
home.stateVersion = "22.05";
|
|
};
|
|
home-manager.users.chaos = {
|
|
imports = with tree; [
|
|
home.base
|
|
home.dev.all
|
|
home.home-folders
|
|
|
|
home.programming.editors.vscode
|
|
home.programming.languages.rust
|
|
home.programming.languages.nix
|
|
];
|
|
home.stateVersion = "22.05";
|
|
};
|
|
|
|
networking.firewall.enable = true;
|
|
networking.firewall.allowPing = true;
|
|
|
|
networking.enableIPv6 = false;
|
|
|
|
# let vscode, vivaldi, etc work.
|
|
security.unprivilegedUsernsClone = true;
|
|
|
|
nix.settings.auto-optimise-store = true;
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
nix.extraOptions = ''
|
|
keep-outputs = true
|
|
keep-derivations = true
|
|
'';
|
|
|
|
networking.hostName = "tablet";
|
|
time.timeZone = "Europe/London";
|
|
|
|
system.stateVersion = "21.11";
|
|
}
|
|
|