fuji-wsl: init
This commit is contained in:
parent
1bdcd5308a
commit
a842256b97
10 changed files with 126 additions and 13 deletions
|
@ -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;
|
||||
|
|
30
systems/fuji-wsl/default.nix
Normal file
30
systems/fuji-wsl/default.nix
Normal 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;
|
||||
};
|
||||
}
|
3
systems/fuji-wsl/hardware-configuration.nix
Normal file
3
systems/fuji-wsl/hardware-configuration.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
# intentionally empty
|
||||
}
|
|
@ -1,7 +1,4 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{pkgs, ...}: {
|
||||
imports = [./nvidia.nix];
|
||||
|
||||
services.xserver.videoDrivers = ["amdgpu"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue