fuji-wsl: init

This commit is contained in:
uku 2024-02-14 12:06:23 +01:00
parent 1bdcd5308a
commit a842256b97
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
10 changed files with 126 additions and 13 deletions

View file

@ -46,6 +46,15 @@ in {
modules = desktop;
};
fuji-wsl = {
system = "x86_64-linux";
modules =
nixos
++ (with inputs; [
nixos-wsl.nixosModules.default
]);
};
kilimandjaro = {
system = "x86_64-linux";
modules = desktop;

View file

@ -0,0 +1,30 @@
{
lib,
pkgs,
config,
...
}: let
username = "leo";
in {
imports = [
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
../../programs/fish.nix
../../programs/git.nix
../../programs/starship.nix
];
hm.home.stateVersion = "23.11";
wsl = {
enable = true;
defaultUser = username;
};
users.users."${username}" = {
isNormalUser = true;
shell = pkgs.fish;
extraGroups = ["wheel"];
hashedPasswordFile = config.age.secrets.userPassword.path;
};
}

View file

@ -0,0 +1,3 @@
{
# intentionally empty
}

View file

@ -1,7 +1,4 @@
{
pkgs,
...
}: {
{pkgs, ...}: {
imports = [./nvidia.nix];
services.xserver.videoDrivers = ["amdgpu"];