Add experimental "mizuki" configuration
This commit is contained in:
parent
25ddde2a9b
commit
762e95d309
5 changed files with 86 additions and 2 deletions
|
@ -61,3 +61,9 @@ Desktop with NixOS as a primary system and Windows 11 N as secondary. Has secure
|
||||||
| Invidious | YouTube proxy | |
|
| Invidious | YouTube proxy | |
|
||||||
| SearXNG | Metasearch engine | |
|
| SearXNG | Metasearch engine | |
|
||||||
| Radicale | CalDAV / CardDAV server | |
|
| 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
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
systemPackages = with pkgs; [ git htop neovim sops ];
|
systemPackages = with pkgs; [ git htop neovim sops ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
doas = {
|
doas = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
28
flake.nix
28
flake.nix
|
@ -28,6 +28,10 @@
|
||||||
url = "github:nix-community/autofirma-nix";
|
url = "github:nix-community/autofirma-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
nixos-wsl = {
|
||||||
|
url = "github:nix-community/NixOS-WSL/main";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
|
@ -39,6 +43,7 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs: {
|
outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
# Desktop computer
|
||||||
totsugeki = nixpkgs.lib.nixosSystem {
|
totsugeki = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -65,6 +70,7 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
# Home server
|
||||||
greatyamada = nixpkgs.lib.nixosSystem {
|
greatyamada = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -74,6 +80,28 @@
|
||||||
inputs.sops-nix.nixosModules.sops
|
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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
30
hosts/mizuki/development.nix
Normal file
30
hosts/mizuki/development.nix
Normal 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
22
hosts/mizuki/nixos.nix
Normal 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";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue