2023-01-24 12:09:22 -06:00
|
|
|
{ inputs, lib, config, pkgs, ... }:
|
2020-10-24 22:55:15 -05:00
|
|
|
{
|
2023-01-24 12:09:22 -06:00
|
|
|
# TODO: put in hardware-configuration.nix
|
2023-01-24 10:16:15 -06:00
|
|
|
imports = [
|
2023-01-24 12:09:22 -06:00
|
|
|
"${inputs.nixpkgs}/nixos/modules/virtualisation/google-compute-image.nix"
|
2023-01-24 10:16:15 -06:00
|
|
|
];
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
2023-01-24 12:09:22 -06:00
|
|
|
users.defaultUserShell = pkgs.zsh;
|
2023-01-24 13:36:18 -06:00
|
|
|
users.extraUsers = {
|
|
|
|
daylin = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "docker" ];
|
|
|
|
useDefaultShell = true;
|
2023-01-24 17:22:12 -06:00
|
|
|
};
|
|
|
|
git = {
|
|
|
|
isNormalUser = true;
|
2023-01-24 13:36:18 -06:00
|
|
|
};
|
2023-01-24 12:09:22 -06:00
|
|
|
};
|
2023-01-24 17:43:04 -06:00
|
|
|
|
2023-01-24 12:09:22 -06:00
|
|
|
services.resolved.enable = true;
|
2023-01-24 10:16:15 -06:00
|
|
|
system.stateVersion = "22.11";
|
2022-11-10 20:06:35 -06:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2022-11-23 09:32:58 -06:00
|
|
|
|
2022-11-14 19:10:33 -06:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
2022-11-10 20:06:35 -06:00
|
|
|
|
2023-01-24 17:43:04 -06:00
|
|
|
services.cron = {
|
2023-01-24 17:22:12 -06:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
2023-01-24 10:16:15 -06:00
|
|
|
networking.hostName = "jeran"; # Define your hostname.
|
2022-11-10 11:54:59 -06:00
|
|
|
time.timeZone = "America/Chicago";
|
2022-11-21 15:12:09 -06:00
|
|
|
programs.zsh.enable = true;
|
2023-01-17 03:43:58 -06:00
|
|
|
programs.nix-ld.enable = true;
|
2023-01-24 10:16:15 -06:00
|
|
|
virtualisation.docker.enable = true;
|
2023-01-24 12:09:22 -06:00
|
|
|
|
2022-11-21 13:09:53 -06:00
|
|
|
environment.systemPackages = with pkgs; [
|
2022-11-03 18:24:52 -05:00
|
|
|
zsh
|
|
|
|
|
2023-01-24 10:16:15 -06:00
|
|
|
tmux
|
2022-11-03 18:24:52 -05:00
|
|
|
wget
|
2023-01-17 15:40:16 -06:00
|
|
|
unzip
|
2022-11-14 19:10:33 -06:00
|
|
|
less
|
2022-11-04 11:53:59 -05:00
|
|
|
gnumake
|
|
|
|
gcc
|
2022-11-03 18:24:52 -05:00
|
|
|
|
|
|
|
git
|
2022-11-04 11:53:59 -05:00
|
|
|
|
2022-11-08 23:58:31 -06:00
|
|
|
vim
|
2022-11-04 11:13:49 -05:00
|
|
|
neovim
|
2023-01-24 10:16:15 -06:00
|
|
|
|
2022-11-09 00:17:54 -06:00
|
|
|
starship
|
2023-01-24 10:16:15 -06:00
|
|
|
atuin
|
2022-11-14 19:10:33 -06:00
|
|
|
chezmoi
|
2023-01-25 15:44:40 -06:00
|
|
|
bat
|
2023-01-17 13:17:35 -06:00
|
|
|
fzf
|
2022-11-14 19:10:33 -06:00
|
|
|
delta
|
2023-01-24 10:16:15 -06:00
|
|
|
ripgrep
|
2023-01-24 12:09:22 -06:00
|
|
|
lsd
|
2023-01-24 10:16:15 -06:00
|
|
|
|
2022-11-08 23:58:31 -06:00
|
|
|
gh
|
2023-01-24 10:16:15 -06:00
|
|
|
lazygit
|
2022-11-21 15:12:09 -06:00
|
|
|
|
2022-11-03 18:24:52 -05:00
|
|
|
nixpkgs-fmt
|
2023-01-25 15:44:40 -06:00
|
|
|
lazydocker
|
2022-11-03 18:24:52 -05:00
|
|
|
|
2023-01-24 12:09:22 -06:00
|
|
|
nodejs
|
2022-11-10 13:50:17 -06:00
|
|
|
go
|
|
|
|
rustup
|
2022-11-09 13:45:01 -06:00
|
|
|
];
|
|
|
|
}
|