mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-17 01:30:45 -06:00
87 lines
1.5 KiB
Nix
87 lines
1.5 KiB
Nix
{ inputs, lib, config, pkgs, ... }:
|
|
{
|
|
# TODO: put in hardware-configuration.nix
|
|
imports = [
|
|
"${inputs.nixpkgs}/nixos/modules/virtualisation/google-compute-image.nix"
|
|
];
|
|
security.sudo.wheelNeedsPassword = false;
|
|
users.defaultUserShell = pkgs.zsh;
|
|
users.extraUsers = {
|
|
daylin = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "docker" ];
|
|
useDefaultShell = true;
|
|
};
|
|
git = {
|
|
isNormalUser = true;
|
|
};
|
|
};
|
|
|
|
services.resolved.enable = true;
|
|
system.stateVersion = "22.11";
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
services.cron = {
|
|
enable = true;
|
|
systemCronJobs = [
|
|
# update repos
|
|
"0 * * * * make -C /home/daylin/git soft-repos"
|
|
# update container so home page is semi-accurate
|
|
"0 2 * * * make -C /home/daylin/git update-soft-serve"
|
|
];
|
|
};
|
|
|
|
networking.hostName = "jeran"; # Define your hostname.
|
|
time.timeZone = "America/Chicago";
|
|
programs.zsh.enable = true;
|
|
virtualisation.docker.enable = true;
|
|
|
|
programs.nix-ld.enable = true;
|
|
programs.nix-ld.libraries = with pkgs; [
|
|
stdenv.cc.cc
|
|
curl # for choosenim
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
zsh
|
|
|
|
tmux
|
|
wget
|
|
unzip
|
|
less
|
|
gnumake
|
|
gcc
|
|
gnupg
|
|
|
|
curl
|
|
|
|
git
|
|
|
|
vim
|
|
neovim
|
|
|
|
starship
|
|
atuin
|
|
chezmoi
|
|
bat
|
|
fzf
|
|
delta
|
|
ripgrep
|
|
lsd
|
|
|
|
gh
|
|
lazygit
|
|
|
|
nixpkgs-fmt
|
|
lazydocker
|
|
|
|
python3
|
|
micromamba
|
|
|
|
nodejs
|
|
go
|
|
rustup
|
|
];
|
|
}
|