Files
dotfiles/common/all.nix
Sebastian Moser e6a35ee756 stuff
2026-02-17 22:30:17 +01:00

60 lines
1.4 KiB
Nix

{ lib, inputs, self, secretsDir, specialArgs, ... }:
# config that i use on all my hosts
{
imports = [
#../mods/my-nixpkgs-overlay.nix
];
home-manager.extraSpecialArgs = specialArgs;
programs.dconf.enable = true;
# set root user pwd
#users.users.root.password = "changeme";
# Set your time zone.
time.timeZone = "Europe/Vienna";
# add mybin to path
environment.etc.profile.text = ''
export PATH=$PATH:${self}/mybin
'';
nix.settings = {
experimental-features = lib.mkDefault "nix-command flakes";
trusted-users = [ "root" "@wheel" ];
};
nixpkgs.config.allowUnfree = true;
home-manager.backupFileExtension = "backup";
security.sudo.wheelNeedsPassword = false;
users.mutableUsers = true;
nix.channel.enable = false;
services.openssh.settings.GatewayPorts = "clientspecified";
# add extre nix registries
nix.registry = {
ni.flake = inputs.nixpkgs;
nu.flake = inputs.nixpkgs-unstable;
me.flake = self;
};
# 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.05"; # Did you read the comment?
}