1
0
dotfiles/nixos/default.nix

49 lines
1020 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, inputs, pkgs, ... }:
let
user = "dekker1";
keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICwXNVel0w1f4nbmu2iJsqCoeiUsENzTLyhCZjSL+jT+" ];
in
{
imports = [
../shared
../shared/cachix
];
# Set your time zone.
time.timeZone = "Australia/Melbourne";
# Turn on flag for proprietary software
nix = {
nixPath = [ "nixos-config=/home/${user}/.local/share/nixos-config:/etc/nixos" ];
settings.allowed-users = [ "${user}" ];
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
# It's me, it's you, it's everyone
users.users.${user} = {
isNormalUser = true;
extraGroups = [
"wheel" # Enable sudo for the user.
];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = keys;
};
# My shell
programs.zsh.enable = true;
fonts.packages = with pkgs; [
];
environment.systemPackages = with pkgs; [
gitAndTools.gitFull
];
system.stateVersion = "21.05"; # Don't change this
}