Files
spacestation/configuration.nix

85 lines
2.2 KiB
Nix
Raw Normal View History

2024-06-16 20:08:29 -03:00
{
config,
lib,
inputs,
pkgs,
...
}: {
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;
home-manager.backupFileExtension = "backup~";
2024-06-16 20:08:29 -03:00
home-manager.extraSpecialArgs = {inherit inputs;};
users.users."guz" = {
shell = pkgs.zsh;
hashedPasswordFile = builtins.toString config.sops.secrets."guz/password".path;
home = "/home/guz";
isNormalUser = true;
2024-09-09 16:55:07 -03:00
extraGroups = ["wheel" "networkmanager" "plugdev" "docker"];
};
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"];
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;
}
];
2024-09-09 16:55:13 -03:00
nameservers = ["8.8.8.8" "1.1.1.1"];
};
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. Its 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?
}