From a96e5b7e79628c871751f0de739ec78f8781aca3 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Thu, 17 Mar 2022 02:00:17 -0600 Subject: [PATCH] initial configuration of home-manager --- base/default.nix | 13 ++++--------- fabian/default.nix | 24 ++++++++++++++++++++++++ fabian/path.nix | 17 +++++++++++++++++ 3 files changed, 45 insertions(+), 9 deletions(-) create mode 100644 fabian/default.nix create mode 100644 fabian/path.nix diff --git a/base/default.nix b/base/default.nix index 1ed34bd..a2b9f41 100644 --- a/base/default.nix +++ b/base/default.nix @@ -51,12 +51,11 @@ services.xserver.libinput.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. # quitar esto - users.users.host = { + users.users.fabian = { isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" ]; }; - + users.users.temp = { isNormalUser = true; extraGroups = [ "wheel" ]; @@ -64,9 +63,6 @@ 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 = { package = pkgs.nixFlakes; extraOptions = '' @@ -77,8 +73,7 @@ services.openssh.enable = true; - # NO TOCAR ESTO - system.stateVersion = "21.11"; # Did you read the comment? + system.stateVersion = "21.11"; # No tocar esto } diff --git a/fabian/default.nix b/fabian/default.nix new file mode 100644 index 0000000..6da17bf --- /dev/null +++ b/fabian/default.nix @@ -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 + }; +} + diff --git a/fabian/path.nix b/fabian/path.nix new file mode 100644 index 0000000..9dd9229 --- /dev/null +++ b/fabian/path.nix @@ -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 +]