From c9e4e670262f092106b683ddce5526b8401ec78b Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 26 Dec 2023 09:58:48 +0800 Subject: [PATCH] hosts/winnowing: replace with winnow home-manager user --- hosts/winnowing/default.nix | 14 ++++++-------- users/home-manager/winnow/default.nix | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 users/home-manager/winnow/default.nix diff --git a/hosts/winnowing/default.nix b/hosts/winnowing/default.nix index 7178a709..e05eb193 100644 --- a/hosts/winnowing/default.nix +++ b/hosts/winnowing/default.nix @@ -4,33 +4,31 @@ imports = [ "${modulesPath}/profiles/minimal.nix" - (lib.private.mapHomeManagerUser "foo-dogsquared" { + (lib.private.mapHomeManagerUser "winnow" { extraGroups = [ - "adbusers" "wheel" - "audio" "docker" "podman" - "networkmanager" - "wireshark" ]; hashedPassword = "$y$j9T$UFzEKZZZrmbJ05CTY8QAW0$X2RD4m.xswyJlXZC6AlmmuubPaWPQZg/Q1LDgHpXHx1"; isNormalUser = true; createHome = true; - home = "/home/foo-dogsquared"; - description = "Gabriel Arazas"; + home = "/home/winnow"; + description = "Some type of bird"; }) ]; wsl = { enable = true; - defaultUser = "foo-dogsquared"; + defaultUser = "winnow"; nativeSystemd = true; }; programs.bash.loginShellInit = "nixos-wsl-welcome"; + programs.git.package = lib.mkForce pkgs.git; + # Setting the development environment mainly for container-related work. profiles.dev.enable = true; profiles.dev.containers.enable = true; diff --git a/users/home-manager/winnow/default.nix b/users/home-manager/winnow/default.nix new file mode 100644 index 00000000..87f6e8f6 --- /dev/null +++ b/users/home-manager/winnow/default.nix @@ -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"; + }; +}