Compare commits

..

5 commits

8 changed files with 54 additions and 11 deletions

View file

@ -86,5 +86,13 @@
./hosts/msiserver/home.nix ./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 let
cfg = config.snowhawk.git; cfg = config.snowhawk.git;
@ -6,9 +6,14 @@ in
{ {
options.snowhawk.git = { options.snowhawk.git = {
enable = lib.mkEnableOption "git"; enable = lib.mkEnableOption "git";
oauth = lib.mkEnableOption "enable git-credential-oauth";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = lib.mkIf cfg.oauth [
pkgs.git-credential-oauth
];
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Zynh Ludwig"; userName = "Zynh Ludwig";
@ -48,7 +53,7 @@ in
credential = { credential = {
helper = [ helper = [
"cache --timeout 7200" "cache --timeout 7200"
"oauth" (lib.mkIf cfg.oauth "oauth")
]; ];
"https://git.zynh.me" = { "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; [ home.packages = with pkgs; [
nix-output-monitor nix-output-monitor
(writeShellScriptBin "rebuild" '' (writeShellScriptBin "rebuild" ''
sudo nixos-rebuild switch --log-format internal-json -v |& nom --json home-manager switch -v |& nom
'') '')
go go

View file

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

View file

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

View file

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

View file

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