Files
nix_config/flake.nix
T
Marcus Godwin 9b428c5798 after refactor
2023-03-06 19:21:17 -05:00

47 lines
1.4 KiB
Nix

{
description = "System config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs_stable.url = "nixpkgs/nixos-22.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
# Required for making sure that Pi-hole continures running if the executing user has no active session
#linger = {
#url = "github:mindsbackyard/linger-flake";
#inputs.flake-utils.follows = "flake-utils";
#};
#pihole = {
#url = "github:mindsbackyard/pihole-flake";
#inputs.nixpkgs.follows = "nixpkgs";
#inputs.flake-utils.follows = "flake-utils";
#inputs.linger.follows = "linger";
#};
};
outputs = { self, nixpkgs, nixpkgs_stable, home-manager, flake-utils }@attrs:
let
system = "x86_64-linux";
in {
nixosConfigurations.panam = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = attrs;
modules = [
# make the module declared by linger flake available to our config
#linger.nixosModules.${system}.default
#pihole.nixosModules.${system}.default
home-manager.nixosModules.home-manager
./home_manager.nix
./panam.nix
];
};
};
}