Skip to content

Commit

Permalink
feat: add codespaces home-manager config
Browse files Browse the repository at this point in the history
  • Loading branch information
hennersz committed Sep 13, 2024
1 parent e9941e5 commit 0350428
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@
];
};

homeConfigurations."henry@codespaces" = home-manager.lib.homeManagerConfiguration {
pkgs = allSystemPkgs.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./home-manager/henry-codespaces.nix
];
};

darwinConfigurations = {
baldur = darwin.lib.darwinSystem {
system = "aarch64-darwin";
Expand Down
1 change: 1 addition & 0 deletions home-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
henry-hel = import ./henry-hel.nix;
henry-tyr = import ./henry-tyr.nix;
henry-baldur = import ./henry-baldur.nix;
henry-codespaces = import ./henry-codespaces.nix;
vagrant-vm = import ./vagrant-vm.nix;
}
14 changes: 14 additions & 0 deletions home-manager/henry-codespaces.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ lib, config, pkgs, inputs, outputs, ... }: {
# You can import other home-manager modules here
imports = [
outputs.homeManagerModules.modules
];

elemental.role = "codespaces";
elemental.user = "henry";
elemental.machine = "codespaces";
elemental.identity = "none";
home.homeDirectory = lib.mkForce "/home/codespace";

home.stateVersion = "24.05";
}

0 comments on commit 0350428

Please sign in to comment.