Move flake-modules to modules2 so they are automatically imported by import-tree.
This commit is contained in:
parent
d34e78f8ba
commit
59403e4660
5 changed files with 1 additions and 8 deletions
14
modules2/dev-shell.nix
Normal file
14
modules2/dev-shell.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
just
|
||||
lua-language-server
|
||||
lua54Packages.luacheck
|
||||
nixd
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
7
modules2/formatting.nix
Normal file
7
modules2/formatting.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
};
|
||||
}
|
47
modules2/nixos-configurations.nix
Normal file
47
modules2/nixos-configurations.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ inputs, self, ... }:
|
||||
|
||||
{
|
||||
flake =
|
||||
let
|
||||
inherit (self) outputs;
|
||||
|
||||
specialArgs = {
|
||||
inherit inputs outputs self;
|
||||
|
||||
system = "x86_64-linux";
|
||||
username = "opdavies";
|
||||
};
|
||||
|
||||
mkNixosConfiguration =
|
||||
{
|
||||
hostname,
|
||||
stateVersion ? "22.11",
|
||||
system ? "x86_64-linux",
|
||||
}:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [ "${self}/hosts/${hostname}/configuration.nix" ];
|
||||
|
||||
specialArgs = specialArgs // {
|
||||
inherit hostname stateVersion system;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
lemp11 = mkNixosConfiguration { hostname = "lemp11"; };
|
||||
|
||||
nixedo = mkNixosConfiguration {
|
||||
hostname = "nixedo";
|
||||
stateVersion = "24.11";
|
||||
};
|
||||
|
||||
t480 = mkNixosConfiguration { hostname = "t480"; };
|
||||
|
||||
t490 = mkNixosConfiguration { hostname = "t490"; };
|
||||
|
||||
PW05CH3L = mkNixosConfiguration { hostname = "PW05CH3L"; };
|
||||
};
|
||||
};
|
||||
}
|
17
modules2/packages.nix
Normal file
17
modules2/packages.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ self, ... }:
|
||||
|
||||
{
|
||||
perSystem =
|
||||
{ inputs', pkgs, ... }:
|
||||
{
|
||||
packages = {
|
||||
default = pkgs.mkShell { buildInputs = with pkgs; [ just ]; };
|
||||
|
||||
neovim = inputs'.nixvim.legacyPackages.makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
|
||||
module = import "${self}/modules/home-manager/neovim/config";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue