mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
feat: add dotfile loading via home-manager
This commit is contained in:
parent
eb737c39b2
commit
ba17b0ee0c
4 changed files with 41 additions and 8 deletions
|
|
@ -17,8 +17,9 @@ pkgs.dockerTools.buildLayeredImage {
|
|||
pkgs.openssh
|
||||
pkgs.git
|
||||
pkgs.curl
|
||||
pkgs.home-manager
|
||||
pkgs.direnv
|
||||
(pkgs.writeShellScriptBin "reload-dotfiles" ''
|
||||
${pkgs.home-manager}/bin/home-manager switch --flake ''${DOTFILES_REPO:-$1}
|
||||
'')
|
||||
(pkgs.writeTextDir "etc/nix/nix.conf" "experimental-features = nix-command flakes")
|
||||
(pkgs.writeTextDir "etc/passwd" "coder:x:1000:1000::/home/coder:/bin/bash")
|
||||
(pkgs.writeTextDir "etc/shadow" "coder:!:::::::")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue