Reworked nixos folder structure
This commit is contained in:
parent
745458c61c
commit
cb4216d606
7 changed files with 15 additions and 25 deletions
|
|
@ -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";
|
||||
specialArgs = {inherit inputs;};
|
||||
"${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
|
||||
];
|
||||
};
|
||||
*/
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
|
@ -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
|
||||
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
Loading…
Add table
Add a link
Reference in a new issue