Compare commits
No commits in common. "a67f1213812434e45890eeeb71488cf961f0fb79" and "123d6e8ede01091357aeb58713a47640db663f34" have entirely different histories.
a67f121381
...
123d6e8ede
|
@ -521,7 +521,6 @@ cmp.setup {
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
{ name = "conjure" },
|
|
||||||
-- { name = 'cmp_tabnine' },
|
-- { name = 'cmp_tabnine' },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
# pkgs = nixpkgs.legacyPackages.${system}.appendOverlays overlays;
|
# pkgs = nixpkgs.legacyPackages.${system}.appendOverlays overlays;
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
config = { allowUnfree = true; };
|
config = {allowUnfree = true;};
|
||||||
};
|
};
|
||||||
lib = (import ../lib-nix { inherit pkgs from-yaml; lib = pkgs.lib; });
|
lib = (import ../lib-nix { inherit pkgs from-yaml; lib = pkgs.lib; });
|
||||||
in
|
in
|
||||||
|
@ -77,24 +77,22 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# NOTE: This is never actually tested. This is for Ubuntu@Felia
|
# NOTE: This is never actually tested
|
||||||
# "ubuntu_admin" = home-manager.lib.homeManagerConfiguration {
|
"ubuntu_admin" = home-manager.lib.homeManagerConfiguration {
|
||||||
# inherit pkgs;
|
inherit pkgs;
|
||||||
# modules = [
|
modules = [
|
||||||
# ./home.nix
|
./home.nix
|
||||||
# ];
|
];
|
||||||
# extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
# myLib = lib;
|
myLib = lib;
|
||||||
# myHome = {
|
myHome = {
|
||||||
# username = "ubuntu_admin";
|
username = "ubuntu_admin";
|
||||||
# homeDirectory = "/home/ubuntu_admin";
|
homeDirectory = "/home/ubuntu_admin";
|
||||||
# shellInitExtra = ''
|
shellInitExtra = ''
|
||||||
# '' + x11_wsl;
|
'' + x11_wsl;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
|
|
||||||
# Personal laptop
|
|
||||||
hwtr = home-manager.lib.homeManagerConfiguration {
|
hwtr = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# myHome is injected from extraSpecialArgs in flake.nix
|
# myHome is injected from extraSpecialArgs in flake.nix
|
||||||
{ config
|
{ config
|
||||||
, pkgs # This is by default just ``= import <nixpkgs>{}`
|
, pkgs
|
||||||
, myHome
|
, myHome
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
@ -28,19 +28,7 @@ let
|
||||||
# ]))
|
# ]))
|
||||||
];
|
];
|
||||||
proj_root = builtins.toString ./../..;
|
proj_root = builtins.toString ./../..;
|
||||||
# TODO: put this in a seperate library
|
|
||||||
# callPackage supports both PATH and function as first param!
|
|
||||||
# TODO: support yaml string with writeTextFile (provided by callPackge)
|
|
||||||
yamlToJsonDrv = yamlPath: outputPath:
|
|
||||||
pkgs.callPackage ({ runCommand }:
|
|
||||||
# runCommand source: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/trivial-builders.nix#L33
|
|
||||||
runCommand
|
|
||||||
outputPath
|
|
||||||
{ nativeBuildInputs = [ pkgs.yq ]; }
|
|
||||||
# run yq which outputs '.' (no filter) on file at yamlPath
|
|
||||||
# note that $out is passed onto the bash/sh script for execution
|
|
||||||
''cat \"${yamlPath}\" | yq >\"$out\"'') { };
|
|
||||||
fromYaml = yamlPath: builtins.fromJSON (builtins.readFile (yamlToJsonDrv yamlPath "any-output.json"));
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
|
@ -75,9 +63,9 @@ in
|
||||||
] ++ (myHome.packages or [ ]) ++ nvim_pkgs);
|
] ++ (myHome.packages or [ ]) ++ nvim_pkgs);
|
||||||
|
|
||||||
## Configs ##
|
## Configs ##
|
||||||
xdg.configFile."nvim/init.lua".source = "${proj_root}//neovim/init.lua";
|
xdg.configFile."nvim/init.lua".text = builtins.readFile "${proj_root}//neovim/init.lua";
|
||||||
xdg.configFile."starship.toml".source = "${proj_root}//starship/starship.toml";
|
xdg.configFile."starship.toml".text = builtins.readFile "${proj_root}//starship/starship.toml";
|
||||||
xdg.configFile."zk/config.toml".source = "${proj_root}//zk/config.toml";
|
xdg.configFile."zk/config.toml".text = builtins.readFile "${proj_root}//zk/config.toml";
|
||||||
|
|
||||||
## Programs ##
|
## Programs ##
|
||||||
programs.jq = {
|
programs.jq = {
|
||||||
|
@ -86,7 +74,6 @@ in
|
||||||
programs.alacritty = myHome.programs.alacritty or {
|
programs.alacritty = myHome.programs.alacritty or {
|
||||||
enable = true;
|
enable = true;
|
||||||
# settings = myLib.fromYaml (builtins.readFile "${proj_root}/alacritty/alacritty.yml");
|
# settings = myLib.fromYaml (builtins.readFile "${proj_root}/alacritty/alacritty.yml");
|
||||||
settings = fromYaml "${proj_root}//alacritty/alacritty.yml";
|
|
||||||
};
|
};
|
||||||
# nix: Propagates the environment with packages and vars when enter (children of)
|
# nix: Propagates the environment with packages and vars when enter (children of)
|
||||||
# a directory with shell.nix-compatible and .envrc
|
# a directory with shell.nix-compatible and .envrc
|
||||||
|
|
Loading…
Reference in New Issue