add conifer host (desktop wsl)
This commit is contained in:
parent
8310a093e5
commit
3b5e4489a4
6 changed files with 185 additions and 14 deletions
54
hosts/conifer/default.nix
Normal file
54
hosts/conifer/default.nix
Normal 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";
|
||||
}
|
7
hosts/conifer/hardware.nix
Normal file
7
hosts/conifer/hardware.nix
Normal 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
51
hosts/conifer/home.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue