49 lines
1020 B
Nix
49 lines
1020 B
Nix
{ 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
|
||
|
||
}
|