beatific: factor out inline modules

This commit is contained in:
Tim Van Baak 2024-11-11 19:03:13 -08:00
parent ccf3f5c56a
commit 01e53db037
3 changed files with 23 additions and 13 deletions

View File

@ -29,19 +29,8 @@
}@inputs: {
nixosModules = {
beatific = import ./modules/beatific.nix;
tf2-gperftools = ({ ... }: {
environment.systemPackages = [ nixpkgs-2405.legacyPackages."i686-linux".gperftools ];
});
unstable-vscode = ({ ... }: let
pkgs = import nixpkgs-unstable { system = "x86_64-linux"; config.allowUnfree = true; };
in {
virtualisation.docker.enable = true;
environment.systemPackages = [
pkgs.distrobox
pkgs.vscode
pkgs.icu
];
});
tf2-gperftools = import ./modules/tf2-gperftools.nix { inherit inputs; };
unstable-vscode = import ./modules/unstable-vscode.nix { inherit inputs; };
};
nixosConfigurations = {

View File

@ -0,0 +1,7 @@
# Flake inputs
{ inputs, ... }:
# Module inputs
{ ... }:
{
environment.systemPackages = [ inputs.nixpkgs-2405.legacyPackages."i686-linux".gperftools ];
}

View File

@ -0,0 +1,14 @@
# Flake inputs
{ inputs, ... }:
# Module inputs
{ ... }:
let
pkgs = import inputs.nixpkgs-unstable { system = "x86_64-linux"; config.allowUnfree = true; };
in {
virtualisation.docker.enable = true;
environment.systemPackages = [
pkgs.distrobox
pkgs.vscode
pkgs.icu
];
}