feat(gs/system): Init roswell

An ec2 node I'm using as a remote dev box

Change-Id: I7d81371ecdc11d6c1b5bc06d1b4f55de534d25ad
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2244
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Griffin Smith 2020-12-14 12:44:31 -05:00 committed by glittershark
parent 3f9bd60d85
commit bcea9cd0b3
5 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,57 @@
{ pkgs, lib, config, ... }:
let
laptopKeyboardId = "5";
in
{
imports = [
../platforms/linux.nix
../modules/shell.nix
../modules/development.nix
../modules/emacs.nix
../modules/vim.nix
];
home.packages = with pkgs; [
# System utilities
bat
htop
killall
bind
zip unzip
tree
ncat
bc
pv
# Security
gnupg
keybase
openssl
# Nix things
nixfmt
nix-prefetch-github
nix-review
cachix
];
nixpkgs.config.allowUnfree = true;
programs.password-store.enable = true;
programs.home-manager.enable = true;
home.stateVersion = "20.03";
xsession.enable = lib.mkForce false;
services.lorri.enable = true;
programs.direnv = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
}

View file

@ -74,6 +74,12 @@
hostname = "172.16.0.5";
forwardAgent = true;
};
"roswell" = {
host = "roswell";
hostname = "18.223.118.13";
forwardAgent = true;
};
};
};

View file

@ -1,5 +1,9 @@
args @ { depot, pkgs, ... }:
let
nixpkgs = import pkgs.nixpkgsSrc {};
in
rec {
chupacabra = import ./machines/chupacabra.nix;
@ -13,6 +17,27 @@ rec {
configuration = mugwump;
}).system;
roswell = import ./machines/roswell.nix;
roswellSystem = (pkgs.nixos {
configuration = { ... }: {
imports = [
./machines/roswell.nix
"${nixpkgs.home-manager.src}/nixos"
"${depot.depotPath}/ops/nixos/depot.nix"
];
inherit depot;
home-manager.users.grfn = { config, lib, ... }: {
imports = [ ../home/machines/roswell.nix ];
lib.depot = depot;
_module.args.pkgs = lib.mkForce
(import pkgs.nixpkgsSrc
(lib.filterAttrs (n: v: v != null) config.nixpkgs));
};
};
}).system;
yeren = import ./machines/yeren.nix;
yerenSystem = (pkgs.nixos {
@ -31,6 +56,7 @@ rec {
meta.targets = [
"chupacabraSystem"
"mugwumpSystem"
"roswellSystem"
"yerenSystem"
"iso"

View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
../modules/common.nix
"${modulesPath}/installer/scan/not-detected.nix"
"${modulesPath}/virtualisation/amazon-image.nix"
];
ec2.hvm = true;
networking.hostName = "roswell";
users.users.grfn.openssh.authorizedKeys.keys = [
config.depot.users.glittershark.keys.main
];
}