mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 07:59:43 +00:00
Compare commits
2 commits
ac228ac385
...
68f532398c
| Author | SHA1 | Date | |
|---|---|---|---|
| 68f532398c | |||
| 1939b8ec48 |
6 changed files with 28 additions and 14 deletions
1
.envrc
1
.envrc
|
|
@ -1 +1,2 @@
|
||||||
use flake
|
use flake
|
||||||
|
PATH_add bin
|
||||||
|
|
|
||||||
4
bin/deploy-home
Executable file
4
bin/deploy-home
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim: ft=sh
|
||||||
|
|
||||||
|
home-manager switch --flake .#$USER@$(hostname)
|
||||||
4
bin/deploy-nixos
Executable file
4
bin/deploy-nixos
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim: ft=sh
|
||||||
|
|
||||||
|
sudo nixos-rebuild switch --flake .#$(hostname)
|
||||||
4
bin/deploy-vps
Executable file
4
bin/deploy-vps
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# vim: ft=sh
|
||||||
|
|
||||||
|
nixos-rebuild switch --flake .#vps --target-host root@vps
|
||||||
20
flake.nix
20
flake.nix
|
|
@ -89,20 +89,12 @@
|
||||||
pkgs.sops
|
pkgs.sops
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
packages = [
|
||||||
HOST=$(hostname)
|
(pkgs.symlinkJoin {
|
||||||
deploy-nixos() {
|
name = "deploy-bin";
|
||||||
sudo nixos-rebuild switch --flake .#$HOST "$@"
|
paths = [ ./bin ];
|
||||||
}
|
})
|
||||||
|
];
|
||||||
deploy-vps() {
|
|
||||||
nixos-rebuild switch --flake .#vps --target-host root@vps "$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
deploy-home() {
|
|
||||||
home-manager switch --flake .#$USER@$HOST
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
../modules/cli/btop.nix
|
../modules/cli/btop.nix
|
||||||
../modules/cli/yazi.nix
|
../modules/cli/yazi.nix
|
||||||
../modules/cli/nixvim
|
../modules/cli/nixvim
|
||||||
|
../modules/cli/zsh.nix
|
||||||
|
../modules/cli/direnv.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|
@ -17,6 +19,13 @@
|
||||||
stateVersion = "24.11";
|
stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.zsh.initContent = ''
|
||||||
|
PROMPT='%n@%m:%~/ > '
|
||||||
|
export EDITOR="nvim"
|
||||||
|
export VISUAL="nvim"
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
'';
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
systemd.user.startServices = "sd-switch";
|
systemd.user.startServices = "sd-switch";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue