Files
nix_config/flake.nix
T

47 lines
1.4 KiB
Nix
Raw Normal View History

{
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";
#};
};
2023-03-06 19:21:17 -05:00
outputs = { self, nixpkgs, nixpkgs_stable, home-manager, flake-utils }@attrs:
let
system = "x86_64-linux";
in {
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 = [
# 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
];
};
};
}