Initial commit
This commit is contained in:
48
flake.nix
Normal file
48
flake.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
description = "Phillip NixOS config";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, ... }:
|
||||
let
|
||||
myModules = {
|
||||
desktop = {
|
||||
sway = ./modules/desktop/sway.nix;
|
||||
greetd = ./modules/desktop/greetd.nix;
|
||||
};
|
||||
|
||||
audio = {
|
||||
pipewire = ./modules/audio/pipewire.nix;
|
||||
};
|
||||
|
||||
network = {
|
||||
networkmanager = ./modules/network/networkmanager.nix;
|
||||
firewall = ./modules/network/firewall.nix;
|
||||
};
|
||||
|
||||
misc = {
|
||||
fonts = ./modules/misc/fonts.nix;
|
||||
};
|
||||
};
|
||||
|
||||
mkHost = { system, name }:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
specialArgs = { inherit myModules; };
|
||||
|
||||
modules = [
|
||||
./hosts/${name}/hardware-configuration.nix
|
||||
./hosts/${name}/configuration.nix
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
desktop-main = mkHost { system = "x86_64-linux"; name = "desktop-main"; };
|
||||
# add more hosts here later
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user