2023-03-15 22:11:59 +05:30
|
|
|
{
|
2023-03-25 22:10:42 +05:30
|
|
|
description = "NixOS Configuration";
|
|
|
|
|
2024-03-22 23:59:14 +05:30
|
|
|
nixConfig = {
|
|
|
|
extra-substituters = [
|
2024-04-23 22:06:47 +05:30
|
|
|
"https://helix.cachix.org"
|
|
|
|
"https://hyprland.cachix.org"
|
2024-04-26 10:17:06 +05:30
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
"https://cache.nixos.org"
|
2024-03-22 23:59:14 +05:30
|
|
|
];
|
|
|
|
extra-trusted-public-keys = [
|
2024-04-23 22:06:47 +05:30
|
|
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
|
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
2024-04-26 10:17:06 +05:30
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
2024-03-22 23:59:14 +05:30
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-03-15 22:11:59 +05:30
|
|
|
inputs = {
|
2024-02-29 15:37:20 +05:30
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-04-01 23:20:13 +05:30
|
|
|
home-manager = {
|
2023-04-02 00:30:38 +05:30
|
|
|
url = "github:nix-community/home-manager";
|
2023-03-15 22:11:59 +05:30
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2024-02-29 15:37:20 +05:30
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
|
|
lanzaboote.url = "github:nix-community/lanzaboote";
|
2024-03-04 20:09:32 +05:30
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
2024-03-22 23:58:17 +05:30
|
|
|
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
2024-04-14 13:36:12 +05:30
|
|
|
helix.url = "github:helix-editor/helix";
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
|
2023-11-04 16:12:45 +05:30
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgs
|
|
|
|
, flake-utils
|
|
|
|
, home-manager
|
|
|
|
, impermanence
|
|
|
|
, lanzaboote
|
2024-03-04 20:09:32 +05:30
|
|
|
, hyprland
|
2024-03-22 23:58:17 +05:30
|
|
|
, neovim-nightly
|
2024-04-14 13:36:12 +05:30
|
|
|
, helix
|
2023-11-04 16:12:45 +05:30
|
|
|
,
|
|
|
|
} @ inputs:
|
|
|
|
let
|
|
|
|
secrets = import ./secrets.nix;
|
|
|
|
nixpkgs-config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
|
|
|
in
|
2023-08-05 14:36:01 +05:30
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
|
|
|
Skipper = nixpkgs.lib.nixosSystem rec {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
2023-09-24 03:39:32 +05:30
|
|
|
config = nixpkgs-config;
|
2024-05-12 14:52:02 +05:30
|
|
|
overlays = [ (import ./packages) ];
|
2023-06-10 13:27:44 +05:30
|
|
|
};
|
2023-11-04 16:12:45 +05:30
|
|
|
specialArgs = inputs // { inherit secrets; };
|
2023-08-05 14:36:01 +05:30
|
|
|
modules = [
|
|
|
|
{
|
|
|
|
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
|
|
|
|
}
|
2023-04-10 23:07:41 +05:30
|
|
|
|
2023-08-05 14:36:01 +05:30
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
impermanence.nixosModules.impermanence
|
|
|
|
lanzaboote.nixosModules.lanzaboote
|
2023-04-10 23:07:41 +05:30
|
|
|
|
2023-08-05 14:36:01 +05:30
|
|
|
./common
|
|
|
|
./hosts/skipper
|
2023-04-28 22:39:46 +05:30
|
|
|
|
2023-08-05 14:36:01 +05:30
|
|
|
{
|
|
|
|
home-manager = {
|
|
|
|
useUserPackages = true;
|
|
|
|
useGlobalPkgs = true;
|
2024-01-04 21:51:29 +05:30
|
|
|
extraSpecialArgs = inputs // { inherit secrets; };
|
2024-04-26 20:50:16 +05:30
|
|
|
users.${secrets.users.primary.userName} = _: {
|
2023-08-05 14:36:01 +05:30
|
|
|
imports = [
|
|
|
|
impermanence.nixosModules.home-manager.impermanence
|
|
|
|
./home
|
|
|
|
];
|
|
|
|
};
|
2023-04-28 22:39:46 +05:30
|
|
|
};
|
2023-08-05 14:36:01 +05:30
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
2023-08-05 14:36:01 +05:30
|
|
|
}
|
2024-01-04 21:51:32 +05:30
|
|
|
// flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
with pkgs; {
|
|
|
|
formatter = nixpkgs-fmt;
|
|
|
|
devShells.default = mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
git
|
|
|
|
git-crypt
|
|
|
|
statix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
2023-08-05 14:36:01 +05:30
|
|
|
);
|
2023-03-15 22:11:59 +05:30
|
|
|
}
|