1
1
Fork 0

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: { }@inputs: {
nixosModules = { nixosModules = {
beatific = import ./modules/beatific.nix; beatific = import ./modules/beatific.nix;
tf2-gperftools = ({ ... }: { tf2-gperftools = import ./modules/tf2-gperftools.nix { inherit inputs; };
environment.systemPackages = [ nixpkgs-2405.legacyPackages."i686-linux".gperftools ]; unstable-vscode = import ./modules/unstable-vscode.nix { inherit inputs; };
});
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
];
});
}; };
nixosConfigurations = { 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
];
}