1
0
Fork 0

Add experimental "mizuki" configuration

This commit is contained in:
Avery 2025-02-24 21:07:36 +01:00
parent 25ddde2a9b
commit 762e95d309
Signed by: Avery
GPG key ID: B684FD451B692E04
5 changed files with 86 additions and 2 deletions

View file

@ -61,3 +61,9 @@ Desktop with NixOS as a primary system and Windows 11 N as secondary. Has secure
| Invidious | YouTube proxy | |
| SearXNG | Metasearch engine | |
| Radicale | CalDAV / CardDAV server | |
### 🎀 Mizuki | WSL development setup
An experimental configuration for software development inside Windows Subsystem for Linux.
Inherits the Nixvim configuration from totsugeki

View file

@ -29,8 +29,6 @@
systemPackages = with pkgs; [ git htop neovim sops ];
};
programs.zsh.enable = true;
security = {
doas = {
enable = true;

View file

@ -28,6 +28,10 @@
url = "github:nix-community/autofirma-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/NixOS-WSL/main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
@ -39,6 +43,7 @@
outputs = { self, nixpkgs, ... }@inputs: {
nixosConfigurations = {
# Desktop computer
totsugeki = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
@ -65,6 +70,7 @@
}
];
};
# Home server
greatyamada = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
@ -74,6 +80,28 @@
inputs.sops-nix.nixosModules.sops
];
};
# WSL development system
mizuki = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./hosts/mizuki/nixos.nix
inputs.nixos-wsl.nixosModules.default
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
backupFileExtension = "bak";
useUserPackages = true;
users.avery = {
imports = [
inputs.nixvim.homeManagerModules.nixvim
./hosts/totsugeki/home-manager/development/nixvim
./hosts/mizuki/development.nix
];
};
};
}
];
};
};
};
}

View file

@ -0,0 +1,30 @@
{ ... }: {
programs = {
git = {
enable = true;
extraConfig = {
init.defaultBranch = "main";
merge.tool = "nvim -d";
};
userEmail = "aveeryy@protonmail.com";
userName = "Avery";
};
lazygit = {
enable = true;
settings = {
gui.theme = {
activeBorderColor = [ "#89b4fa" "bold" ];
inactiveBorderColor = [ "#a6adc8" ];
optionsTextColor = [ "#89b4fa" ];
selectedLineBgColor = [ "#313244" ];
selectedRangeBgColor = [ "#313244" ];
cherryPickedCommitBgColor = [ "#45475a" ];
cherryPickedCommitFgColor = [ "#89b4fa" ];
unstagedChangesColor = [ "#f38ba8" ];
defaultFgColor = [ "#cdd6f4" ];
searchingActiveBorderColor = [ "#f9e2af" ];
};
};
};
};
}

22
hosts/mizuki/nixos.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, pkgs }: {
environment.shells = with pkgs; [ zsh ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
security.sudo.enable = true;
users = {
defaultUserShell = pkgs.zsh;
users.avery.extraGroups = [ "wheel" ];
};
wsl = {
enable = true;
defaultUser = "avery";
};
system.stateVersion = "24.11";
}