2023-01-07 12:54:29 -05:00
|
|
|
{
|
|
|
|
|
description = "System config";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
2023-01-07 13:48:09 -05:00
|
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
2023-03-06 19:00:50 -05:00
|
|
|
nixpkgs_stable.url = "nixpkgs/nixos-22.11";
|
2023-01-07 12:54:29 -05:00
|
|
|
home-manager = {
|
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2023-03-06 19:00:50 -05:00
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
#};
|
2023-01-07 12:54:29 -05:00
|
|
|
};
|
|
|
|
|
|
2023-03-06 19:21:17 -05:00
|
|
|
outputs = { self, nixpkgs, nixpkgs_stable, home-manager, flake-utils }@attrs:
|
2023-01-07 12:54:29 -05:00
|
|
|
let
|
|
|
|
|
system = "x86_64-linux";
|
2023-01-07 13:48:09 -05:00
|
|
|
in {
|
2023-03-06 19:00:50 -05:00
|
|
|
nixosConfigurations.panam = nixpkgs.lib.nixosSystem {
|
2023-02-18 12:52:29 -05:00
|
|
|
inherit system;
|
2023-01-07 14:47:38 -05:00
|
|
|
specialArgs = attrs;
|
|
|
|
|
modules = [
|
2023-03-06 19:00:50 -05:00
|
|
|
# make the module declared by linger flake available to our config
|
|
|
|
|
#linger.nixosModules.${system}.default
|
|
|
|
|
#pihole.nixosModules.${system}.default
|
2023-01-07 14:47:38 -05:00
|
|
|
|
2023-02-18 12:52:29 -05:00
|
|
|
home-manager.nixosModules.home-manager
|
2023-03-06 19:21:17 -05:00
|
|
|
./home_manager.nix
|
|
|
|
|
./panam.nix
|
2023-02-18 12:52:29 -05:00
|
|
|
];
|
|
|
|
|
};
|
2023-01-07 12:54:29 -05:00
|
|
|
};
|
|
|
|
|
}
|