implemented flake-file
This commit is contained in:
parent
d368f48fd5
commit
66c3eb44ae
8 changed files with 65 additions and 18 deletions
9
flake.lock
generated
9
flake.lock
generated
|
|
@ -149,11 +149,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792889789,
|
"lastModified": 1793047357,
|
||||||
"narHash": "sha256-xpH3z+T5NELixXRjxGJ3mx30kz63Xt2B0ZfPWl7hcUg=",
|
"narHash": "sha256-eY8aBTGSgtx+25254i22jyjbj+JQkEIfb+JyQ2Exnuk=",
|
||||||
"owner": "NotAShelf",
|
"owner": "NotAShelf",
|
||||||
"repo": "nvf",
|
"repo": "nvf",
|
||||||
"rev": "557d2eb05a76e5939e6a75351343cae5731a71f8",
|
"rev": "60b4593979c39e9a1227c9913bd835bb1a59054b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -169,6 +169,9 @@
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"import-tree": "import-tree",
|
"import-tree": "import-tree",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
],
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nvf": "nvf"
|
"nvf": "nvf"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
22
flake.nix
22
flake.nix
|
|
@ -1,16 +1,22 @@
|
||||||
|
# DO-NOT-EDIT. This file was auto-generated using github:denful/flake-file.
|
||||||
|
# Use `nix run .#write-flake` to regenerate it.
|
||||||
{
|
{
|
||||||
|
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
||||||
flake-file.url = "github:denful/flake-file";
|
flake-file.url = "github:denful/flake-file";
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
import-tree.url = "github:vic/import-tree";
|
import-tree.url = "github:vic/import-tree";
|
||||||
nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
|
nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
|
||||||
|
nixpkgs-lib.follows = "nixpkgs-unstable";
|
||||||
nixpkgs-unstable.url = "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst";
|
nixpkgs-unstable.url = "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst";
|
||||||
home-manager.url = "github:nix-community/home-manager/release-26.05";
|
nvf = {
|
||||||
nvf.url = "github:NotAShelf/nvf";
|
url = "github:NotAShelf/nvf";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
};
|
||||||
nvf.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
|
flake-file.inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
inputs.flake-parts.flakeModules.modules
|
inputs.flake-parts.flakeModules.modules
|
||||||
inputs.flake-parts.flakeModules.easyOverlay
|
inputs.flake-parts.flakeModules.easyOverlay
|
||||||
inputs.flake-file.flakeModules.default
|
|
||||||
];
|
];
|
||||||
|
|
||||||
systems = [];
|
systems = ["x86_64-linux"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
{
|
{inputs, ...}: {
|
||||||
flake-file.outputs = ''
|
imports = [
|
||||||
inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules);
|
inputs.flake-file.flakeModules.default
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
flake-file.inputs = {
|
||||||
|
flake-file.url = "github:denful/flake-file";
|
||||||
|
import-tree.url = "github:vic/import-tree";
|
||||||
|
};
|
||||||
|
|
||||||
|
flake-file.outputs = "inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules)";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13
modules/home/primaryUser/programs/lazygit.nix
Normal file
13
modules/home/primaryUser/programs/lazygit.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.unstable.lazygit;
|
||||||
|
settings = {
|
||||||
|
git = {
|
||||||
|
overrideGpg = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,9 +1,13 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
|
flake-file.inputs.nvf = {
|
||||||
|
url = "github:NotAShelf/nvf";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
|
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
|
||||||
imports = [inputs.nvf.homeManagerModules.default];
|
imports = [inputs.nvf.homeManagerModules.default];
|
||||||
|
|
||||||
home.packages = with pkgs.unstable; [
|
home.packages = with pkgs.unstable; [
|
||||||
lazygit
|
|
||||||
tree-sitter
|
tree-sitter
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
|
flake-file.inputs.home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
flake.modules.nixos.homeManagerModule = {
|
flake.modules.nixos.homeManagerModule = {
|
||||||
imports = [inputs.home-manager.nixosModules.home-manager];
|
imports = [inputs.home-manager.nixosModules.home-manager];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,12 @@
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
overlays = [self.overlays.default];
|
overlays = [self.overlays.default];
|
||||||
in {
|
in {
|
||||||
|
flake-file.inputs = {
|
||||||
|
nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
|
||||||
|
nixpkgs-lib.follows = "nixpkgs-unstable";
|
||||||
|
nixpkgs-unstable.url = "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst";
|
||||||
|
};
|
||||||
|
|
||||||
perSystem = {
|
perSystem = {
|
||||||
pkgs,
|
pkgs,
|
||||||
final,
|
final,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue