simplify config file: .text = builtins.readFile -> .source = /...
parent
1e248b0af0
commit
ecc9e4a88d
|
@ -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,22 +77,24 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# NOTE: This is never actually tested
|
# NOTE: This is never actually tested. This is for Ubuntu@Felia
|
||||||
"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 = [
|
||||||
|
|
|
@ -63,9 +63,9 @@ in
|
||||||
] ++ (myHome.packages or [ ]) ++ nvim_pkgs);
|
] ++ (myHome.packages or [ ]) ++ nvim_pkgs);
|
||||||
|
|
||||||
## Configs ##
|
## Configs ##
|
||||||
xdg.configFile."nvim/init.lua".text = builtins.readFile "${proj_root}//neovim/init.lua";
|
xdg.configFile."nvim/init.lua".source = "${proj_root}//neovim/init.lua";
|
||||||
xdg.configFile."starship.toml".text = builtins.readFile "${proj_root}//starship/starship.toml";
|
xdg.configFile."starship.toml".source = "${proj_root}//starship/starship.toml";
|
||||||
xdg.configFile."zk/config.toml".text = builtins.readFile "${proj_root}//zk/config.toml";
|
xdg.configFile."zk/config.toml".source = "${proj_root}//zk/config.toml";
|
||||||
|
|
||||||
## Programs ##
|
## Programs ##
|
||||||
programs.jq = {
|
programs.jq = {
|
||||||
|
|
Loading…
Reference in New Issue