feat(nix/home): add initial config
This commit is contained in:
parent
194141778e
commit
e202bd2c20
3 changed files with 34 additions and 0 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -2,6 +2,12 @@
|
|||
|
||||
!/.gitignore
|
||||
|
||||
!/nix
|
||||
/nix/*
|
||||
!/nix/home.nix
|
||||
!/nix/*.example.nix
|
||||
|
||||
|
||||
!/programs
|
||||
|
||||
/programs/nvim/*
|
||||
|
|
24
nix/home.nix
Normal file
24
nix/home.nix
Normal 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
4
nix/secrets.example.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
username = "Bob";
|
||||
homeDir = "/home/bob";
|
||||
}
|
Loading…
Reference in a new issue