add conifer host (desktop wsl)

This commit is contained in:
xunuwu 2025-07-04 06:07:03 +02:00
parent 8310a093e5
commit 3b5e4489a4
Signed by: xun
SSH key fingerprint: SHA256:vVkcg/JhxJ8bhD+XdjfwP9m9m9+1+41rvl8St1Rj+Sw
6 changed files with 185 additions and 14 deletions

54
hosts/conifer/default.nix Normal file
View file

@ -0,0 +1,54 @@
{
lib,
pkgs,
inputs,
systemProfiles,
specialArgs,
...
}: {
imports =
[
./hardware.nix
inputs.impermanence.nixosModules.impermanence
{
home-manager = {
backupFileExtension = "hm-backup";
users.xun.imports = [
./home.nix
{home.stateVersion = "25.05";}
];
extraSpecialArgs = specialArgs;
};
}
]
++ (with systemProfiles; [
core.security
core.users
core.locale
core.tools
core.compat
programs.fish
nix.nix
nix.gc
hardware.graphics
hardware.bluetooth
services.flatpak
services.xdg-portals
network.avahi
programs.home-manager
programs.tools
]);
environment.persistence."/persist".enable = false;
networking.hostName = "conifer";
system.stateVersion = "25.05";
}

View file

@ -0,0 +1,7 @@
{inputs, ...}: {
imports = [inputs.nixos-wsl.nixosModules.default];
wsl.enable = true;
wsl.defaultUser = "xun";
nixpkgs.hostPlatform.system = "x86_64-linux";
}

51
hosts/conifer/home.nix Normal file
View file

@ -0,0 +1,51 @@
{
homeProfiles,
lib,
pkgs,
inputs,
...
}: {
imports = with homeProfiles; [
cli.fish
cli.xdg
cli.direnv
cli.tmux
cli.git
cli.github
cli.forgejo
cli.jujutsu
cli.comma
programs.nvim
desktop.xdg-portals
develop.common
develop.docs
develop.langs.c
develop.langs.nix
];
programs = {
starship.enable = true;
zoxide.enable = true;
lazygit.enable = true;
};
home.packages = with pkgs; [
# coding
tokei
devenv
lazyjj
jjui
];
home = {
username = "xun";
homeDirectory = "/home/xun";
extraOutputsToInstall = ["doc" "devdoc"];
};
programs.home-manager.enable = true;
}