nix/hosts/deadbeef/default.nix

94 lines
2.2 KiB
Nix

{
config,
pkgs,
lib,
home-manager,
...
}:
let
tailscaleMagicDNS = "neon-dory.ts.net";
homeParameters = {
username = "pazpi";
commonName = "Davide Pasetto";
userEmail = "pasettodavide@gmail.com";
extraPackages = [ ];
};
in
{
imports = [
./hardware-configuration.nix
./boot.nix
];
age = {
identityPaths = [ "/home/pazpi/.ssh/id_ed25519" ];
secrets = {
tailscale-authKey.file = ../../secrets/tailscale-authKey.age;
};
};
my = {
desktop = {
audio.enable = false;
desktopUser = {
enable = true;
userName = homeParameters.username;
hashedPassword = "$y$j9T$dA94KVg1/jYLqclQQbTDk.$cnfxBWUN8P4shr8Kkipv5bU/RCtQNoAwYFDZ0X/BYs5";
};
networking = {
enable = true;
hostname = "deadbeef";
localDNS = [ "192.168.1.2" ];
};
plymouth = {
enable = true;
theme = "colorful_loop";
};
utils = {
i18n.enable = true;
};
};
utils = {
commons.enable = true;
};
networking = {
tailscale = {
enable = true;
magicDNSDomain = tailscaleMagicDNS;
authKeyFile = config.age.secrets.tailscale-authKey.path;
};
};
};
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
users.${homeParameters.username} = import ./pazpi-home.nix;
extraSpecialArgs = {
inherit homeParameters;
};
};
time.timeZone = "Europe/Rome";
# Vedi https://github.com/TLATER/dotfiles/blob/f989a86890f27f6b089e9d74b7e8356ec8e5683d/home-config/hosts/yui.nix
# home-manager.users.pazpi = import "${flake-inputs.self}/home-config/hosts/deadbeef.nix";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
}