flake.nix: add agenix
This commit is contained in:
parent
da6c28e055
commit
fd505af57e
1 changed files with 61 additions and 73 deletions
48
flake.nix
48
flake.nix
|
@ -3,8 +3,10 @@
|
||||||
description = "Sako's NixOS Configuration";
|
description = "Sako's NixOS Configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs unstable branch
|
nixpkgs.url =
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05"; # nixpkgs stable branch because some things break
|
"github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs unstable branch
|
||||||
|
nixpkgs-stable.url =
|
||||||
|
"github:nixos/nixpkgs/nixos-24.05"; # nixpkgs stable branch because some things break
|
||||||
home-manager = {
|
home-manager = {
|
||||||
# this manages your dotfiles for the most part
|
# this manages your dotfiles for the most part
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
|
@ -20,8 +22,10 @@
|
||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
agenix.url = "github:ryantm/agenix";
|
||||||
emacs-overlay = {
|
emacs-overlay = {
|
||||||
url = "github:nix-community/emacs-overlay/0442d57ffa83985ec2ffaec95db9c0fe742f5182";
|
url =
|
||||||
|
"github:nix-community/emacs-overlay/0442d57ffa83985ec2ffaec95db9c0fe742f5182";
|
||||||
};
|
};
|
||||||
ags = {
|
ags = {
|
||||||
url = "github:Aylur/ags";
|
url = "github:Aylur/ags";
|
||||||
|
@ -31,37 +35,20 @@
|
||||||
hyprpaper.url = "github:hyprwm/hyprpaper";
|
hyprpaper.url = "github:hyprwm/hyprpaper";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = { self, nixpkgs, home-manager, NixOS-WSL, sops-nix, agenix
|
||||||
self,
|
, emacs-overlay, hyprland, hyprpaper, ags, ... }@inputs:
|
||||||
nixpkgs,
|
let
|
||||||
home-manager,
|
|
||||||
NixOS-WSL,
|
|
||||||
sops-nix,
|
|
||||||
emacs-overlay,
|
|
||||||
hyprland,
|
|
||||||
hyprpaper,
|
|
||||||
ags,
|
|
||||||
...
|
|
||||||
} @ inputs: let
|
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
forAllSystems = nixpkgs.lib.genAttrs [
|
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
||||||
"x86_64-linux"
|
|
||||||
];
|
|
||||||
in rec {
|
in rec {
|
||||||
# custom packages
|
# custom packages
|
||||||
packages = forAllSystems (
|
packages = forAllSystems (system:
|
||||||
system: let
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
in import ./packages { inherit pkgs; });
|
||||||
in
|
|
||||||
import ./packages {inherit pkgs;}
|
|
||||||
);
|
|
||||||
# dev shell for bootstrap
|
# dev shell for bootstrap
|
||||||
devShells = forAllSystems (
|
devShells = forAllSystems (system:
|
||||||
system: let
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
in import ./shell.nix { inherit pkgs; });
|
||||||
in
|
|
||||||
import ./shell.nix {inherit pkgs;}
|
|
||||||
);
|
|
||||||
|
|
||||||
# overlays here
|
# overlays here
|
||||||
overlays = import ./overlays { inherit inputs; };
|
overlays = import ./overlays { inherit inputs; };
|
||||||
|
@ -76,6 +63,7 @@
|
||||||
./default.nix
|
./default.nix
|
||||||
./hosts/sakotop/configuration.nix
|
./hosts/sakotop/configuration.nix
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
|
agenix.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
sakopc = nixpkgs.lib.nixosSystem {
|
sakopc = nixpkgs.lib.nixosSystem {
|
||||||
|
|
Loading…
Reference in a new issue