Nest desktop configuration and include digital-ocean base image.

main
Joshua Potter 2023-12-07 13:12:58 -07:00
parent 47d8b67154
commit 51c36009ae
33 changed files with 67 additions and 7 deletions

View File

@ -1,12 +1,22 @@
# nixos-configuration # nixos-configuration
The collection of publically visible nixos-configuration files used for my The collection of publically visible nixos-configuration files used for my
personal machines. The only file not tracked is `hardware-configuration.nix` NixOS fleet.
since this is auto-generated when installinp NixOS.
## Overview ## Desktop
System-wide configuration is found in `configuration.nix`. User-specific My personal desktop configuration is reflected in the top-level `desktop`
configuration is grouped within a top-level directory corresponding to the directory. The only file not tracked is `hardware-configuration.nix` since this
user's username (as of now, just `jrpotter`). The top-level `flake.nix` file is auto-generated when installing NixOS.
links the system and user configurations together.
The system-wide configuration is found in `configuration.nix`. User-specific
configurations are grouped within a directory specific to each user. As of now,
this is just `jrpotter`. The `flake.nix` file links the system and user
configurations together.
## Remotes
Remote machines are handled on [DigitalOcean](https://www.digitalocean.com/),
deployed using [colmena](https://github.com/zhaofengli/colmena). The custom
image used by each droplet can be built using the top-level `digital-ocean`
flake.

View File

@ -23,6 +23,7 @@
anki-bin anki-bin
bitwarden bitwarden
bootstrap bootstrap
colmena
firefox firefox
gimp gimp
mullvad-vpn mullvad-vpn

27
digital-ocean/flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1701802827,
"narHash": "sha256-wTn0lpV75Uv6tU6haEypNsmnJJPb0hpaMIy/4uf5AiQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a804fc878d7ba1558b960b4c64b0903da426ac41",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

22
digital-ocean/flake.nix Normal file
View File

@ -0,0 +1,22 @@
{
description = "A NixOS image builder for DigitalOcean.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
module = {
imports = [
"${nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix"
];
system.stateVersion = "23.11";
};
in
{
packages.${system}.default = (pkgs.nixos module).digitalOceanImage;
};
}