hosts/winnowing: replace with winnow home-manager user

This commit is contained in:
Gabriel Arazas 2023-12-26 09:58:48 +08:00
parent 2d0a04dc5b
commit c9e4e67026
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 25 additions and 8 deletions

View File

@ -4,33 +4,31 @@
imports = [ imports = [
"${modulesPath}/profiles/minimal.nix" "${modulesPath}/profiles/minimal.nix"
(lib.private.mapHomeManagerUser "foo-dogsquared" { (lib.private.mapHomeManagerUser "winnow" {
extraGroups = [ extraGroups = [
"adbusers"
"wheel" "wheel"
"audio"
"docker" "docker"
"podman" "podman"
"networkmanager"
"wireshark"
]; ];
hashedPassword = hashedPassword =
"$y$j9T$UFzEKZZZrmbJ05CTY8QAW0$X2RD4m.xswyJlXZC6AlmmuubPaWPQZg/Q1LDgHpXHx1"; "$y$j9T$UFzEKZZZrmbJ05CTY8QAW0$X2RD4m.xswyJlXZC6AlmmuubPaWPQZg/Q1LDgHpXHx1";
isNormalUser = true; isNormalUser = true;
createHome = true; createHome = true;
home = "/home/foo-dogsquared"; home = "/home/winnow";
description = "Gabriel Arazas"; description = "Some type of bird";
}) })
]; ];
wsl = { wsl = {
enable = true; enable = true;
defaultUser = "foo-dogsquared"; defaultUser = "winnow";
nativeSystemd = true; nativeSystemd = true;
}; };
programs.bash.loginShellInit = "nixos-wsl-welcome"; programs.bash.loginShellInit = "nixos-wsl-welcome";
programs.git.package = lib.mkForce pkgs.git;
# Setting the development environment mainly for container-related work. # Setting the development environment mainly for container-related work.
profiles.dev.enable = true; profiles.dev.enable = true;
profiles.dev.containers.enable = true; profiles.dev.containers.enable = true;

View File

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
{
programs.neovim = {
enable = true;
package = pkgs.neovim-nightly;
vimAlias = true;
vimdiffAlias = true;
withRuby = true;
withNodeJs = true;
withPython3 = true;
};
systemd.user.sessionVariables = {
MANPAGER = "nvim +Man!";
EDITOR = "nvim";
};
}