Watch
1
0
Fork
You've already forked chitin
0

Compare commits

..
Author SHA1 Message Date
7c518af9df
implemented flake-file 2026-10-27 11:11:52 +07:00
d368f48fd5
shared system constants 2026-10-27 10:52:53 +07:00
8 changed files with 86 additions and 18 deletions

25
flake.lock generated
View file

@ -16,6 +16,21 @@
"url": "https://git.lix.systems/lix-project/flake-compat.git" "url": "https://git.lix.systems/lix-project/flake-compat.git"
} }
}, },
"flake-file": {
"locked": {
"lastModified": 1792905615,
"narHash": "sha256-KdGEzlRQPHBbNPD+AChjry8eWEx0TCrGKy1Hkacj+bA=",
"owner": "denful",
"repo": "flake-file",
"rev": "7b08dbc223bb1a758a515aad9653a6bf196bc772",
"type": "github"
},
"original": {
"owner": "denful",
"repo": "flake-file",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@ -134,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": {
@ -149,10 +164,14 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-file": "flake-file",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"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"
} }

View file

@ -1,15 +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-file.url = "github:denful/flake-file";
flake-parts.url = "github:hercules-ci/flake-parts"; 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);
} }

12
modules/flake-parts.nix Normal file
View file

@ -0,0 +1,12 @@
{inputs, ...}: {
flake-file.inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
};
imports = [
inputs.flake-parts.flakeModules.modules
inputs.flake-parts.flakeModules.easyOverlay
];
systems = ["x86_64-linux"];
}

View file

@ -1,8 +0,0 @@
{inputs, ...}: {
imports = with inputs.flake-parts.flakeModules; [
modules
easyOverlay
];
systems = [];
}

12
modules/flake/outputs.nix Normal file
View file

@ -0,0 +1,12 @@
{inputs, ...}: {
imports = [
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)";
}

View file

@ -1,4 +1,9 @@
{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];
@ -21,6 +26,16 @@
searchCase = "smart"; searchCase = "smart";
hideSearchHighlight = false; hideSearchHighlight = false;
terminal.toggleterm = {
enable = true;
mappings.open = "<c-t>";
lazygit = {
enable = true;
package = pkgs.unstable.lazygit;
mappings.open = "<leader>gg";
};
};
clipboard = { clipboard = {
enable = true; enable = true;
registers = "unnamedplus"; registers = "unnamedplus";

View file

@ -0,0 +1,16 @@
{inputs, ...}: {
flake-file.inputs.home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
flake.modules.nixos.homeManagerModule = {
imports = [inputs.home-manager.nixosModules.home-manager];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "backup";
};
};
}

View file

@ -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,