Reworked nixos folder structure

This commit is contained in:
lulusilly 2025-08-31 23:33:58 -04:00
parent 745458c61c
commit cb4216d606
7 changed files with 15 additions and 25 deletions

View file

@ -1,38 +1,28 @@
{
description = "System flake";
description = "System flake with automatic hostname detection";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
stylix.url = "github:danth/stylix";
stylix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, ... }@inputs: {
outputs = { self, nixpkgs, ... }@inputs: let
system = "x86_64-linux";
hostname = builtins.getEnv "HOSTNAME";
in
{
nixosConfigurations = {
mecca = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
"${hostname}" = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./laptop/mecca/configuration.nix
./common.nix
./${hostname}/configuration.nix
./${hostname}/hardware-configuration.nix
inputs.stylix.nixosModules.stylix
];
};
syntheticnexus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./laptop/syntheticnexus/configuration.nix
inputs.stylix.nixosModules.stylix
];
};
};
/*nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
inputs.stylix.nixosModules.stylix
];
};
*/
};
}

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Before After
Before After

View file

@ -143,7 +143,7 @@
services.syncthing.enable = true;
environment.systemPackages = with pkgs; [
home-manager # For using Nix Home Manager
# home-manager # For using Nix Home Manager
zsh # Default user shell
minecraftia # font
jetbrains-mono # font

View file

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

Before After
Before After