move stuff into common config
This commit is contained in:
parent
1c50282114
commit
71312d55b9
5 changed files with 34 additions and 61 deletions
|
@ -1,30 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
username = "leo";
|
||||
in {
|
||||
imports = [
|
||||
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
||||
|
||||
../../programs/fish.nix
|
||||
../../programs/git.nix
|
||||
../../programs/starship
|
||||
];
|
||||
|
||||
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;
|
||||
defaultUser = "leo";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue