Skip to content

Commit

Permalink
Remove bacon.nix intermediate file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed May 3, 2024
1 parent c48f9ef commit 4c1232f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 59 deletions.
40 changes: 0 additions & 40 deletions bacon.nix

This file was deleted.

76 changes: 57 additions & 19 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,16 @@
outputs =
{ nixpkgs
, nixpkgs-unstable
, home-manager
, nixos-hardware
, flake-utils
, pre-commit-hooks
, hosts
, ecsls
, ...
} @ inputs:
}:
let
username = "sigmanificient";
system = "x86_64-linux";

pkgs-settings = {
Expand All @@ -70,27 +75,60 @@
];
});
in
{
nixosConfigurations = {
Bacon = nixpkgs.lib.nixosSystem
(import ./bacon.nix { inherit inputs system pkgs; });
};
} // flake-utils.lib.eachSystem [ system ] (system: rec {
formatter = pkgs.nixpkgs-fmt;
flake-utils.lib.eachSystem [ system ]
(system: rec {
formatter = pkgs.nixpkgs-fmt;

checks.pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
nixpkgs-fmt = {
enable = true;
name = pkgs.lib.mkForce "Nix files format";
checks.pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
nixpkgs-fmt = {
enable = true;
name = pkgs.lib.mkForce "Nix files format";
};
};
};
};

devShells.default = pkgs.mkShell {
inherit (checks.pre-commit-check) shellHook;
packages = [ pkgs.unstable.qtile ];
devShells.default = pkgs.mkShell {
inherit (checks.pre-commit-check) shellHook;
packages = [ pkgs.unstable.qtile ];
};
})
// {
nixosConfigurations.Bacon = nixpkgs.lib.nixosSystem {
inherit system;

specialArgs = {
inherit username pkgs;
hostname = "Bacon";
};

modules = [
./system
./hardware-configuration.nix
] ++ [
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${username} = import ./home;
extraSpecialArgs = {
inherit username system ecsls;
};
};
}
] ++ [
hosts.nixosModule
({
networking.stevenBlackHosts.enable = true;
})
] ++ (with nixos-hardware.nixosModules; [
asus-battery
common-pc-laptop
common-cpu-amd
common-pc-ssd
]);
};
});
};
}

0 comments on commit 4c1232f

Please sign in to comment.