initial configuration of home-manager

This commit is contained in:
Fabian Montero 2022-03-17 02:00:17 -06:00
parent bef8999368
commit a96e5b7e79
3 changed files with 45 additions and 9 deletions

View file

@ -51,10 +51,9 @@
services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # quitar esto users.users.fabian = {
users.users.host = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ];
}; };
users.users.temp = { users.users.temp = {
@ -64,9 +63,6 @@
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users.temp.packages = with pkgs; [ firefox jetbrains.pycharm-professional neovim git tdesktop python310 gcc discord xournalpp zoom-us jq zip unzip signal-desktop verilog vscodium pipenv runelite calc units vlc file btrfs-progs ];
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = '' extraOptions = ''
@ -77,8 +73,7 @@
services.openssh.enable = true; services.openssh.enable = true;
# NO TOCAR ESTO system.stateVersion = "21.11"; # No tocar esto
system.stateVersion = "21.11"; # Did you read the comment?
} }

24
fabian/default.nix Normal file
View file

@ -0,0 +1,24 @@
# man page: https://rycee.gitlab.io/home-manager/options.html
{ config, pkgs, lib, ... }:
{
home = {
stateVersion = "21.11"; # No tocar esto
username = "fabian";
homeDirectory = "/home/fabian";
packages = import ./path.nix pkgs;
};
nixpkgs.config.allowUnfree = true;
# configurable = [ neovim zsh keyboardlayout pulsaudio vscodium i3-gaps dunst rofi ];
programs.git = {
enable = true;
userEmail = "fabian@cluster451.org";
userName = "Fabián Montero";
# signing.key = "" poner mi key luego
};
}

17
fabian/path.nix Normal file
View file

@ -0,0 +1,17 @@
pkgs: with pkgs; [
calc
discord
file
firefox
jetbrains.pycharm-professional
jq
pipenv
signal-desktop
tdesktop
units
unzip
vlc
xournalpp
zip
zoom-us
]