init nix
This commit is contained in:
parent
8f5e86c610
commit
6fc9fc7506
3 changed files with 40 additions and 0 deletions
27
flake.nix
Normal file
27
flake.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
description = "Dotfile manager";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
dotfiles = {
|
||||
url = "git.ood.ovh:hactarus/dotfiles";
|
||||
flake = false;
|
||||
};
|
||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||||
homeConfigurations.foodogsquared = home-manager.lib.homeManagerConfiguration {
|
||||
# The home-manager configuration.
|
||||
modules = [ ./home.nix ];
|
||||
|
||||
extraSpecialArgs = {
|
||||
inherit (inputs) dotfiles;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
9
home.nix
Normal file
9
home.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, options, lib, pkgs, dotfiles, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile = {
|
||||
doom.source = "${dotfiles}/emacs";
|
||||
wezterm.source = "${dotfiles}/wezterm";
|
||||
nvim.source = "${dotfiles}/nvim";
|
||||
};
|
||||
}
|
4
nix/.config/nix/registry.json
Normal file
4
nix/.config/nix/registry.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"flakes": null,
|
||||
"version": 2
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue