nixos/flake.nix

97 lines
2.6 KiB
Nix
Raw Normal View History

2024-05-05 18:43:02 -04:00
{
2024-05-13 20:47:46 -04:00
description = "Lix/Auxolotl config flake";
2024-05-05 18:43:02 -04:00
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-05-05 18:43:02 -04:00
2024-05-17 07:48:51 -04:00
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0.tar.gz";
2024-05-17 07:48:51 -04:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-13 11:42:34 -04:00
2024-05-05 18:43:02 -04:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-12 09:33:04 -04:00
2024-05-17 07:48:51 -04:00
sops-nix = {
url = "github:Mic92/sops-nix";
};
2024-05-13 20:47:46 -04:00
2024-05-17 07:48:51 -04:00
catppuccin-vsc = {
url = "https://flakehub.com/f/catppuccin/vscode/*.tar.gz";
};
2024-09-04 10:09:19 -04:00
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-05-25 09:20:38 -04:00
# solaar = {
# url = "github:Svenum/Solaar-Flake/latest";
# inputs.nixpkgs.follows = "nixpkgs";
# };
2024-05-05 18:43:02 -04:00
};
outputs = { self, nixpkgs, lix-module, ... }@inputs:
2024-05-17 07:48:51 -04:00
let
system = "x86_64";
globals = rec {
user = "annika";
fullName = "Annika Merris";
gitName = fullName;
gitEmail = "me@annikamerris.com";
# nixfilesRepo = "ssh://git@forgejo.local.merr.is:2222/annika/nixos2.git";
2024-05-17 07:48:51 -04:00
};
2024-05-25 09:20:38 -04:00
in
rec
2024-05-17 07:48:51 -04:00
{
2024-08-28 12:13:06 -04:00
nix = {
settings = {
extra-substituters = [
"https://cache.lix.systems"
"https://cache.nix.org"
];
trusted-public-keys = [
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
};
gc = {
automatic = true;
randomizedDelaySec = "14m";
options = "--delete-order-than 10d";
};
};
2024-05-17 07:48:51 -04:00
nixosConfigurations = {
kim = import ./hosts/kim {
inherit inputs globals;
};
2024-05-25 09:15:29 -04:00
envy = import ./hosts/envy {
inherit inputs globals;
};
2024-09-04 10:09:19 -04:00
parents = import ./hosts/parents {
inherit inputs globals;
};
virt-nix = import ./hosts/virt-nix {
inherit inputs globals;
2024-05-17 07:48:51 -04:00
};
2024-11-28 09:53:24 -05:00
steven = import ./hosts/steven {
inherit inputs globals;
};
2024-05-17 07:48:51 -04:00
};
homeConfigurations = {
kim = nixosConfigurations.kim.config.home-manager.users.${globals.user}.home;
2024-05-25 09:15:29 -04:00
envy = nixosConfigurations.envy.config.home-manager.users.${globals.user}.home;
2024-09-04 10:18:14 -04:00
parents = nixosConfigurations.parents.config.home-manager.users.${globals.user}.home;
2024-05-25 09:15:29 -04:00
virt-nix = nixosConfigurations.virt-nix.config.home-manager.users.${globals.user}.home;
2024-11-28 09:53:24 -05:00
steven = nixosConfigurations.virt-nix.config.home-manager.users.${globals.user}.home;
};
permittedInsecurePackages = [
"jitsi-meet-1.0.8043"
];
2024-05-05 18:43:02 -04:00
};
}