2024-06-16 20:08:29 -03:00
|
|
|
|
{
|
|
|
|
|
|
config,
|
|
|
|
|
|
lib,
|
|
|
|
|
|
inputs,
|
|
|
|
|
|
pkgs,
|
|
|
|
|
|
...
|
2024-06-15 18:29:36 -03:00
|
|
|
|
}: {
|
|
|
|
|
|
imports = [
|
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
inputs.dot013-environment.nixosModules.default
|
|
|
|
|
|
./services
|
|
|
|
|
|
./modules
|
|
|
|
|
|
./secrets.nix
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
programs.nh.enable = true;
|
|
|
|
|
|
programs.nh.flake = "/home/guz/nix";
|
|
|
|
|
|
|
|
|
|
|
|
profiles.locale.enable = true;
|
|
|
|
|
|
|
2024-06-16 20:08:29 -03:00
|
|
|
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
2024-06-15 18:29:36 -03:00
|
|
|
|
users.users."guz" = {
|
|
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
|
|
hashedPasswordFile = builtins.toString config.sops.secrets."guz/password".path;
|
|
|
|
|
|
home = "/home/guz";
|
|
|
|
|
|
isNormalUser = true;
|
2024-06-16 20:08:29 -03:00
|
|
|
|
extraGroups = ["wheel" "networkmanager" "plugdev"];
|
2024-06-15 18:29:36 -03:00
|
|
|
|
};
|
|
|
|
|
|
home-manager.users."guz" = import ./homes/guz.nix;
|
|
|
|
|
|
|
|
|
|
|
|
dot013.environment.enable = true;
|
|
|
|
|
|
dot013.environment.interception-tools.enable = false;
|
|
|
|
|
|
|
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
pinentryPackage = pkgs.pinentry-gnome3;
|
|
|
|
|
|
settings = {
|
|
|
|
|
|
default-cache-ttl = 3600 * 24;
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
git
|
|
|
|
|
|
libinput
|
|
|
|
|
|
];
|
|
|
|
|
|
|
2024-06-16 20:08:29 -03:00
|
|
|
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
2024-06-15 18:29:36 -03:00
|
|
|
|
nix.package = pkgs.nixVersions.nix_2_21;
|
|
|
|
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
|
|
networkmanager.enable = true;
|
|
|
|
|
|
hostName = "spacestation";
|
|
|
|
|
|
wireless.enable = false;
|
|
|
|
|
|
dhcpcd.enable = true;
|
|
|
|
|
|
defaultGateway = "192.168.1.1";
|
|
|
|
|
|
interfaces."eno1".ipv4.addresses = [
|
|
|
|
|
|
{
|
|
|
|
|
|
address = "192.168.1.10";
|
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
|
}
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
|
|
# Allow unfree packages
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
|
|
# 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 = "23.11"; # Did you read the comment?
|
|
|
|
|
|
}
|