From f327c0628ac1b3cc880abae15d94394c728425b7 Mon Sep 17 00:00:00 2001 From: cy Date: Tue, 14 Jan 2025 10:50:19 -0500 Subject: [PATCH] add codespace home --- flake.nix | 9 +++++++++ home/yt/codespace.nix | 22 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 home/yt/codespace.nix diff --git a/flake.nix b/flake.nix index 7c921e8..f11bde6 100644 --- a/flake.nix +++ b/flake.nix @@ -165,6 +165,15 @@ inputs.nixvim.homeManagerModules.nixvim ]; }; + + "codespace@codespace" = home-manager.lib.homeManagerConfiguration { + pkgs = pkgsFor.x86_64-linux; + extraSpecialArgs = { inherit inputs outputs; }; + modules = [ + ./home/yt/codespace.nix + inputs.nixvim.homeManagerModules.nixvim + ]; + }; }; }; } diff --git a/home/yt/codespace.nix b/home/yt/codespace.nix new file mode 100644 index 0000000..6720c17 --- /dev/null +++ b/home/yt/codespace.nix @@ -0,0 +1,22 @@ +{ + pkgs, + ... +}: +{ + imports = [ + ./common.nix + ]; + home = { + username = "codespace"; + homeDirectory = "/home/codespace"; + stateVersion = "24.05"; + }; + programs.home-manager.enable = true; + + systemd.user.startServices = "sd-switch"; + + home.packages = with pkgs; [ + foot.terminfo + attic-client + ]; +}