Compare commits

..

No commits in common. "3c05f5e5a9de5c0d8fb139e5493e473c254c53f5" and "20d60fabdc94a31666f1deb9669bce8474579ec0" have entirely different histories.

8 changed files with 11 additions and 54 deletions

View file

@ -86,13 +86,5 @@
./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, pkgs, ... }: { lib, config, ... }:
let let
cfg = config.snowhawk.git; cfg = config.snowhawk.git;
@ -6,14 +6,9 @@ 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";
@ -53,7 +48,7 @@ in
credential = { credential = {
helper = [ helper = [
"cache --timeout 7200" "cache --timeout 7200"
(lib.mkIf cfg.oauth "oauth") "oauth"
]; ];
"https://git.zynh.me" = { "https://git.zynh.me" = {

View file

@ -1,37 +0,0 @@
{ 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" ''
home-manager switch -v |& nom sudo nixos-rebuild switch --log-format internal-json -v |& nom --json
'') '')
go go

View file

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

View file

@ -16,7 +16,6 @@
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,6 +64,8 @@
steam-run steam-run
xivlauncher xivlauncher
git-credential-oauth
]; ];
}; };

View file

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