feat(nix/home): add initial config

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-05 10:03:33 +03:00
parent 194141778e
commit e202bd2c20
3 changed files with 34 additions and 0 deletions

6
.gitignore vendored
View file

@ -2,6 +2,12 @@
!/.gitignore !/.gitignore
!/nix
/nix/*
!/nix/home.nix
!/nix/*.example.nix
!/programs !/programs
/programs/nvim/* /programs/nvim/*

24
nix/home.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
let
secrets = import ./secrets.nix;
in
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = secrets.username;
home.homeDirectory = secrets.homeDir;
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}

4
nix/secrets.example.nix Normal file
View file

@ -0,0 +1,4 @@
{
username = "Bob";
homeDir = "/home/bob";
}