sail: home-manager setup
This commit is contained in:
parent
ef3cea71ee
commit
7e52b0d586
3 changed files with 49 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
|||
|
||||
config-sail = import ./system/flakes/sail.nix {
|
||||
inherit (inputs) nixpkgs;
|
||||
inherit (inputs) home-manager;
|
||||
inherit (inputs) arion;
|
||||
};
|
||||
in
|
||||
|
|
32
home/hosts/sail.nix
Normal file
32
home/hosts/sail.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../programs/nvim
|
||||
|
||||
../programs/git.nix
|
||||
|
||||
../programs/bat.nix
|
||||
|
||||
../programs/fzf.nix
|
||||
|
||||
../programs/jq.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
stateVersion = "22.11";
|
||||
|
||||
packages = with pkgs; [
|
||||
curlFull
|
||||
lnav
|
||||
mtr
|
||||
parallel
|
||||
q
|
||||
ripgrep
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
zoxide.enable = true;
|
||||
};
|
||||
}
|
|
@ -1,11 +1,17 @@
|
|||
{ nixpkgs, arion, ... }:
|
||||
{ nixpkgs, home-manager, arion, ... }:
|
||||
|
||||
let
|
||||
overlay-arion = arion.overlay;
|
||||
overlay-neovim = inputs.neovim-nightly-overlay.overlay;
|
||||
overlay-zig = _: prev: { zigpkgs = inputs.zig-overlay.packages.${prev.system}; };
|
||||
overlay-nifoc = inputs.nifoc-overlay.overlay;
|
||||
|
||||
nixpkgsConfig = {
|
||||
overlays = [
|
||||
overlay-arion
|
||||
overlay-neovim
|
||||
overlay-zig
|
||||
overlay-nifoc
|
||||
];
|
||||
|
||||
config = {
|
||||
|
@ -26,6 +32,15 @@ in
|
|||
arion.nixosModules.arion
|
||||
|
||||
../hosts/sail.nix
|
||||
|
||||
home-manager.darwinModules.home-manager
|
||||
{
|
||||
nixpkgs = nixpkgsConfig;
|
||||
nix.nixPath = { nixpkgs = "${nixpkgs}"; };
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.daniel = import ../../home/hosts/sail.nix;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue