Compare commits

...

5 Commits

Author SHA1 Message Date
Zynh Ludwig 3c05f5e5a9 caveserver: enabling ssh 2024-07-11 21:15:43 +00:00
Zynh Ludwig ba2cec8473 cleanup: moving nom next to rebuild commands 2024-07-11 21:08:05 +00:00
Zynh Ludwig cb1a15d8d2 git: optional oauth 2024-07-11 21:07:52 +00:00
Zynh Ludwig 1c407de56d hm: rebuild command 2024-07-11 21:00:55 +00:00
Zynh Ludwig 23b93025c3 flake: caveserver 2024-07-11 21:00:55 +00:00
8 changed files with 54 additions and 11 deletions

View File

@ -86,5 +86,13 @@
./hosts/msiserver/home.nix
];
};
homeConfigurations."val@caveserver" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
extraSpecialArgs = { inherit inputs; };
modules = [
./hosts/caveserver/home.nix
];
};
};
}

View File

@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.git;
@ -6,9 +6,14 @@ in
{
options.snowhawk.git = {
enable = lib.mkEnableOption "git";
oauth = lib.mkEnableOption "enable git-credential-oauth";
};
config = lib.mkIf cfg.enable {
home.packages = lib.mkIf cfg.oauth [
pkgs.git-credential-oauth
];
programs.git = {
enable = true;
userName = "Zynh Ludwig";
@ -48,7 +53,7 @@ in
credential = {
helper = [
"cache --timeout 7200"
"oauth"
(lib.mkIf cfg.oauth "oauth")
];
"https://git.zynh.me" = {

37
hosts/caveserver/home.nix Normal file
View File

@ -0,0 +1,37 @@
{ pkgs, inputs, config, ... }:
{
imports = [
../../home/modules
];
snowhawk.neovim = {
enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
};
snowhawk.user.enable = false;
snowhawk.defaultPrograms.enable = false;
snowhawk.ssh.enable = true;
home.username = "val";
home.homeDirectory = "/home/val";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"
];
home.packages = with pkgs; [
nix-output-monitor
(writeShellScriptBin "rebuild" ''
home-manager switch -v |& nom
'')
go
rustup
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
home.stateVersion = "23.11";
}

View File

@ -23,7 +23,7 @@
home.packages = with pkgs; [
nix-output-monitor
(writeShellScriptBin "rebuild" ''
sudo nixos-rebuild switch --log-format internal-json -v |& nom --json
home-manager switch -v |& nom
'')
go

View File

@ -75,10 +75,6 @@
fzf
tree
nix-output-monitor
git-credential-oauth
xclip
rustup

View File

@ -16,6 +16,7 @@
xsession.numlock.enable = true;
home.packages = with pkgs; [
nix-output-monitor
(writeShellScriptBin "rebuild" ''
sudo nixos-rebuild switch --log-format internal-json -v |& nom --json
'')

View File

@ -64,8 +64,6 @@
steam-run
xivlauncher
git-credential-oauth
];
};

View File

@ -77,8 +77,6 @@
nix-output-monitor
git-credential-oauth
xclip
rustup