nixconfigs/flake.nix

67 lines
2 KiB
Nix
Raw Normal View History

2023-04-13 19:21:12 +02:00
{
description = "NixOS system flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
logseq-fix-nixpkgs.url = "github:kilianar/nixpkgs?rev=c0b7ea6c09c44ba2fc90fd4274de1248ad2cfc8a";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-04-13 20:34:56 +02:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2023-04-13 21:30:17 +02:00
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
2023-04-13 21:30:17 +02:00
inputs.nixpkgs.follows = "nixpkgs";
};
2023-08-17 17:26:57 +02:00
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.3.0";
# deliberately do _not_ follow the nixpkgs input here, because paranoia and test coverage
};
nur.url = "github:nix-community/NUR";
# TODO: possible make this a flake as well
mysecrets = {
flake = false;
url = "git+ssh://gitea@git.orlives.de:2342/schmittlauch/home-manager_secrets.git";
};
2023-04-13 19:21:12 +02:00
};
2023-04-13 21:30:17 +02:00
outputs =
2023-08-17 17:26:57 +02:00
{ self, nixpkgs, nur, lanzaboote, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
2023-04-13 21:30:17 +02:00
{
2023-04-13 19:21:12 +02:00
nixosConfigurations.thinknix = nixpkgs.lib.nixosSystem {
inherit system;
2023-08-17 17:26:57 +02:00
modules = [ ./nixos/configuration.nix lanzaboote.nixosModules.lanzaboote ];
# necessary to make the top-level inputs available to system configuration
specialArgs = {
#TODO: for system, consider moving to flake-utils
inherit inputs system;
};
2023-04-13 19:21:12 +02:00
};
homeConfigurations.spiollinux = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
imports = [
nur.hmModules.nur
./home/home.nix
];
# extends the home config
home.username = "spiollinux";
home.homeDirectory = "/home/spiollinux";
}
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {
#TODO: for system, consider moving to flake-utils
inherit inputs system;
};
};
2023-04-13 19:21:12 +02:00
};
}